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" | |
) | |
func main() { | |
err := fmt.Errorf("this is an error.") | |
fmt.Printf("%v\n", err) | |
fmt.Printf("%s\n", err.Error()) |
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
kseever: protip: put an m&m in your mouth, chew it a bit, then wash it down with some coffee. instant mocha. | |
Rasmus: rednecktip | |
will_gallego: America: Love it or leave it | |
will_gallego: these colors don't run. Because they melt in your mouth, not in your hand. |
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
mikef1996: tell me something did you beleave me about what i told you ? | |
scraps: what do you mean? | |
mikef1996: when those two people killed you | |
scraps: eh? I definitely killed one of them, I was pretty sure I had killed both of them. | |
scraps: I was looting one of their bodies when I died. | |
mikef1996: you said in rust chat that all three of us were tricking you | |
scraps: eh, I still haven't figured out if you were in on it. | |
mikef1996: i was they wonted to show me what it was like | |
scraps: hahahaha i figured as much. | |
scraps: you said you didn't pick anything up, then gave me back my shotgun |
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
currentFont = None | |
typing = "" | |
items = [] | |
def setup(): | |
global currentFont | |
size(500, 500) | |
currentFont = createFont("Courier", 16, True) | |
def draw(): |
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 walker import Walker | |
import sys | |
walker = Walker(250, 250) | |
def setup(): | |
print sys.version_info | |
size(500, 500) | |
background(255) |
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
extension Range { | |
func map<R>(fn: T -> R) -> R[] { | |
var dest = R[]() | |
for item in self { | |
dest.append(fn(item)) | |
} | |
return dest | |
} | |
} |
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
jorelli@machine[0] ~/Documents/xcode/hai/hai: SDKROOT=$(xcrun --show-sdk-path --sdk macosx) swift -dump-ast main.swift | |
(source_file | |
(import_decl Foundation') | |
(top_level_code_decl | |
(brace_stmt | |
(call_expr type='()' location=main.swift:11:1 range=[main.swift:11:1 - line:11:24] | |
(declref_expr type='(String) -> ()' location=main.swift:11:1 range=[main.swift:11:1 - line:11:1] decl=Swift.(file).println [with T=String] specialized=no) | |
(paren_expr type='(String)' location=main.swift:11:9 range=[main.swift:11:8 - line:11:24] | |
(call_expr implicit type='String' location=main.swift:11:9 range=[main.swift:11:9 - line:11:9] | |
(dot_syntax_call_expr type='(RawPointer, numberOfCodeUnits: Word) -> String' location=main.swift:11:9 range=[main.swift:11:9 - line:11:9] |
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
def foo(arg_one, arg_two = 5) | |
puts "arg_one: #{arg_one} arg_two: #{arg_two}" | |
end | |
foo 1, 2 | |
foo 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
int strokeFrames = 100; | |
int strokeCount = 0; | |
int saveFrame = 1; | |
boolean up = true; | |
void setup() { | |
size(500, 500); | |
} | |
void draw() { |
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
# sleepy flower girl | |
(◡ ‿ ◡ ✿) | |
# y u no | |
ლ(ಠ益ಠლ) | |
# smiling breasts | |
(^人^) | |
# flipping tables |