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
" cd to the folder where you have xterm-256color.terminfo, run | |
" $ tic xterm-256color.terminfo | |
" and add the following to your vimrc. | |
set t_ZH=[3m | |
set t_ZR=[23m |
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/zsh | |
DURATION=$1 | |
BUCKET_NAME=dkendal-gifs | |
BUCKET=s3:$BUCKET_NAME/ | |
FILE_NAME=`date +%s`.gif | |
FILE_PATH=~/gifs/$FILE_NAME | |
UPLOAD_PATH=https://s3.amazonaws.com/$BUCKET_NAME/$FILE_NAME | |
byzanz-record `xrectsel "-x %x -y %y -w %w -h %h"` -d $DURATION $FILE_PATH | |
rclone copy $FILE_PATH $BUCKET |
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
defmodule Excourse.Banner.Parser do | |
############### | |
# Doman Model # | |
############### | |
defmodule Section do | |
defstruct [ | |
:associated_term, | |
:attributes, | |
:campus, |
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
package jcourse | |
import com.ericsson.otp.erlang._ | |
import org.scalatest.FunSpec | |
import java.io._ | |
class JcourseSpec extends FunSpec { | |
describe("convert") { | |
it("converts an erlang message into the domain model") { | |
var fis = new FileInputStream("fixtures/sections") |
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
function f (x, k, v) { | |
return Window.getComputedStyle(x)[k] === v && x || x.parentElement && f(x.parentElement) | |
} |
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 | |
BUCKET_NAME=dkendal-screenshots | |
BUCKET=s3:$BUCKET_NAME/ | |
FILE_NAME=`date +%s`.png | |
GRAB_PATH=~/screenshots/$FILE_NAME | |
UPLOAD_PATH=https://s3.amazonaws.com/dkendal-screenshots/$FILE_NAME | |
escrotum -s $GRAB_PATH | |
rclone copy $GRAB_PATH $BUCKET | |
echo $UPLOAD_PATH | xclip -selection p |
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/gawk -f | |
BEGIN { | |
capturing = 0; | |
n = 0 | |
} | |
/Started GET "\/products\// { | |
capturing = 1; | |
} |
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
%% Analysis results: | |
{ analysis_options, | |
[{callers, true}, | |
{sort, acc}, | |
{totals, false}, | |
{details, true}]}. | |
% CNT ACC OWN | |
[{ totals, 5551, 17.298, 12.796}]. %%% |
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
%% Analysis results: | |
{ analysis_options, | |
[{callers, true}, | |
{sort, acc}, | |
{totals, false}, | |
{details, true}]}. | |
% CNT ACC OWN | |
[{ totals, 169379, 410.017, 405.826}]. %%% |