This file contains hidden or 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
orc = require('./src/orc.coffee').orc | |
sequence1 = -> | |
orc.sequence( | |
-> | |
setTimeout orc.waitFor(), 1000 | |
-> | |
console.log 'done with sequence 1' | |
) |
This file contains hidden or 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 'similar_text' |
This file contains hidden or 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 Cocoa | |
var name: NSString? | |
func bang_and_greet(name:NSString!) { | |
println("hello \(name)") | |
} | |
func dont_bang_and_greet(name:NSString) { | |
println("hello \(name)") |
This file contains hidden or 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
[alias] | |
remind = !echo "Reminders: " && git reminders | cut -d ' ' -f2 | xargs -L1 git reminders show | |
reminders = notes --ref=reminders |
This file contains hidden or 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
[alias] | |
find-branch = !git branch | cut -c 3- | selecta | xargs git checkout |
This file contains hidden or 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
alias dotfiles='find . -not -iwholename "." -not -iwholename "*.git" -not -iwholename "*.gitmodules" -name ".*" -maxdepth 1' | |
cd ~/work/me/dotfiles | |
dotfiles | cut -c 3- | xargs -L1 -I {} ln -s $PWD/{} $HOME/{} | |
dotfiles | cut -c 3- | xargs -L1 -I {} rm $HOME/{} |
This file contains hidden or 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
# usage: find-dotfiles [directory] | |
function find-dotfiles() { | |
# I store my dotfiles in git, therefore I want to ignore | |
# the following files, and everyone wants to ignore "." | |
default_excludes=("." "*.git" "*.gitmodules") | |
exclude=$(printf " -not -iwholename '%s'" ${default_excludes[*]}) # map to -not -iwholename $FILE | |
eval "find ${1-$PWD} -name '.*' $exclude -maxdepth 1 | xargs -L1 -I {} basename {}" | |
} | |
# usage: link-dotfiles [from] [to] |
This file contains hidden or 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
language: objective-c | |
osx_image: xcode61 | |
script: | |
- xctool test -project Project.xcodeproj -scheme Project -sdk iphonesimulator |
This file contains hidden or 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 sh | |
DOTVERSION=0.0.1 | |
function dot() { | |
(( $# )) || (echo "No arguments provided." && dot-usage) | |
# check for version, and help | |
for arg in "$@" | |
do | |
case $arg in |
This file contains hidden or 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
package com.michaelavila; | |
import java.util.Optional; | |
import java.util.function.Function; | |
/** | |
* Created by michaelavila on 7/30/15. | |
*/ | |
public class FunctionalExamples { | |
public static void main(String[] args) { |