Skip to content

Instantly share code, notes, and snippets.

/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.
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)
extern crate num;
use num::bigint::BigInt;
use std::from_str::FromStr;
fn main () {
println!("{}", BigInt::from_str("1"));
}
import Control.Arrow
main = return ()
printFile = readFile >>> print
import Control.Arrow
main = return ()
printFile = readFile >>> putStr
{ pkgs }: {
ryantmEnv = pkgs.buildEnv {
name = "ryantm";
paths = [
firefox
chromium-stable
thunderbird
];
};
{ pkgs }: {
packageOverrides = pkgs: rec {
ryantmEnv = pkgs.buildEnv {
name = "ryantm";
paths = with pkgs; [
firefox
chromium
thunderbird
];
pkgs: {
firefox = {
enableGnash = true;
};
packageOverrides = pkgs: {
ryantm = pkgs.buildEnv {
name = "ryantm";
paths = with pkgs; [
firefox
chromium
@ryantm
ryantm / newtype FizzBuzz
Last active August 29, 2015 14:05
Haskell 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