This file contains 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 ( | |
"fmt" | |
"reflect" | |
) | |
type Foo struct { | |
FirstName string `tag_name:"tag 1"` | |
LastName string `tag_name:"tag 2"` |
This file contains 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
sudo apt-get purge openjdk* | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
download pycharm | |
cd bin | |
chmod u+x | |
./pycharm.sh |
This file contains 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
:noremap tt :tab split<CR> | |
:autocmd BufWritePost *.go :GoImports | |
set background=light | |
"unlet g:ctrlp_custom_ignore | |
"unlet g:ctrlp_user_command | |
"let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git' | |
let mapleader = "," | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_structs = 1 |
This file contains 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
# webpack | |
module.exports = { | |
entry: "./graphiql.js", | |
output: { | |
path: __dirname, | |
filename: "bundle.js" | |
}, | |
module: { | |
loaders: [{ | |
test: /\.jsx?$/, |
This file contains 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
# create an venv | |
python3 -m venv myvenv | |
# activate it | |
python3 -m venv myvenv | |
# initial migrate | |
python manage.py migrate | |
# run migrations | |
python manage.py makemigrations myapp |
This file contains 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
# plugin to adjust (alt - arrows) margins | |
# nudg.it | |
# clone + guide lines | |
alt - click | |
# clone | |
cmd - d | |
# grid layout |
This file contains 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 ( | |
"log" | |
"github.com/graphql-go/graphql" | |
) | |
type Schema struct { |
This file contains 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
def bar(x, y, *args) | |
puts x, y | |
puts "args: #{args}" | |
end | |
bar(*[1, 2, 3, 5]) |
This file contains 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
# xcode 5.1 error when install thrift | |
bundle config build.thrift --with-cppflags='-D_FORTIFY_SOURCE=0' | |
# When debugging in ruby 2.1.0 | |
# error: cannot find vm_core.h | |
# we have to downgrade to ruby 2.0.0 | |
# to start using -> ruby-debug-ide | |
# Nokogiri and libxml | |
# Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, |
This file contains 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/ruby | |
def fun1 | |
5.times do |i| | |
puts "from FUNCTION ONE #{i.to_s}" | |
sleep(2) | |
end | |
end | |
def fun2 | |
5.times do |i| |