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
| // npm install superagent jsdom jquery | |
| var https = require('superagent'), | |
| exec = require('child_process').exec | |
| https.get('https://executeios.com/receipt/<yourid>', function(res) { | |
| var window = require('jsdom').jsdom(res.text).createWindow() | |
| var $ = require('jquery')(window) | |
| var videos = [] |
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
| convert small.jpg -scale 5000% big.jpg |
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
| #!/usr/bin/env ruby | |
| # Author: Patrick Helm ([email protected]), 2013 | |
| # | |
| # | |
| # Simple git-snippet to commit a small fix with auto-generated commit-message. | |
| # | |
| # ## Description | |
| # | |
| # I noticed, we developers often needs to fix a small typo or do something |
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
| // Inside my base include file which includes Compass. | |
| %bs-border-box { @include box-sizing(border-box); } | |
| // Inside my application Sass file. | |
| @each $el in elements-of-type('block') { #{$el} { @extend %bs-border-box; } } |
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
| [class^="icon-"], | |
| [class*=" icon-"] { | |
| font-family: inherit; | |
| &:before { | |
| font-family: FontAwesome; | |
| } | |
| } |
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
| ARGF.each_line do |line| | |
| action, file = line.split | |
| Kernel.system "git rm -f #{file}" if %w[A DU].include?(action) | |
| 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
| source :rubygems | |
| gem 'actionpack', '~> 3.2', require: 'sprockets/static_compiler' | |
| gem 'filewatcher' | |
| gem 'rake' | |
| gem 'sprockets' | |
| gem 'coffee-script' | |
| gem 'sass' | |
| gem 'uglifier' |
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
| # Simple minitest matchers which will make your controller/functional specs less pain in the ass. | |
| # | |
| # ==== Dependencies | |
| # | |
| # gem 'minitest' | |
| # gem 'minitest-matchers' | |
| # | |
| # ==== Matchers | |
| # | |
| # +must_have_status+ and its opposite +wont_have_status+ take both one argument which must be one of the following: |
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
| require 'rake' | |
| require 'rake/testtask' | |
| Rake::TestTask.new do |t| | |
| t.test_files = Dir.glob('spec/**/*_spec.rb') | |
| end | |
| task(default: :test) |
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
| // Helps you to provide provide retina optimized backgrounds | |
| // in an innovative and easy way. (Requires compass). | |
| // | |
| // ==== Options | |
| // * <tt>$url</tt> is your background image. | |
| // * <tt>$retina_url</tt> is your retina optimized background image. | |
| // If no $retina_url option is provided or it equals to `false`, $url | |
| // is used for the retina background image, but its size it cut to half. | |
| // | |
| // ==== Examples |