- toys
- litter box
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
| from math import factorial | |
| def comb(k,n): return factorial(n)/(factorial(k)*factorial(n-k)) | |
| n=10 | |
| k=3 | |
| comb(n-1, k+n-1) |
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 "fmt" | |
| import "bufio" | |
| import "os" | |
| import "bytes" | |
| func main() { | |
| fmt.Println("ready") |
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
| yac@deathstar % time ./main kjekfw ekfew f | |
| kjekfw ekfew f | |
| ./main kjekfw ekfew f 0.00s user 0.00s system 90% cpu 0.003 total | |
| -------------------------------------------------------------------------------- | |
| ~/data/yaccz/code-snippets.git/go/echo git:master | |
| yac@deathstar % time ./main kjekfw ekfew f | |
| kjekfw ekfew f | |
| ./main kjekfw ekfew f 0.00s user 0.00s system 72% cpu 0.004 total | |
| -------------------------------------------------------------------------------- | |
| ~/data/yaccz/code-snippets.git/go/echo git:master |
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 ( | |
| _ "github.com/lib/pq" | |
| "database/sql" | |
| "fmt" | |
| ) | |
| type User string |
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
| pq: S:"ERROR" C:"42601" M:"syntax error at or near \"as\"" P:"10" F:"scan.l" L:"1002" R:"scanner_yyerror" |
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
| if !exists("*Redosaver") | |
| function Redosaver() | |
| let i=0 | |
| while 1 | |
| sav '/tmp/vimredosaver/' . i . '.txt' | |
| try | |
| redo | |
| catch |
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 ( | |
| "fmt" | |
| "flag" | |
| ) | |
| type User string | |
| type Set struct { |
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
| --- mako-0.7.3-r1.ebuild 2013-10-22 00:18:25.466257665 +0200 | |
| +++ mako-0.7.3-r2.ebuild 2013-10-22 03:20:32.270708336 +0200 | |
| @@ -6,7 +6,7 @@ | |
| PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) | |
| -inherit distutils-r1 | |
| +inherit distutils-r1 readme.gentoo versionator | |
| MY_P="Mako-${PV}" |
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
| 2*"." ; double dot | |
| "/." ; dot after slash | |
| 2*"/" | |
| "@{" | |
| %x0-20 / 0x7F ; ASCII < 0x20 and DEL | |
| %x20 / %x7E / %x5E / %x3A ; space, ~, ^, : | |
| %x3F / %x2A / %x5B ; ?, *, [ | |
| %x5C ; \ |