Skip to content

Instantly share code, notes, and snippets.

View joshuakfarrar's full-sized avatar
💻
EitherT[IO, Throwable, Human]

Joshua K. Farrar joshuakfarrar

💻
EitherT[IO, Throwable, Human]
View GitHub Profile
class Player
def play_turn(warrior)
@warrior = warrior
@state = get_next_objective
case @state
when :all_clear
step_forward
when :enemy_ahead
class Player
def play_turn(warrior)
@warrior = warrior
@state = get_next_objective
case @state
when :clear_room
clear_room
when :flee_and_heal
╭─sent1nel@syndicate ~/apps/mockmeet ‹2.2.0›
╰─$ fortune | cowsay | lolcat
_________________________________________
/ In /users3 did Kubla Kahn A stately \
| pleasure dome decree, Where /bin, the |
| sacred river ran Through Test Suites |
\ measureless to Man Down to a sunless C. /
-----------------------------------------
\ ^__^
\ (oo)\_______
╭─sent1nel@syndicate ~ ‹2.1.1›
╰─$ cat greeter.js
class Greeter {
constructor(name) {
this.name = name;
}
greeting() {
return `Hey, ${this.name}!`;
}
<?php
class Person {
function __construct($name) {
$this->name = $name;
}
}
$person = new Person('sent1nel');
The Parlour of the Immortals - - -
-<---- Vnum: 1200 ----------------------------->- -<---(*)--->-
- - -
[Exits: none]
+-----------+ You are lounging in a quiet cosy parlour, warmed by a gentle
| | magical fire which twinkles happily in a warm fireplace.
| |
| |
| |
You enter the Great Hall
> l
Great Hall
You can go: north
> n
You entered the Throne Room.
> l
Throne Room
make defconfig
make
sudo cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.0.8-amd64
sudo cp System.map /boot/System.map-4.0.8-amd64
sudo update-initramfs -c -k 4.0.8-amd64
sudo update-grub
sudo reboot
uname --all # Linux stormwind 4.0.8 #1 SMP Sat Jul 11 19:53:00 EDT 2015 x86_64 GNU/Linux (woot!)
greet :: [Char] -> [Char]
greet name = "hello, " ++ name
main = putStrLn (greet "sent1nel")