Questions tagged [tilt]

Tilt is a thin interface over a collection of Ruby template engines, that attempts to make their usage as generic possible.

118 questions
0
votes
3 answers

I am getting the error in importing TILT from react. While working using Vite and react

The requested module '/node_modules/.vite/deps/react-tilt.js?t=1681239019006&v=59c21aef' does not provide an export named 'default I tried reinstalling tilt again using npm still it didnt make any difference
0
votes
0 answers

touch card tilt effect in React Native

I'm new to React Native. I want to make a card effect in my application. In js I'm used to use tilt.js and hammer.js but in React Native I don't see how to do this effect. Can you give me the name of a library or a track of how to make such an…
Nicolas
  • 33
  • 6
0
votes
0 answers

How to debug rails app with Tilt setup in Dev environment

I am new to tilt. I am struggling to debug a rails app with Tilt. I can provide more details on it if needed. Thanks! I tried some rails gem like pry-remote, byebug and debug etc but non of them are working or i am doing it in wrong way. Pls suggest…
0
votes
1 answer

Is there a way to rotate objects about a tilted axis in X3D?

I have wireframe cubes in an X3D file. I am trying to tilt the cubes at a 15 degree axis and rotate them continuously. However, when I try rotating the object, it returns to its original (untilted) position and begins to rotate. This is the snippet…
JetK
  • 1
  • 1
0
votes
2 answers

My tilt js is not working the card is not tilting need help within 4 hours

So guys I have created a website and in that I have a card hear is its html code
Main Content
India is the country that occupies the larger part of South Asia.…
Veer Shah
  • 26
  • 4
0
votes
1 answer

Sprockets Error : Sprockets::Rails::Helper::AssetNotFound

I am facing the weird error of sprockets with tilt gem. Basically I am loading images on ERB template (generated with Tilt) with the image tag but when the template is rendered it shows Sprockets::Rails::Helper:: AssetNotFound. The asset…
Jigar Panchal
  • 93
  • 3
  • 12
0
votes
0 answers

how to implement tilt.js jquery destroy method inside another function

Here below I'm trying to insert the tilt destroy method for jquery but I can't do it... It's not clear for me this line of code that I get on the official website (const tilt = $('.js-tilt').tilt() tilt.methods.destroy.call(tilt);) can you help,…
0
votes
1 answer

How to accurately detect when phone has been tilted back and forth in Android

I want to trigger some function when the phone is tilted back and forth along the YZ axis. If you were holding your phone in front of your face, you'd be tilting it back until it's nearly parallel with the floor, then back up until it's…
0
votes
2 answers

How to use ActionView/Erubi outside Rails

I frequently use Sinatra for smallish projects. It's pretty good for what I need but I miss the ability to mark strings as HTML safe, and then ERB knowing when to escape or not escape accordingly. I'd really like it if I could rip out the patches…
thesecretmaster
  • 1,950
  • 1
  • 27
  • 39
0
votes
1 answer

How to registered engine from tilt in Ruby on Rails application?

I have a Ruby on Rails application. I don't understand how to register an engine from gem Tilt. Of course, I installed and required tilt. But, when I send http-request, the application doesn't know about tilt and its engines. I have the…
user3517175
  • 363
  • 2
  • 14
0
votes
1 answer

How to integrate pimoroni pan tilt hat with motioneye?

Being new to code and python I have trouble integrating buttons to control Pimoroni pan tilt hat in the Motioneye surveillance software. I found code for adafruit PCA9685 servo controller, that will call a bash script when a button is pressed. The…
0
votes
1 answer

Tilt template engine initialization

I just install tilt : gem list tilt (1.2.2) ruby -v ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] And I simply try the basic example from https://github.com/rtomayko/tilt tilt.rb require 'rubygems' require 'haml' require…
jerome
  • 133
  • 1
  • 6
0
votes
1 answer

Custom helper with block

I'm using the current release 4.3.3 of Middleman. I'd like to define a custom helper which accepts a block. For the sake of simplicity, here's a nonsensical example of wrap_me which wraps the block content with the given tag. It should be possible…
svoop
  • 3,318
  • 1
  • 23
  • 41
0
votes
2 answers

How to intercept tilting in Android?

I would like to write a program using tilting functionality in android. Is there any way to intercept it? What do I get back? a vector indicating the direction of the tilt?
Einiosaurus
  • 191
  • 2
  • 12
0
votes
2 answers

How to use the "tilt" feature on an iphone

I have been doing a lot if research into this, but I havent found an answer. Basically, I'm making a dice rolling application for the iPhone in Objective-C. I want to be able to use the "tilt" feature to roll the dice. For example, if the user holds…
Justin
  • 2,122
  • 3
  • 27
  • 47