portmaster irc/irssi
portmaster irc/irssi-xmpp
brew install irssi
| // first version - code demonstrating the basic idea. | |
| // see below for a fuller-featured implementation | |
| import std.string; | |
| import std.range; | |
| import std.stdio; | |
| /* A very simple string templating system. Placeholders of the form | |
| * %{variable} are replaced by the corresponding variable in the current | |
| * scope. |
| // http://rentzsch.tumblr.com/post/40806448108/ns-poor-mans-namespacing-for-objective-c | |
| #ifndef NS | |
| #ifdef NS_NAMESPACE | |
| #define JRNS_CONCAT_TOKENS(a,b) a##_##b | |
| #define JRNS_EVALUATE(a,b) JRNS_CONCAT_TOKENS(a,b) | |
| #define NS(original_name) JRNS_EVALUATE(NS_NAMESPACE, original_name) | |
| #else | |
| #define NS(original_name) original_name | |
| #endif | |
| #endif |
| int ledPin = 9; // LED connected to digital pin 9 | |
| void setup() { | |
| // nothing happens in setup | |
| } | |
| void loop() { | |
| // fade in from min to max in increments of 5 points: | |
| for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) { | |
| // sets the value (range from 0 to 255): |
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.
Now look up. Further. Above the post title. See that grey text with the gist ID?
What about some Ruby code:
rb() {
if [[ $# -lt 1 ]]; then
rbenv shell --unset| #!/bin/bash | |
| ssh $1@$2 mkdir -p .ssh | |
| cat /Users/luiscorreia/.ssh/id_rsa.pub | ssh $1@$2 'cat >> .ssh/authorized_keys' | |
| printf "Host %s\n" "$3" >> /Users/luiscorreia/.ssh/config | |
| printf "\tHostName %s\n" "$2" >> /Users/luiscorreia/.ssh/config | |
| printf "\tUser %s\n" "$1" >> /Users/luiscorreia/.ssh/config | |
| printf "\n" >> /Users/luiscorreia/.ssh/config |
| """ | |
| formula.py - propositional formulas for Python | |
| by Robin Wellner | |
| Hereby, I waive all rights to this library, as described at <http://creativecommons.org/publicdomain/zero/1.0/> | |
| Examples: | |
| foo = Atom('foo') | |
| bar = Atom('bar') |
| let rec elem x xs = | |
| match xs with | |
| | [] -> false | |
| | y :: ys -> x = y || elem x ys | |
| let rec uniques l = | |
| let rec helper l acc = | |
| match l with | |
| | [] -> acc | |
| | x :: xs -> |
| signature COROUTINE = | |
| sig | |
| type ('a, 'b, 'r) t | |
| val await : ('a, 'b, 'a) t | |
| val yield : 'b -> ('a, 'b, unit) t | |
| (* Monadic interface and stuffs *) | |
| val map : ('c -> 'd) -> ('a, 'b, 'c) t -> ('a, 'b, 'd) t | |
| val return : 'c -> ('a, 'b, 'c) t |
| (*--------------------------------------------------------------------------- | |
| Copyright (c) 2015 Daniel C. Bünzli. All rights reserved. | |
| Distributed under the BSD3 license, see license at the end of the file. | |
| %%NAME%% release %%VERSION%% | |
| ---------------------------------------------------------------------------*) | |
| (* Simple generators according to: | |
| Kiselyov, Peyton-Jones, Sabry | |
| Lazy v. Yield: Incremental, Linear Pretty-printing |