This file contains 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
$('#select-me').tokenInput("/prospects/get_associated_leads", { | |
searchingText: "Searching...", | |
minChars: 3, | |
preventDuplicates: true, | |
theme: "facebook", | |
tokenLimit: 3 | |
}); |
This file contains 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_white_space": "all", | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"margin": 2, | |
"rulers": |
This file contains 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
BleakHouse is a library for finding memory leaks. |
This file contains 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
we need gem cucumber-rails it will automatically install Capybara,selinium-driver,database-cleaner | |
Drivers | |
Capybara uses the same DSL to drive a variety of browser and headless drivers. | |
Selecting the Driver | |
By default, Capybara uses the :rack_test driver, which is fast but limited: it does not support JavaScript, nor is it able to access HTTP resources outside of your Rack application, such as remote APIs and OAuth services. To get around these limitations, you can set up a different default driver for your features. For example if you'd prefer to run everything in Selenium, you could do: |
This file contains 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
Rails creates a test folder for you as soon as you create a Rails project using rails new application_name. If you list the contents of this folder then you shall see: | |
$ ls -F test/ | |
fixtures/ functional/ integration/ test_helper.rb unit/ | |
The unit folder is meant to hold tests for your models | |
The functional folder is meant to hold tests for your controllers |
This file contains 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
FFmpeg is a very fast video and audio converter that can also grab from a live audio/video source. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter. | |
1) Install ffmpeg gem | |
sudo apt-get install ffmpeg | |
2)Install following required dependencies for video conversion | |
sudo apt-get install -y x264 libx264-123 libx264-dev libavcodec-extra-53 |