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 main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"log" | |
"net/http" | |
"net/rpc/jsonrpc" | |
) |
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
module Builds::Git | |
def self.check_sha(sha, treeish) | |
Dir.chdir(Settings.git.path) do | |
out = `git log #{treeish} | grep #{sha}` | |
if out.strip.empty? | |
out = `git rev-list --cherry-mark master...#{treeish} | grep '#{sha}'` | |
if out.strip == "=#{sha}" | |
return true |
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 main | |
import ( | |
"crypto/md5" | |
"fmt" | |
"strings" | |
) | |
type digest struct { | |
username string |
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] | |
l = "!. ~/.githelpers && pretty_git_log" | |
la = !git l --all | |
r = !git l -30 | |
ra = !git r --all |
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
class Diamond | |
STARTING_CHARACTER = "A" | |
def initialize(letter) | |
@letter = letter | |
end | |
def to_s | |
lines.join("\n") | |
end |
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
name = "foo" # name of A/B test | |
# load split config | |
Wimdu::AbTest::Registry.new | |
experiment = Split::Experiment.new(name) | |
experiment.new_record? | |
experiment.delete | |
experiment = Split::Experiment.new(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
set nocompatible | |
" vim-plug | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | source $MYVIMRC | |
endif | |
call plug#begin('~/.vim/bundle') |
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 main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"time" | |
"golang.org/x/time/rate" |
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 main | |
import ( | |
"errors" | |
"fmt" | |
) | |
type ErrorLogger interface { | |
Log(error) error | |
} |
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
FROM ruby:2.4-alpine | |
RUN apk --update add --virtual\ | |
build-dependencies build-base libev libev-dev postgresql-dev nodejs bash tzdata | |
ADD ./.gemrc /tmp | |
ADD ./Gemfile /tmp | |
ADD ./Gemfile.lock /tmp | |
WORKDIR /tmp |
OlderNewer