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 "excon" | |
| require "json" | |
| data = JSON.parse(Excon.get("https://covid19.th-stat.com/api/open/timeline").body) | |
| timeline = data["Data"].reverse.take(60).map do |day| | |
| [ | |
| day["Date"], | |
| day["NewConfirmed"], | |
| day["NewRecovered"], |
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 ruby | |
| require "mechanize" | |
| require "nokogiri" | |
| require "date" | |
| require "json" | |
| agent = Mechanize.new | |
| page = agent.get("https://www.bot.or.th/English/FinancialInstitutions/FIholiday/Pages/2017.aspx") |
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 * | |
| IdentitiesOnly yes | |
| UseKeychain no | |
| AddKeysToAgent no | |
| Host git.omise.co | |
| User git | |
| IdentityFile ~/.ssh/git.omise.co/robin | |
| Host github.com |
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
| invisiblesMap = "~ " | |
| excludeDirectories = "{$excludeDirectories,tmp}" | |
| include = "{$include,.gitignore,.env}" |
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
| [core] | |
| excludesfile = ~/.gitignore | |
| [user] | |
| name = Robin Clart | |
| email = robin@omise.co | |
| [alias] | |
| pending = !git add -A && git commit -m pending | |
| pop = !git reset --soft HEAD~1 && git reset |
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
| --- | |
| gem: --no-ri --no-rdoc |
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
| # List of acceptable shells for chpass(1). | |
| # Ftpd will not allow users to connect who are not using | |
| # one of these shells. | |
| /bin/bash | |
| /bin/csh | |
| /bin/ksh | |
| /bin/sh | |
| /bin/tcsh | |
| /bin/zsh |
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
| cask_args appdir: '/Applications' | |
| tap 'caskroom/cask' | |
| tap 'ethereum/ethereum' | |
| tap 'cockroachdb/cockroach' | |
| cask '1password' | |
| cask 'textmate' | |
| cask 'dropbox' | |
| cask 'spectacle' |
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 GOROOT /usr/local/opt/go/libexec | |
| set GOPATH ~/src | |
| set EDITOR 'mate -w' | |
| set PATH ./bin ~/bin ~/.rbenv/shims $PATH $GOROOT/bin | |
| alias m "mate" | |
| alias mm "mate ." | |
| alias gss "git status -sb" | |
| alias gpo "git pull origin --tags" | |
| alias gc "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
| --- | |
| BUNDLE_GEM__COC: false | |
| BUNDLE_GEM__MIT: true | |
| BUNDLE_GEM__TEST: minitest |
NewerOlder