Skip to content

Instantly share code, notes, and snippets.

View modrails.txt
/home/cag/cag/current/public/dispatch.cgi:10ndor/rails/railties/lib/dispatcher.rb:41:in `dispatch'0:in `process'4:in `sass_old_process'gement_support'
We couldn’t find that file to show.
View gist:9232314
tlbounce.core=> (defrecord A [a b c])
tlbounce.core.A
tlbounce.core=> (clojure.tools.reader.edn/read-string "#tlbounce.core.A{:a 1 :b 2 :c 3}")
ExceptionInfo No reader function for tag tlbounce.core.A clojure.core/ex-info (core.clj:4327)
View gist:974f1c6f7d69df6b8e32
extern crate num;
use num::bigint::BigInt;
use std::from_str::FromStr;
fn main () {
println!("{}", BigInt::from_str("1"));
}
View gist:e0a94ebcc2e89bbc4add
import Control.Arrow
main = return ()
printFile = readFile >>> print
View gist:50e07bd69cb248d0a65b
import Control.Arrow
main = return ()
printFile = readFile >>> putStr
View config.nix
{ pkgs }: {
ryantmEnv = pkgs.buildEnv {
name = "ryantm";
paths = [
firefox
chromium-stable
thunderbird
];
};
View gist:beff6dd1610b85203753
{ pkgs }: {
packageOverrides = pkgs: rec {
ryantmEnv = pkgs.buildEnv {
name = "ryantm";
paths = with pkgs; [
firefox
chromium
thunderbird
];
View gist:81c80ec75197694cd173
pkgs: {
firefox = {
enableGnash = true;
};
packageOverrides = pkgs: {
ryantm = pkgs.buildEnv {
name = "ryantm";
paths = with pkgs; [
firefox
chromium
@ryantm
ryantm / newtype FizzBuzz
Last active Aug 29, 2015
Haskell Fizzbuzz
View newtype FizzBuzz
newtype FizzBuzz = FizzBuzz Int
instance Show FizzBuzz where
show (FizzBuzz i)
| iDivisibleBy 15 = "Fizz Buzz"
| iDivisibleBy 5 = "Buzz"
| iDivisibleBy 3 = "Fizz"
| otherwise = show i
where
iDivisibleBy n = i `rem` n == 0