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
#!/bin/bash | |
password_file=$1 | |
update_account() { | |
USERNAME=$1 | |
PASSWORD=$2 | |
FILE=$3 | |
awk -i inplace "/username: '$USERNAME'/ { print \$0; getline; \$2="'$PASSWORD'" } { print \$0 }" $FILE |
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
# encoding: utf-8 | |
def 🐣(🐣🐣) | |
🐣🐣 + 🐣🐣 | |
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
au BufNewFile,BufRead *.js syntax match jsNot /!/ conceal cchar=¬ | |
au BufNewFile,BufRead *.js syntax match jsOr /||/ conceal cchar=∨ | |
au BufNewFile,BufRead *.js syntax match jsAnd /&&/ conceal cchar=∧ | |
au BufNewFile,BufRead *.js syntax match jsEqual /===/ conceal cchar=↔ |
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" | |
"fmt" | |
"os" | |
"time" | |
) | |
func main() { |
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
(ns sparks.core) | |
(def ticks '[▁ ▂ ▃ ▄ ▅ ▆ ▇ █]) | |
(defn scale [smallest biggest x] | |
(inc | |
(/ | |
(* (dec (count ticks)) (- x smallest)) | |
(max (- biggest smallest) 1)))) |
Instale o lein antes de mais nada https://github.com/technomancy/leiningen que ele ajuda a rodar projetos, qual a versao do clojure, dependencias, task runners
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
require 'minitest/autorun' | |
require 'truco' | |
include Truco | |
describe Truco::Card do | |
it 'has a suit' do | |
card = Card.new(1, Suits[:hearts]) | |
assert_equal(card.suit, Suits[:hearts]) | |
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
env X="() { :;} ; echo busted" /bin/sh -c "echo completed" | |
env X="() { :;} ; echo busted" `which bash` -c "echo completed" |
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 ( | |
"code.google.com/p/goauth2/oauth" | |
"fmt" | |
"github.com/google/go-github/github" | |
"os" | |
"strconv" | |
) |