bibimbap as i make it is basically
- rice
- sitr fried vegetables
- some meat in tasty spices
- gochujang (this is fermented soy bean paste with paprika)
- a fried egg
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int i(const int i) { printf("%d\n", i); return i; } | |
| int f(const int i) { printf("Fizz\n"); return i; } | |
| int b(const int i) { printf("Buzz\n"); return i; } | |
| int fb(const int i) { printf("FizzBuzz\n"); return i; } | |
| int (* PC[15])(int i) = { i,i,f,i,b,f,i,i,f,b,i,f,i,i,fb }; // Printer Cycle | |
| int go(const int arg) { |
| " Load ~/.vim/bundle packages. | |
| call pathogen#infect() | |
| call pathogen#helptags() | |
| " Use Vim defaults | |
| set nocompatible | |
| " Colorscheme settings. | |
| syntax enable | |
| set t_Co=256 |
| git clone git@github.com:cronin101/OneTrueConfig.git --recursive && cd OneTrueConfig && ./install.rb |
| #!/usr/bin/env ruby | |
| require 'asymptotic' | |
| class Array | |
| def custom_uniq_1 | |
| new_array = [] | |
| each do |elem| # you call each method on self here | |
| new_array << elem unless new_array.include?(elem) |
| #!/usr/bin/env ruby | |
| require './hadope' | |
| require 'benchmark' | |
| puts "Problem, mapping an addition (or two) to a large Array" | |
| Hadope::set_device Hadope::CPU | |
| input = (1..10_000_000).to_a | |
| ruby = Benchmark.realtime { | |
| last = input.map { |i| i + 1 }.map { |j| j + 1 }.last |
| main ⭔ define_method :secret_message, ->{ ->{ define_method :secret_message, ->{ "Too late" } }.() && "I hope you remember this" } | |
| #=> #<Proc:0x007fb74ad90f68@(pry):21 (lambda)> | |
| main ⭔ secret_message | |
| #=> "I hope you remember this" | |
| main ⭔ secret_message | |
| #=> "Too late" |
| main ⭔ define_method :qux_it!, ->{ ->{ define_method :qux_it!, ->{ raise "Already quxxed it bro" } }.() && "Quxxing the foo-bar" } | |
| #=> #<Proc:0x007fb75035b1f0@(pry):24 (lambda)> | |
| main ⭔ qux_it! | |
| #=> "Quxxing the foo-bar" | |
| main ⭔ qux_it! | |
| #RuntimeError: Already quxxed it bro | |
| #from (pry):24:in `block (3 levels) in __pry__' | |
| main ⭔ qux_it! | |
| #RuntimeError: Already quxxed it bro | |
| #from (pry):24:in `block (3 levels) in __pry__' |
| import Data.List | |
| data SummedIntList = SummedIntList { | |
| listElements :: [Int], | |
| elementTotal :: Int | |
| } deriving (Show) | |
| emptySummedList = SummedIntList [] 0 | |
| addIntToList (SummedIntList xs t) x = SummedIntList (xs ++ [x]) (t + x) |