Skip to content

Instantly share code, notes, and snippets.

View Fodoj's full-sized avatar

Kirill Shirinkin Fodoj

View GitHub Profile
jbenet /
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

dypsilon /
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
(function(global) {
var silpUrl = '//';
// Globals
if(!global.Silp) { global.Silp = {}; };
var Silp = global.Silp;
// To keep track of which embeds we have already processed
if(!Silp.foundEls) Silp.foundEls = [];
common: &common
searchd_file_path: "/home/ezo/develop/myseat/myseat/tmp/sphinx_index"
bin_path: "/home/ezo/develop/myseat/sphinx/bin"
morphology: stem_ru
enable_star: true
sql_range_step: 10000000
enable_star: 1
min_infix_len: 1
CaptainN /
Created March 29, 2012 20:06
Just touch events for jQuery
// This is a combination of two modified files from jQuery Mobile,
// and
// They were modified to only provide the touch event shortcuts, and
// avoid the rest of the jQuery Mobile framework.
// The normal jQuery Mobile license applies.
// This plugin is an experiment for abstracting away the touch and mouse
// events so that developers don't have to worry about which method of input
// the device their document is loaded on supports.
class PostsController < ActionController::Base
def create
def update
- unless Rails.env.development?
/ Require jQuery
= javascript_include_tag ''
/ Require Google's jQuery if Yandex is down
window.jQuery || document.write('<script src="">\x3C/script>')
/ Require local jQuery if Google is down / is development env
window.jQuery || document.write('<script src="#{asset_path('jquery.js')}">\x3C/script>')
dhh / gist:1014971
Created June 8, 2011 18:09
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')