Skip to content

Instantly share code, notes, and snippets.

View vy-let's full-sized avatar

Violet vy-let

  • Instructure
  • Seattle
  • 20:30 (UTC -07:00)
View GitHub Profile
body {
font-family: "Helvetica Neue", "Helvetica", sans-serif;
margin: 10% 15%;
background-color: rgb(240, 240, 240);
}
h1 {
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
margin-left: -2em;
margin-right: -2em;
@vy-let
vy-let / motd-witty
Created April 28, 2015 01:34
motd-witty
#!/usr/bin/ruby
GREETINGS_FILE = '/etc/motd-witty.json'
#
# motd-witty
#
# Version 1.1
# Talus Baddley, 2013.
@vy-let
vy-let / RACStream+SlidingWindow.m
Last active August 29, 2015 14:16
Bringing the sliding window metaphor to RACStreams (RACSequences, RACSignals, etc).
//
// RACStream+SlidingWindow.m
// Bringing the sliding window stream metaphor to RACStreams (RACSequences, RACSignals, etc).
// Copyright © 2015 Talus Baddley. MIT License.
//
// This is heavily UNTESTED. Please contact me if you find bugs.
//
#import <ReactiveCocoa/ReactiveCocoa.h>
@vy-let
vy-let / parse^_^.rb
Created June 23, 2014 00:28
Smilef Shell Prototype Parser
#!/usr/bin/env ruby
#encoding: utf-8
require 'yaml'
require 'readline'
require 'parslet'
#
# Prototype Parser
# for the Smilef Shell Language
@vy-let
vy-let / gets.swift
Created June 15, 2014 05:05
Gets in Swift
//
// gets.swift
// smilef
//
// Created by Talus Baddley on 2014-6-5.
// Copyright (c) 2014 Eightt. All rights reserved.
//
// This is to demonstrate a simple, safe gets() implementation
// in Swift, that automatically buffers input on demand and
@vy-let
vy-let / ld.sh
Last active August 29, 2015 13:57
Install libdispatch for use on Linux
# In my experience on Debian and a couple of Ubuntu systems,
# this one-liner gets libdispatch code ready-to-compile and use.
sudo aptitude install clang libblocksruntime-dev libkqueue-dev libpthread-workqueue0 libpthread-workqueue-dev libdispatch0 libdispatch-dev
# Compile with clang.
# (Prefer gcc? It's okay, you can use clang. I won't tell on you.)
clang foo.c -o foo -fblocks -lBlocksRuntime -ldispatch