- hello
- world
- test
- bga
- bga
- bga
- bga
- bga
- bga
- bga
- bga
- bga
- bga
- bga
- bga
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
inoremap <up> <nop> | |
nnoremap <up> <nop> | |
vnoremap <up> <nop> | |
inoremap <down> <nop> | |
nnoremap <down> <nop> | |
vnoremap <down> <nop> | |
inoremap <left> <nop> | |
nnoremap <left> <nop> |
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
class BetterStruct < Struct | |
class << self | |
def new(*required, **properties) | |
super(*(required + properties.keys)) do | |
define_singleton_method(:_default_values) do | |
properties | |
end | |
end | |
end |
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
# Short version of previous file (if you don't care about class names) | |
SomeClass = Class.new do | |
class << self | |
class << self | |
def instance; singleton_class end | |
class << self | |
def some_method | |
"here go dragons" | |
end |
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 rsion | |
puts "This is Rsion, baby" | |
end |
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
# Without DI: | |
# It knows what kind of datastore it has | |
# This way you just mixed URL, HTTP methods and stuff here | |
class Person | |
API_URL = "#{ROOT_API_URL}/api/v2/people" | |
def save | |
return insert if new? | |
update | |
end |
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/env bash | |
set -e | |
## Developer Environment | |
# setup | |
mkdir -p ~/setup | |
cd ~/setup |
When creating a package, please create a README.md
for it with its name and short explanation of its responsibility.
Then each time you add/modify any functionality you can refer to README.md
and see if it is suitable to put
it in this package or it needs to have its own package.
When creating a file inside of package, please put short comment in the beginning of the file what it should contain, what is the job of this submodule.
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
cmd/cgo/ast.go | |
278: error_(token.NoPos, "unexpected type %T in walk", x, visit) | |
cmd/compile/internal/gc/align.go | |
340: * type T *struct { next T } | |
cmd/compile/internal/gc/const.go | |
138: if t != nil && t.Etype == TIDEAL && n.Val().Ctype() != CTINT { | |
cmd/compile/internal/gc/dcl.go |
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
HELLO world |
OlderNewer