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
[[PageOutline]] | |
The following items should be tested before each release. Be sure to vary the following: | |
* super | regular user | |
* logged in | out | |
* Firefox, IE 7/9, Chrome, Safari | |
* new | old user | |
= ACCOUNT = |
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
fs = require 'fs' | |
path = require 'path' | |
async = require 'async' | |
{ exec } = require 'child_process' | |
outs = [] | |
async.each ( file for file in fs.readdirSync('.') when path.extname(file) is '.pdf' ), (file, cb) -> | |
outs.push out = path.basename(file, '.pdf') + 'decrypted.pdf' | |
exec "qpdf #{file} #{out} --decrypt", cb |
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
defmodule C do | |
def map([], _), do: [] | |
def map([ head | tail ], func) do: | |
[ func.(head), map(tail, func) ] | |
end | |
def child(element, func, parent) do: | |
parent <- { self, func.(element) } | |
end |
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
#!/usr/bin/python | |
# -*- coding: utf -*- | |
import urllib2, json, datetime, os, unicodedata, re, codecs | |
from threading import Thread | |
API_KEY = '#' | |
WIKI = '#' | |
def slugify(value): |
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
#!/usr/bin/env coffee | |
http = require 'http' | |
# Which mine? | |
mine = 'http://beta.flymine.org/beta' | |
# Replace multiple whitespace with a single space. | |
clean = (text) -> text.replace(/\s+/g, ' ') | |
# Get the services listing. |
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
diff --git a/intermine/web/main/src/org/intermine/web/struts/BeginAction.java b/intermine/web/main/src/org/intermine/web/struts/BeginAction.java | |
index b5a4979..477789e 100644 | |
--- a/intermine/web/main/src/org/intermine/web/struts/BeginAction.java | |
+++ b/intermine/web/main/src/org/intermine/web/struts/BeginAction.java | |
@@ -18,6 +18,7 @@ import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Properties; | |
+import java.util.Iterator; | |
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 | |
if [ `getconf LONG_BIT` != 64 ]; then | |
exit 1 | |
fi | |
sudo apt-get -y update | |
sudo apt-get -y install lxc wget bsdtar iptables curl golang git aufs-tools mercurial libdevmapper-dev | |
export GOPATH=~/usr/lib/go |
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
// ==UserScript== | |
// @name DuoSkipper | |
// @description Skip test questions on Duolingo by pressing Enter. | |
// @include https://www.duolingo.com/practice | |
// @version 1.0 | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
$(document).keypress(function(evt) { | |
if (evt.keyCode == 13) { |
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
{ | |
"data": [ | |
{ | |
"name": "Abbottsfield, Edmonton", | |
"type": "community", | |
"number": 2010, | |
"socrata_id": "q9gm-x3wv", | |
"lat": 53.5737301566926, | |
"lon": -113.38966126012794, | |
"zoom": 13 |
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
var test = require('tape'); | |
var Ractive = require('ractive'); | |
var _ = require('lodash'); | |
var mediator = require('../src/js/app/modules/mediator.js'); | |
test('mediator subscriptions get cancelled', function(t) { | |
var called = 0; |
OlderNewer