general.js > memonize.js > simple-loop.js
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
git init | |
Initialized empty Git repository in /DIR/.git/ | |
touch a.txt | |
git add -A | |
git ci -m "initial commit" | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 a.txt | |
git rebase -i HEAD^ | |
fatal: Needed a single revision |
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
module AjaxHelper | |
def wait_for_css(selector) | |
until has_css?(selector); end | |
yield(find(selector)) | |
end | |
end |
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
// | |
// ViewController.swift | |
// | |
import UIKit | |
class ViewController: UIViewController, UIActionSheetDelegate { | |
@IBAction func tapButton(sender : AnyObject) { | |
var sheet: UIActionSheet = UIActionSheet(); | |
let title: String = "Please choose a course"; |
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
$ brew unlink mysql | |
$ brew install mysql | |
Warning: It appears you have MacPorts or Fink installed. | |
Software installed with other package managers causes known problems for | |
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.10.lion.bottle.tar.gz | |
######################################################################## 100.0% | |
... |
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
source 'https://rubygems.org' | |
gem 'chef' | |
gem 'knife-solo' |
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
error: non-monotonic index .git/objects/pack/._pack-6d722bef9143fd3bad7f56161b56fbbf3a39a1f2.idx | |
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
boot2docker up | |
Waiting for VM and Docker daemon to start... | |
.........ooo | |
Started. | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/ca.pem | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/cert.pem | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/key.pem | |
To connect the Docker client to the Docker daemon, please set: | |
export DOCKER_HOST=tcp://192.168.59.103:2376 |
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
#encoding: UTF-8 | |
require 'rubygems' | |
require 'sinatra' | |
require 'erb' | |
require 'pp' | |
class Sinatra::Request | |
def pjax? | |
env['HTTP_X_PJAX'] || self['_pjax'] |