This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JS_PATH = "app/assets/javascripts/**/*.js"; | |
| Dir[JS_PATH].each do |file_name| | |
| puts "\n#{file_name}" | |
| puts Uglifier.compile(File.read(file_name)) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if Rails.env.development? | |
| task :set_annotation_options do | |
| Annotate.set_defaults( | |
| 'position_in_routes' => 'before', | |
| 'position_in_class' => 'before', | |
| 'position_in_test' => 'before', | |
| 'position_in_fixture' => 'before', | |
| 'position_in_factory' => 'before', | |
| 'show_indexes' => 'false', | |
| 'simple_indexes' => 'true', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package lht; | |
| import com.sun.jna.Native; | |
| import com.sun.jna.NativeLong; | |
| import com.sun.jna.Platform; | |
| import com.sun.jna.Structure; | |
| import com.sun.jna.examples.win32.Kernel32; | |
| import com.sun.jna.examples.win32.User32; | |
| import com.sun.jna.examples.win32.User32.HHOOK; | |
| import com.sun.jna.examples.win32.User32.HOOKPROC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package lht; | |
| import com.sun.jna.WString; | |
| import com.sun.jna.platform.win32.Kernel32; | |
| import com.sun.jna.platform.win32.User32; | |
| import com.sun.jna.platform.win32.WinDef.HMODULE; | |
| import com.sun.jna.platform.win32.WinDef.HWND; | |
| import com.sun.jna.platform.win32.WinDef.LPARAM; | |
| import com.sun.jna.platform.win32.WinDef.LRESULT; | |
| import com.sun.jna.platform.win32.WinDef.WPARAM; |