13 Nov 2013 歌舞伎座 tech#2
@Linda_pp
https://twitter.com/Linda_pp
https://github.com/rhysd
(module | |
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) | |
(type $FUNCSIG$vii (func (param i32 i32))) | |
(type $FUNCSIG$vi (func (param i32))) | |
(type $FUNCSIG$iii (func (param i32 i32) (result i32))) | |
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) | |
(type $FUNCSIG$iiiiiiii (func (param i32 i32 i32 i32 i32 i32 i32) (result i32))) | |
(type $FUNCSIG$ii (func (param i32) (result i32))) | |
(type $FUNCSIG$i (func (result i32))) | |
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32))) |
#! /bin/bash | |
set -e | |
if [[ "$1" == "" ]]; then | |
echo "Usage: git pull-pr {PR number}" 1>&2 | |
exit 1 | |
fi | |
git fetch origin "pull/$1/head:pr-$1" |
#!/usr/bin/env ruby | |
require 'benchmark' | |
puts Benchmark.measure { | |
s = "" | |
5000000.times do | |
s << "hey, hey, " | |
end | |
} |
package main | |
func main() { | |
arr := []int{5, 4, 3, 2, 1} | |
l := len(arr) | |
for i, e := range arr[:l/2] { | |
j := l - 1 - i | |
arr[i] = arr[j] | |
arr[j] = e | |
} |
type CONTINUE = 100; | |
type SWITCHING_PROTOCOLS = 101; | |
type OK = 200; | |
type CREATED = 201; | |
type ACCEPTED = 202; | |
type NON_AUTHORITATIVE_INFORMATION = 203; | |
type NO_CONTENT = 204; | |
type RESET_CONTENT = 205; | |
type PARTIAL_CONTENT = 206; | |
type MULTIPLE_CHOICES = 300; |
<!DOCTYPE html> | |
<html> | |
<body> | |
Hello, world. | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<body> | |
<a href="https://github.com" rel="noopener" target="_blank">link</a> | |
</body> | |
</html> |
package main | |
import ( | |
"fmt" | |
"strings" | |
"testing" | |
) | |
// Version A (traditional) |
; ModuleID = 'foo.ml' | |
source_filename = "foo.ml" | |
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-darwin16.4.0" | |
; コード: | |
; let rec f x = x + x in | |
; println_int (f 42) | |
; Function Attrs: nounwind |