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
| # frozen_string_literal: true | |
| module FooFile | |
| class Processor | |
| def self.from_file(file) | |
| new(File.read(file)) | |
| end | |
| def initialize(raw) | |
| @raw = raw |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| test: liveness | |
| name: liveness-localhost | |
| namespace: cluster-tests | |
| spec: | |
| containers: | |
| - name: liveness |
| go | |
| build-essentials | |
| mercuial | |
| docker | |
| etcd |
| import logging | |
| from logging.handlers import RotatingFileHandler | |
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def foo(): | |
| paifor x in range(0, 3): |
| $$$$$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 |
| 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 |
| 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!" |
| 十萬 = 100_000 | |
| class Fixnum | |
| def 個 | |
| times.map { yield } | |
| end | |
| end | |
| puts 十萬.個 { "為什麼" } |
| //1. Create a variable called test of type boolean and assign the variable the value true. | |
| boolean test = true; | |
| //2.Create a variable called a of type int and assign the variable the value 5. | |
| int a = 5; | |
| /*3.Type in an if statement that adds 1 to a if test has value true and subtracts 1 from a if test has value false. | |
| Helpful hint: The DrJava interactions pane will evaluate an expression after you hit the return key if what you have typed in is a valid expression. To keep the interactions pane from evaluating your if statement prematurely, either type the entire statement in one line or place the statement inside braces { }*/ | |
| if (test == true) { | |
| a + 1; | |
| } | |
| else { |