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
| irb(main):001:0> class Foo | |
| irb(main):002:1> def GRAPHMOTHAFUCKA!! | |
| irb(main):003:2* puts "lololol" | |
| irb(main):004:2> end | |
| irb(main):005:1> end | |
| SyntaxError: (irb):2: syntax error, unexpected '!', expecting ';' or '\n' | |
| (irb):5: syntax error, unexpected keyword_end, expecting $end | |
| from /Users/jkiehl/.rbenv/versions/1.9.3-p429/bin/irb:12:in `<main>' |
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" | |
| ) | |
| type TreeNode struct { | |
| Val int | |
| Left *TreeNode | |
| Right *TreeNode |
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" | |
| "strconv" | |
| "strings" | |
| ) | |
| type Bucket struct { | |
| elements [10]*BucketElement |
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
| http://www.pvk.ca/Blog/2012/07/03/binary-search-star-eliminates-star-branch-mispredictions/ |
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
| type Application struct { | |
| *revel.Controller | |
| } |
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
| kirby = ["(>' ')>", "(^' ')^", "<(' '<)", "^(' '^)"] |
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
| [lax1:riot] cookbooks/ $ git clone https://github.com/opscode-cookbooks/jenkins.git | |
| Cloning into 'jenkins'... | |
| remote: Counting objects: 602, done. | |
| remote: Compressing objects: 100% (319/319), done. | |
| remote: Total 602 (delta 296), reused 518 (delta 229) | |
| Receiving objects: 100% (602/602), 114.14 KiB, done. | |
| Resolving deltas: 100% (296/296), done. | |
| [lax1:riot] cookbooks/ $ cd jenkins/ | |
| [lax1:riot] jenkins/ (master) $ berks init | |
| conflict Berksfile |
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 'pp' | |
| class A | |
| def foo(x, y) | |
| varargs = method(__method__).parameters.collect(&:last).collect { |var| eval var.to_s } | |
| bar(*[__method__] + varargs) | |
| end | |
| def bar(*args) | |
| puts __method__ |
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
| sdf |
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
| module Net; end | |
| gem 'net-ldap' | |
| Net.autoload :LDAP, 'net/ldap' |