This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#encoding: utf-8 | |
require 'yaml' | |
require 'readline' | |
require 'parslet' | |
# | |
# Prototype Parser | |
# for the Smilef Shell Language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
GREETINGS_FILE = '/etc/motd-witty.json' | |
# | |
# motd-witty | |
# | |
# Version 1.1 | |
# Talus Baddley, 2013. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
begin | |
loop do | |
%w( ◐ ◓ ◑ ◒ ).each do |pchar| | |
print "\x1b[1G\x1b[0K#{pchar} " | |
sleep 0.1 | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// trash.swift | |
// For moving something to the trash from the command line | |
// (instead of rm'ing it). | |
// | |
// Created by Violet Baddley on 2015-8-25. | |
// Copyright © 2015 Violet Baddley. All rights reserved. | |
// Provided under the 2-Clause BSD License. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// trash.sandpiper | |
// For moving something to the trash from the command line | |
// (instead of rm'ing it) | |
// in the Glorious Sandpiper Language. | |
// | |
// Created by Violet Baddley on 2015-8-25. | |
// Copyright © 2015 Violet Baddley. All rights reserved. | |
// Provided under the 2-Clause BSD License. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// | |
// Parsley | |
// a little sprig of a parser | |
// | |
// Violet Baddley | |
// | |
// Written for Swift 2.2 |
OlderNewer