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
-- xmonad example config file for xmonad-0.9 | |
-- | |
-- A template showing all available configuration hooks, | |
-- and how to override the defaults in your own xmonad.hs conf file. | |
-- | |
-- Normally, you'd only override those defaults you care about. | |
-- | |
-- NOTE: Those updating from earlier xmonad versions, who use | |
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar | |
-- setup functions (dzen, xmobar) probably need to change |
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
module Client where | |
import Library | |
bar = foo 1 |
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
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:template match="/other-reviews"> | |
<xsl:for-each select="review-header"> | |
<xsl:value-of select="@edition"/> | |
<xsl:text> </xsl:text> | |
<xsl:value-of select="enrollment"/> | |
<xsl:text>
</xsl:text> | |
</xsl:for-each> |
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
git ls-files -z --others --exclude-standard \ | |
| xargs -0 -I{} stat -c "%Y %n" "{}" \ | |
| sort \ | |
| cut -d' ' -f 2- \ | |
| while read -r name; do | |
DATE=$(stat -c "%y" "$name") | |
git add "$name" | |
export GIT_AUTHOR_DATE="$DATE" | |
export GIT_COMMITTER_DATE="$DATE" | |
git commit -m "$name"; |
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
[package] | |
name = "fireplace" | |
version = "0.0.1" | |
authors = ["John Wrenn <johnswrenn@gmail.com>"] | |
[dependencies] | |
itertools = "0.5.4" | |
term_size = "0.2.1" |
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
/// Inspired by https://github.com/nastevens/predicates-rs/ | |
#![feature(conservative_impl_trait)] | |
use std::ops::*; | |
#[inline(always)] | |
fn partial<F, A, B, R>(f : F, b : B) | |
-> impl Fn(A) -> R | |
where F: Fn(&A, &B) -> R |
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
macro_rules! pairs{ | |
() => {}; | |
($h : expr, $($t : expr,)*) => | |
{ | |
println!("({},{})", $h, $h); | |
$(println!("({},{})", $h, $t);)* | |
$(println!("({},{})", $t, $h);)* | |
pairs!{$($t,)*} | |
} | |
} |
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
year | sats | |
---|---|---|
1960 | 42 | |
1961 | 58 | |
1962 | 98 | |
1963 | 95 | |
1964 | 124 | |
1965 | 175 | |
1966 | 170 | |
1967 | 173 | |
1968 | 161 |
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
#!/bin/bash | |
. `which env_parallel.bash` | |
env_parallel --session | |
function enrolled_total() { | |
jq -rc '"<parent>" + .regdemog_html + "</parent>"' \ | |
| ( xidel - -s --xpath='one-or-more(//p[@class="enroll_demog"]/text())' 2>/dev/null \ | |
|| echo "null" ) \ | |
| cut -d' ' -f3 |
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
curl -s 'https://api.github.com/repos/rust-itertools/itertools/pulls?state=open' \ | |
| jq -r '.[] | .number' \ | |
| pv -q -L4 \ | |
| xargs -I{} curl -s 'https://api.github.com/repos/rust-itertools/itertools/pulls/{}/files' \ | |
| jq -r '.[] | .filename' \ | |
| sort -u |