Skip to content

Instantly share code, notes, and snippets.

View renius's full-sized avatar

Антон Дьячук renius

View GitHub Profile
@davydovanton
davydovanton / GIF-Screencast-OSX.md
Created August 21, 2016 15:06 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@grantspeelman
grantspeelman / Gemfile
Last active December 16, 2020 13:11
Example Gemfile files preparing for the next rails upgrade (https://grant-ps.blog/2017/07/03/upgrading-ruby-on-rails-in-smallish-steps/)
@next_upgrade ||= false
source 'https://rubygems.org'
if @next_upgrade
gem 'rails', '6.0.0.rc2'
else
gem 'rails', '~> 5.2.0'
end
# rest of gems below ....
@onemanstartup
onemanstartup / flashes.rb
Created November 16, 2014 07:34
flashes
def flash_success(message = nil, opts = {})
if message
flash[:success] = message
else
flash[:success] = translate '.flash.success_html'.freeze, view_assigns.symbolize_keys.merge(opts).merge(default: :"flash.default.success")
end
end
def flash_error(message = nil, opts = {})
if message
@niquola
niquola / app.css
Created August 16, 2013 21:48
angularjs demo for Max Lapshin
.progress {
border: 1px solid #ddd;
width: 100px;
height: 10px;
}
.progress .bar {
background-color: #aae;
width: 10px;
height: 10px;
}
@NIA
NIA / select2dropdown.js
Created December 10, 2012 17:23
Convert .select elements to Bootstrap Dropdown Group
/*!
* Convert .select elements to Bootstrap Dropdown Group
* Assumes jQuery and Bootstrap scripts already linked
*
* Expected markup:
*
* <div id="someId" data-name="someName" class="select someClass">
* <div class="option selected" data-value="1"> Item 1 <i class="icon-ok"></i></div>
* <div class="option" data-value="2"> Item 2 <span>some html</span></div>
* <div class="option" data-value="3"> Item 3 <img src="little.img"></div>
@cblunt
cblunt / Gemfile
Created October 21, 2011 08:55
Configure Carrierwave for Amazon S3 Storage and Heroku
# ...
gem 'carrierwave'
gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL