I hereby claim:
- I am theshadowfog on github.
- I am tinsef (https://keybase.io/tinsef) on keybase.
- I have a public key whose fingerprint is CD9C 0E14 5EB5 69AA 8DC4 05A7 4BD5 F707 EFCC 6E2C
To claim this, I am signing this object:
#!/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby | |
require 'fileutils' | |
require 'optparse' | |
require 'redcarpet' | |
current_time = Time.now | |
@pdir = "posts" | |
@output = "/var/www/blog/posts" | |
@template = "<center>Title: | |
<br>Date: **#{current_time}** | |
</center>" |
(defparameter *stack* | |
(list 0)) | |
(defun push-to-stack (&rest args) | |
"This pushes any number of arguments to the stack." | |
(dolist (arg args) | |
(push arg *stack*) | |
(print "ok"))) | |
(defun pop-stack (&rest args) |
I hereby claim:
To claim this, I am signing this object:
use std::io; | |
use std::io::prelude::*; | |
fn main() { | |
let stdin = io::stdin(); | |
for line in stdin.lock().lines() { | |
println!("{}", line.unwrap()); | |
break; | |
} | |
} |
#!/usr/bin/env ruby | |
require 'pp' | |
def pop; $stack.pop || raise(StackUnderflow); end | |
def push(expression); $stack << expression; end | |
def unary; -> { push(yield pop) }; end | |
def binary; -> { push(yield pop, pop) }; end | |
def unary_boolean; -> { push(if yield pop then 1 else 0 end) }; end | |
def binary_boolean; -> { push(if yield pop, pop then 1 else 0 end) }; end | |
def functions; -> { push(yield pop, pop)}; end |
#!/usr/bin/env ruby | |
def push(element); $stack << element; end | |
def pop; $stack.pop end | |
$stack = [] | |
$dictionary = { | |
'.' => -> { puts(pop) }, | |
'..' => -> { puts($stack) }, | |
'.,' => -> { pp($dictionary)}, |