Skip to content

Instantly share code, notes, and snippets.

View fakefarm's full-sized avatar
๐Ÿฝ
๐Ÿฆ๐ŸŽ๐Ÿธ๐Ÿง„๐Ÿ”๐Ÿ๐Ÿน๐Ÿ‘๐Ÿฎ ๐Ÿด๐Ÿฆ†๐Ÿฅฆ๐Ÿ™๐ŸณF๐Ÿฆž๐Ÿง…๐Ÿถ ๐Ÿฆง๐Ÿ‘พA๐Ÿฆˆ๐Ÿ‹๐Ÿ‰K๐ŸŒฝ ๐Ÿฃ๐ŸŽ๐Ÿฆš๐Ÿฆฉ๐Ÿฆ”๐Ÿฟ๐Ÿฆจ๐Ÿ‰๐Ÿฅ• ๐Ÿฟ๐Ÿพ๐Ÿ’๐ŸŠE๐Ÿˆ๐Ÿป๐Ÿฅฅ๐Ÿฑ ๐Ÿผ๐Ÿฅ‘๐Ÿท๐Ÿ“๐ŸŒ๐Ÿ–F๐Ÿฆƒ ๐Ÿ‘๐Ÿšœ๐Ÿ‹๐Ÿ‚A๐Ÿ๐ŸŒพ๐Ÿค–๐Ÿ€๐Ÿฆ” R๐Ÿฆœ๐Ÿฆ๐Ÿˆ๐Ÿฆ“๐Ÿ ๐Ÿฆ‘๐Ÿฆ‚M๐Ÿœ

Dave Woodall fakefarm

๐Ÿฝ
๐Ÿฆ๐ŸŽ๐Ÿธ๐Ÿง„๐Ÿ”๐Ÿ๐Ÿน๐Ÿ‘๐Ÿฎ ๐Ÿด๐Ÿฆ†๐Ÿฅฆ๐Ÿ™๐ŸณF๐Ÿฆž๐Ÿง…๐Ÿถ ๐Ÿฆง๐Ÿ‘พA๐Ÿฆˆ๐Ÿ‹๐Ÿ‰K๐ŸŒฝ ๐Ÿฃ๐ŸŽ๐Ÿฆš๐Ÿฆฉ๐Ÿฆ”๐Ÿฟ๐Ÿฆจ๐Ÿ‰๐Ÿฅ• ๐Ÿฟ๐Ÿพ๐Ÿ’๐ŸŠE๐Ÿˆ๐Ÿป๐Ÿฅฅ๐Ÿฑ ๐Ÿผ๐Ÿฅ‘๐Ÿท๐Ÿ“๐ŸŒ๐Ÿ–F๐Ÿฆƒ ๐Ÿ‘๐Ÿšœ๐Ÿ‹๐Ÿ‚A๐Ÿ๐ŸŒพ๐Ÿค–๐Ÿ€๐Ÿฆ” R๐Ÿฆœ๐Ÿฆ๐Ÿˆ๐Ÿฆ“๐Ÿ ๐Ÿฆ‘๐Ÿฆ‚M๐Ÿœ
View GitHub Profile
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@kylebarrow
kylebarrow / example.html
Created June 23, 2011 06:30
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 โ€“ Useful Shortcuts (Mac OS X)

General

โŒ˜T go to file
โŒ˜โŒƒP go to project
โŒ˜R go to methods
โŒƒG go to line
โŒ˜KB toggle side bar
โŒ˜โ‡งP command prompt
@jaseemabid
jaseemabid / git tutorials.md
Last active May 9, 2025 01:01 — forked from netroy/git tutorials.md
Awesome git tutorials I am finding here and there
@superchris
superchris / loadTemplates.js
Created November 12, 2011 01:31
loading templates in jasmine specs
jasmine.Fixtures.prototype.loadTemplate_ = function(template) {
var templateUrl = "/backbone/templates/" + template;
var self = this;
$.ajax({
async: false, // must be synchronous to guarantee that no tests are run before fixture is loaded
cache: false,
dataType: 'html',
url: templateUrl,
success: function(data) {
$('#' + self.containerId).append(data);
@mrdanadams
mrdanadams / application.js
Created March 28, 2012 20:41
Updating a DIV with partials after remote AJAX form submit in Rails 3
$(function() {
/* Convenience for forms or links that return HTML from a remote ajax call.
The returned markup will be inserted into the element id specified.
*/
$('form[data-update-target]').live('ajax:success', function(evt, data) {
var target = $(this).data('update-target');
$('#' + target).html(data);
});
});
@lg0
lg0 / markdown.xml
Created April 10, 2012 19:58
Markdown Syntax Highlighting for Sublime text 2
<!-- copy this to YOUR_THEME.tmTheme-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
@JennDudley
JennDudley / rails_github_heroku.md
Created April 25, 2012 20:56
Steps to set up a new Rails app, initialize a git repo, push to Github and deploy to Heroku

This is a list of steps to:

  • Setup a new Rails app
  • Initialize a local repository using git
  • Create a new remote repository using GitHub
  • Change README.rdoc
  • Deploy to a cloud service - Heroku

Assumptions:

  • Ruby is installed (v 1.9.3)
  • Rails is installed (v 3.2.3)
@kconragan
kconragan / keyrepeat.shell
Last active October 16, 2025 10:31
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
I need a gem. It should have 2 functions.
Both functions take a string and a list of words.
The first returns the string with all words in the list obfuscated.
The second returns data that contains the list of words and their associated frequency.
Thanks.