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
import random | |
import json | |
digits = '0123456789' | |
for i in range(10000): | |
ndigits = 10 | |
number = '0.' + ''.join([random.choice(digits) for j in range(ndigits)]) | |
number = number.rstrip('0') | |
if number.endswith('.'): number += '0' | |
json_number = json.dumps(float(number)) |
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
import urllib2 | |
my_query_url = 'http://phylocommons.org/query/prune=True&format=newick&taxa=Homo+sapiens%2CGorilla+gorilla%2CPan+paniscus%2CPan+troglodytes&tree=bininda-emonds_mammals' | |
result = urllib2.urlopen(my_query_url) | |
tree = result.read() | |
print tree | |
# ((('Pan paniscus':3.90000,'Pan troglodytes':3.90000)Pan:5.80000,'Homo sapiens':9.70000):3.00000,'Gorilla gorilla':12.70000)Homininae:7.00000; |
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 | |
# To use, move the potrace binary to potrace-bin, then place this script | |
# somewhere on the path so that it'll be found by fontforge. | |
# After autotracing, you'll need to apply the following transformation: | |
# scale uniform 10%, using glyph origin as the origin | |
# get the last parameter passed by fontforge - the name of the temp img file | |
for last; do true; done | |
# get all of the other parameters | |
length=$(($#-1)) |
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
package nme; | |
import sys.FileSystem; | |
import openfl.Assets; | |
enum LibraryType { |
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
This is a taxonomy, which contains information on higher taxa for each species (genus, family, order, etc.) | |
____________________ Pan paniscus | |
________________Pan_| | |
| |____________________ Pan troglodytes | |
_____________________| | |
Hominidae |________________Gorilla__________________ Gorilla gorilla | |
| | |
|________________Homo_____________________ Homo sapiens |
NewerOlder