This file contains hidden or 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
main = putStrLn $ [1..12::Int] >>= (\t -> [t, 30 + t * 100]) >>= (\t -> ":clock" ++ (show t) ++ ": ") |
This file contains hidden or 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
{ pkgs ? | |
import (fetchTarball { | |
url = "https://github.com/NixOS/nixpkgs/archive/13b2903169f18ac98ed737effb36dabc48051978.tar.gz"; | |
sha256 = "1ql9ychp7w7ciqyb7am22b9hrlsz2sppgjflgr0ffw92gvwi3m64"; | |
}) {} | |
}: | |
with pkgs; | |
let | |
outer = stdenv.mkDerivation { |
This file contains hidden or 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
r = sin(t * 0.2 + i * 7) + 0.4 * sin(t + i * 11) + 0.1 * sin(7 * t + i * 13) / 1.5 | |
h = min(r, 0.5) * 2.0 * 0.32 | |
s = sin(0.75pi * r + 0.25pi) | |
v = r | |
r = (sin(t * 0.2 + i * 7) + 0.4 * sin(t + i * 11) + 0.1 * sin(7 * t + i * 13)) * 0.666 | |
h = min(r, 0.5) * 0.32 | |
s = sin(0.75pi * r + 0.25pi) | |
v = r |
This file contains hidden or 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
// Simulates n colored point lights (LEDs) shining at a wall from a distance wd. | |
// Wall distance; increase for more fuzzy lights, | |
// decrease for sharper point lights. | |
float wd = 0.15f; | |
const int nLights = 4; | |
const vec3 lights[nLights] = vec3[]( | |
vec3(1.0f, 0.0f, 0.0f), | |
vec3(0.0f, 1.0f, 0.0f), |
This file contains hidden or 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
#![feature(test)] | |
extern crate test; | |
macro_rules! unroll_10 { | |
{ $x: block } => { | |
$x $x $x $x $x $x $x $x $x $x | |
} | |
} |
This file contains hidden or 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
<html> | |
<!-- | |
Copyright 2016 Ruud van Asseldonk | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
0. You just DO WHAT THE FUCK YOU WANT TO. | |
--> | |
<head> |
This file contains hidden or 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 stack | |
{- stack | |
--resolver lts-7.3 | |
--install-ghc | |
runghc | |
--package base | |
--package bytestring | |
--package dns | |
--package http-client | |
--package http-types |
This file contains hidden or 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
#![feature(test)] | |
#[macro_use] | |
extern crate glium; | |
extern crate test; | |
use glium::DisplayBuild; | |
use glium::glutin; | |
fn fill_image() -> Vec<u8> { |
This file contains hidden or 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
#!/bin/sh | |
# Timestamp starting the scrub. | |
echo -n 'initiating scrub at ' >> scrub.log | |
date >> scrub.log | |
# Enumerate all flac files, run `flac -tsw` (test silent, warning as error) on it, | |
# and output the filename to scrub.log if it fails. | |
find /path/to/music -type f -name '*.flac' | while read file; do | |
flac -tsw "$file" || echo "$file" >> scrub.log |
NewerOlder