Corsair CX600 600W Power Supply
GIGABYTE GA-EP45-UD3R LGA 775 Intel P45 ATX Intel Motherboard
Intel Core 2 Duo E8500 Wolfdale Dual-Core 3.16 GHz
MSI GeForce 9800 GT 512MB PCI Express 2.0 x16 SLI Support Video Card
十萬 = 100_000 | |
class Fixnum | |
def 個 | |
times.map { yield } | |
end | |
end | |
puts 十萬.個 { "為什麼" } |
Better Testing in Ruby (or "How I Learned to Love Testing") | |
============================== | |
Introduction: | |
- Ricky | |
- Software Engineering @ Airbnb (Previous: Twitter, Aniarc) | |
Beginning: | |
- "I wrote the code, I already know it works!" |
class Lol | |
def initialize(some_array) | |
@some_array = some_array | |
end | |
def lol | |
puts some_array.inspect # returns value | |
some_array += [1] # undefined method `+' for nil:NilClass (NoMethodError) | |
end |
$$$$$c_shit_mutex = Mutex.new | |
class RunStuffAsyncPoolBigData | |
def run | |
Thread.new do | |
$$$$$c_shit_mutex.synchronize { c_shit } | |
run_only_thread_safe_shit_in_here_yo | |
end | |
end |
import logging | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def foo(): | |
paifor x in range(0, 3): |
go | |
build-essentials | |
mercuial | |
docker | |
etcd |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
test: liveness | |
name: liveness-localhost | |
namespace: cluster-tests | |
spec: | |
containers: | |
- name: liveness |
# frozen_string_literal: true | |
module FooFile | |
class Processor | |
def self.from_file(file) | |
new(File.read(file)) | |
end | |
def initialize(raw) | |
@raw = raw |
package main | |
import "fmt" | |
func plusone(a int) int { | |
return a + 1 | |
} | |
type testCase struct { | |
input int |