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
#!/usr/bin/env ruby | |
start_time = Time.now | |
require 'socket' | |
require 'tempfile' | |
require File.expand_path('config/application.rb') | |
require 'rspec/rails' |
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
function build() { | |
local branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
local job=soundcloud_${branch}_specs_00$1 | |
local url=http://builder.soundcloud.com/view/All/job/${job}/lastBuild/consoleText | |
local cwd="\/srv\/hudson\/.jenkins\/jobs\/${job}\/workspace\/" | |
curl -s $url | sed "/\/usr\/local\/rvm\/.*/d" | sed -e "s/$cwd/.\//" | |
} |
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
function (a, b) { | |
if (!FB._apiKey) { | |
FB.log('FB.getLoginStatus() called before calling FB.init().'); | |
return; | |
} | |
if (a) if (!b && FB.Auth._loadState == 'loaded') { | |
if (FB._oauth) { | |
a({ | |
status: FB._userStatus, | |
authResponse: FB._authResponse |
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
set expandtab "Use softtabstop spaces instead of tab characters for indentation | |
set shiftwidth=2 "Indent by 4 spaces when using >>, <<, == etc. | |
set softtabstop=2 "Indent by 4 spaces when pressing <TAB> | |
set autoindent "Keep indentation from previous line | |
set smartindent "Automatically inserts indentation in some cases | |
set cindent "Like smartindent, but stricter and more customisable | |
set tags=TAGS;/ | |
colorscheme slate |
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
<h1>HEY</h1> |
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
(defun copy-line (n) | |
(let ((column (current-column)) | |
(line (buffer-substring (line-beginning-position) (+ (line-end-position) 1)))) | |
(beginning-of-line) | |
(forward-line n) | |
(insert line) | |
(forward-line -1) | |
(forward-char column))) | |
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
[ [ -3.819558145292103e-7 ], | |
[ -5.35226996671632e-7 ], | |
[ 0.000002393972935819372 ], | |
[ -0.0000028440602496875524 ], | |
[ 0.000001939623125624494 ], | |
[ 1.2133380581455064e-7 ], | |
[ -0.000002130055512554684 ], | |
[ 0.000003797583578709503 ], | |
[ -0.000004082173036187974 ], | |
[ 0.0000021020953555030604 ], |
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
import kivy | |
kivy.require('1.0.0') | |
from kivy.lang import Builder | |
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.core.image import Image | |
from kivy.graphics import * | |
from kivy.uix.widget import Widget | |
from kivy.uix.label import Label |
NewerOlder