Skip to content

Instantly share code, notes, and snippets.

View binarybottle's full-sized avatar

Arno Klein binarybottle

View GitHub Profile
#!/usr/bin/env python
"""
Recursively upload a directory structure to a Synapse project (synapse.org).
Examples::
synapse_upload_directory_tree <PROJECT ID> -user <EMAIL> --pass <PASS> --top <TOP DIRECTORY>
synapse_upload_directory_tree syn3207152 --user arno.klein@sagebase.org --pass XXXXXX --top brains
synapse_upload_directory_tree syn3207152 --user arno.klein@sagebase.o
@binarybottle
binarybottle / viridis.xml
Created August 5, 2016 14:53 — forked from nicoguaro/viridis.xml
Viridis colormap in XML format.
<ColorMaps>
<ColorMap space="RGB" indexedLookup="false" name="Viridis">
<Point x="0" r="0.267004" g="0.004874" b="0.329415"/>
<Point x="0.003922" r="0.26851" g="0.009605" b="0.335427"/>
<Point x="0.007843" r="0.269944" g="0.014625" b="0.341379"/>
<Point x="0.011765" r="0.271305" g="0.019942" b="0.347269"/>
<Point x="0.015686" r="0.272594" g="0.025563" b="0.353093"/>
<Point x="0.019608" r="0.273809" g="0.031497" b="0.358853"/>
<Point x="0.023529" r="0.274952" g="0.037752" b="0.364543"/>
<Point x="0.027451" r="0.276022" g="0.044167" b="0.370164"/>

Keybase proof

I hereby claim:

  • I am binarybottle on github.
  • I am binarybottle (https://keybase.io/binarybottle) on keybase.
  • I have a public key ASAFKYtN4iWwaeMTHR1QILcKthkyluO_PowrjCAalfrZxgo

To claim this, I am signing this object:

@binarybottle
binarybottle / workman.php
Created March 19, 2021 00:54 — forked from deekayen/workman.php
Test input text files using Workman key cap scores
<?php
// EDIT MY PATH
$file = strtolower(file_get_contents('/Users/YOURUSER/Sites/TEST_TEST.txt'));
function get_points($layout = 'Norman') {
switch ($layout) {
case 'QWERTY':
$points[1] = array('s', 'd', 'f', 'j', 'k', 'l');