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
flow do | |
# Flow arguments allow you to parameterize the flow | |
argument :org_name, :string do | |
allow_nil? false | |
end | |
argument :user_name, :string do | |
allow_nil? false | |
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
digits = | |
(~w(one two three four five six seven eight nine) | |
|> Enum.with_index(1) ) ++ ( ~w(1 2 3 4 5 6 7 8 9) | |
|> Enum.with_index(1) ) |> Enum.into(%{}) | |
digits = ~w(1 2 3 4 5 6 7 8 9) | |
|> Enum.with_index(1) |> Enum.into(digits) | |
input | |
|> String.split() | |
|> Enum.map(fn line -> |
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
let | |
moz_overlay = import (fetchTarball { | |
url = "https://github.com/mozilla/nixpkgs-mozilla/archive/3f3fba4e2066f28a1ad7ac60e86a688a92eb5b5f.tar.gz"; | |
sha256 = "sha256:1mrj89gzrzhci4lssvzmmk31l715cddp7l39favnfs1qaijly814"; | |
}); | |
nixpkgs = import (fetchTarball { | |
url = | |
"https://github.com/nixOS/nixpkgs/archive/21.05.tar.gz"; | |
sha256 = "sha256:1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36"; | |
}) { overlays = [ moz_overlay ]; }; |
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
Host * | |
AddKeysToAgent yes | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null | |
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 bash | |
set -e | |
pushd .git/hooks > /dev/null | |
curl -s -O https://gist.githubusercontent.com/jechol/912acf710b02954676045b5dd9eadc23/raw/71e01f0c0f4f45c97805bbabfa6d24ce64fd8fe2/pre-commit | |
chmod a+x pre-commit | |
popd > /dev/null |
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/sh | |
cd `git rev-parse --show-toplevel` | |
mix format --check-formatted | |
if [ $? == 1 ]; then | |
echo "[ERROR!!!] Commit failed because you have format issues..." | |
echo "[SO WHAT?] Please run mix format and git add/commit again dude. ^^" | |
exit 1 | |
fi |
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
tap "homebrew/bundle" | |
tap "homebrew/core" | |
# Java is dependency for followings | |
cask "java" | |
# Core utils | |
cask "iterm2" | |
brew "fish" | |
brew "tmux" |
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
0x3c79af29dB4b55cB0e971e8e05844CB9CD6c6D0c |
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 Foundation | |
typealias VoidFunc = () -> () | |
class Person { | |
var name: String! | |
init(_ name: String) { | |
self.name = 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
function sr | |
find . -regex '.*\.(swift|storyboard|xib|h|m)' -not -path './Pods/*' | xargs ag -0 -l $argv[1] | xargs perl -i.sr_bak -pe "s/$argv[1]/$argv[2]/g" | |
find . -regex '.*\.sr_bak' | xargs rm | |
end | |
function unowned | |
for func in observeNext flatMapLatest | |
sr "\.($func) \{ ([ (:),\w->]+) in" '.$1 { [unowned self] $2 in' | |
sr "\.($func) \{\n" '.$1 { [unowned self] in\n' | |
end |
NewerOlder