minimal example of using [phantomjs] with [qunit]
$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.
root@minion:/home/vagrant# salt-call saltutil.sync_all | |
[ERROR ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate | |
Minion failed to authenticate with the master, has the minion key been accepted? |
pkgrepo.managed: | |
- name: deb http://apt.postgresql.org/pub/repos/apt/ {{ grains['oscodename'] }}-pgdg main | |
- gpgcheck: 1 | |
- gpgkey: https://www.postgresql.org/media/keys/ACCC4CF8.asc | |
postgresql-server-dev-9.3: | |
pkg.installed |
# /database/init.sls | |
include: | |
- ..install | |
# /database/install.sls | |
my_database: | |
pkg: | |
- installed |
install_addresses: | |
pip.install: | |
- pkgs: | |
- /opt/addresses/ | |
- bin_env: {{ paths.virtualenv_shared }} | |
- force_reinstall: True | |
- require: | |
- file: addresses_setup |
import qualified Data.Map | |
import qualified Data.Maybe | |
listInsert :: Ord k => (k, v) -> Data.Map.Map k [v] -> Data.Map.Map k [v] | |
listInsert (k,v) acc = if Data.Maybe.isNothing kv then Data.Map.insert k [v] acc else Data.Map.insert k (v:Data.Maybe.fromJust kv) acc | |
where kv = Data.Map.lookup k acc | |
fromListToMapList :: Ord k => [(k, a)] -> Data.Map.Map k [a] | |
fromListToMapList = foldr listInsert Data.Map.empty |
:set +m | |
import qualified Data.Map | |
let phoneBook = [("betty","555-2938") | |
,("betty","342-2492") | |
,("bonnie","452-2928") | |
,("patsy","493-2928") | |
,("patsy","943-2929") |
from collections import defaultdict | |
phonebook = [('betty', '555-2938'), | |
('betty', '342-2492'), | |
('bonnie', '452-2928'), | |
('patsy', '493-2928'), | |
('patsy', '943-2929'), | |
('patsy', '827-9162'), | |
('lucille', '205-2928'), |
The genomebrowser API does not deal with foreign key associations at all.
A request requires enough information to get to a chromosome id (either directly a chromosome id, or combination of genome/chromsome filters) and a target region (start and end). This information should be provided in a JSON-encoded JavaScript object transmitted in the request body. Detailed spec:
{
from wheel.install import WheelFile | |
dist_path = '/path/to/mypackage.whl' | |
whl = WheelFile(dist_path) | |
whl.parsed_wheel_info.items() | |
# [('Wheel-Version', '1.0'), ('Generator', 'bdist_wheel (0.21.0)'), ('Root-Is-Purelib', 'false'), ('Tag', 'cp27-none-macosx_10_9_x86_64')] |