Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
% Prolog: How Hogwarts students decide their friends. | |
% (Very incomplete!) | |
% | |
% Try at http://swish.swi-prolog.org/ | |
% ?- friend(X, draco). | |
% X = harry. | |
% X = tom. | |
% | |
purebloodish(W) :- child(W, P), child(W, Q), |
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
# Wraps Python's FTPlib to use implicit FTPS. | |
# | |
# Source: http://stackoverflow.com/a/36049814 | |
import ftplib | |
import ssl | |
class ImplicitFTP_TLS(ftplib.FTP_TLS): | |
"""FTP_TLS subclass that automatically wraps sockets in SSL to support implicit FTPS.""" |
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 | |
# Delete images from Thumbor cache. | |
# | |
import sys | |
import os | |
import os.path | |
from thumbor.storages.file_storage import Storage | |
from thumbor.context import Context | |
from thumbor.console import get_server_parameters |
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
= Generating Global Checklists from Taxonomic Name Units | |
:neo4j-version: 2.2.0 | |
:author: Matthew Blissett, Donald Hobern | |
:description: Example Taxonomic Name Units that result from subsequent taxonomic acts | |
:tags: domain:life-science, use-case:taxonomy | |
== Notation | |
* Single letters represent Linnaean names at various ranks | |
* Capital letters mean that the name is accepted within a treatment as the name for a taxon |
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
javascript:(function(){var body = document.getElementsByTagName('body')[0];var style = body.style;var ss = [55,34,21,13,8];var sx = ('bodyMaxWidthIndex' in body) ? body.bodyMaxWidthIndex : 1;style.setProperty('max-width', ss[++sx % ss.length]+'cm', 'important');style.setProperty('line-height', '1.5');style.setProperty('margin-left', 'auto');style.setProperty('margin-right', 'auto');style.setProperty('font-family', 'sans-serif');body.bodyMaxWidthIndex = sx;})(); |
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
//console | |
[source,cypher] | |
---- | |
MERGE (f:Name { name:'Fagaceae' }) | |
MERGE (q:Name { name:'Quercus' }) | |
MERGE (qa:Name { name:'Quercus alba' }) | |
MERGE (qrep:Name { name:'Quercus repanda' }) | |
MERGE (qr:Name { name:'Quercus robur' }) | |
MERGE (ql:Name { name:'Quercus longaeva' }) |
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/perl | |
# | |
# Prints out stdin in the manner of the scan on http://infohost.nmt.edu/~shipman/ergo/parkinson.html | |
# Summarises transitions between left and right hand | |
# | |
$input = `cat`; | |
# Qwerty | |
$l = "`¬1!2\"3£4\$5%6^qQwWeErRtTaAsSdDfFgG\\|zZxXcCvVbB"; |