Skip to content

Instantly share code, notes, and snippets.

View hannahwhy's full-sized avatar

Hannah Yip hannahwhy

View GitHub Profile
(%i1) t: matrix([%t^3],[%t^2],[%t],[1])
;
[ 3 ]
[ %t ]
[ ]
[ 2 ]
(%o1) [ %t ]
[ ]
[ %t ]
[ ]
source "http://rubygems.org"
gem 'connection_pool'
gem 'girl_friday'
gem 'mechanize'
gem 'redis'
@hannahwhy
hannahwhy / gist:fcbaa74fa2adaaf66b79afcde1c97034
Created December 23, 2016 09:36
MXE on MinGW-w64 5.0.0: packages I know work
- gcc
- `i686-w64-mingw32.shared`, `x86_64-w64-mingw32.shared`, `i686-w64-mingw32.static`, `x86_64-w64-mingw32.static`
- qt5
@hannahwhy
hannahwhy / gist:9c2a0f0ffa7a8db5075e58f711b5d3f0
Last active November 4, 2016 18:38
Switching pipelines to archivebot2 - https://git.io/vPFVm
# INSTRUCTIONS
First, stop your current pipelines. For new pipelines:
1. Install autossh. (Debian: apt install autossh)
archivebot2 is running on a DigitalOcean CoreOS droplet.
On DigitalOcean, CoreOS droplets will restart to apply OS updates.
To deal with these restarts, you'll need some way to bring the SSH->Redis
tunnel back up automatically. autossh is pretty good at that.
@hannahwhy
hannahwhy / lookup.js
Created January 8, 2014 00:49
Bookmarklets to look up and save a page in the Internet Archive's Wayback Machine
javascript:(function(){window.open('https://web.archive.org/web/*/'+(''+window.location));})();
@hannahwhy
hannahwhy / gist:1610858
Created January 14, 2012 09:47
Lamar Smith
#!/usr/bin/env bash
set -x
DEST=data
NOW=`date '+%s'`
WGET_WARC=./wget-warc
USER_AGENT="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.17) Gecko/20110123 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070225 lolifox/0.32"
BASE="$DEST/texansforlamarsmith-${NOW}"
http://Марко-Савицький.zapd.com/--------127
http://うきもん.zapd.com/-----------------3
http://ki_to.zapd.com/2013-5-8
http://Костя-Кудряшов.zapd.com/test484
http://Дима-Швайа.zapd.com/--fobas--
http://もげもげ.zapd.com/----56
http://野中孝郎.zapd.com/--------209
http://azoe_killa.zapd.com/hollow-point-family
http://ابو-محمد0.zapd.com/jan-01-471210471
http://お米.zapd.com
http://www.st.com/web/catalog/tools/FM147/CL1794/SC1807/SS1747/PF210567
@hannahwhy
hannahwhy / mine.xml
Created September 18, 2013 00:28
My Qt Creator C++ indentation style
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorCodeStyle>
<!-- Written by QtCreator 2.7.2, 2013-09-17T19:27:37. -->
<qtcreator>
<data>
<variable>CodeStyleData</variable>
<valuemap type="QVariantMap">
<value type="bool" key="AlignAssignments">false</value>
<value type="bool" key="AutoSpacesForTabs">false</value>
<value type="bool" key="BindStarToIdentifier">false</value>
@hannahwhy
hannahwhy / gist:6015462
Created July 16, 2013 21:50
Instrument -> Warehouse stuff
From d8daabd5dd370ee6d262888756233c0aca1443c9 Mon Sep 17 00:00:00 2001
From: David Yip <yipdw@member.fsf.org>
Date: Tue, 16 Jul 2013 21:44:34 +0000
Subject: [PATCH] A spec to demonstrate an issue with question fill-ins.
Related data issues:
* https://code.bioinformatics.northwestern.edu/redmine/issues/show/9680
* https://code.bioinformatics.northwestern.edu/redmine/issues/show/9697
(maybe)