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" | |
"io" | |
"os" | |
"os/exec" | |
"strings" | |
) |
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 ( | |
"encoding/json" | |
"fmt" | |
"os" | |
) | |
func main() { | |
decoder := json.NewDecoder(os.Stdin) |
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
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### # | |
# | |
# _dockerfile/mysql/conf.d/my.cnf | |
# Last update: 2017-01-05_10h05 | |
# | |
# This mysql config is made to run within the official mysql container. | |
# https://hub.docker.com/_/mysql/ | |
# | |
# Inspired by: | |
# https://www.percona.com/blog/2016/10/12/mysql-5-7-performance-tuning-immediately-after-installation/ |
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
# app/models/image.rb | |
class Image < ActiveRecord::Base | |
has_many :taggings, :as => :taggable | |
has_many :tags, :through => :taggings | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
:: Make --no-ri --no-rdoc default gem install options (without documentation) | |
:: Possible variations: | |
:: For every user: | |
:: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc" | |
:: Only for you | |
:: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc" | |
:: | |
:: Note: In Windows, %PROGRAMDATA% is /etc on Linux | |
:: | |
:: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985 |
NewerOlder