This file contains hidden or 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
| ./install_local_neo4j.bash $NEO4J_VERSION | |
| ./lib/neo4j/bin/neo4j start || ( cat ./lib/neo4j/data/log/*.log && exit 1 ) | |
| pip install --use-mirrors -r test_requirements.txt | |
| pip install --use-mirrors coveralls | |
| python ./manage.py syncdb --pythonpath=. --noinput | |
| python ./manage.py loaddata app/detective/fixtures/search_terms.json | |
| coverage run --source=app.detective ./manage.py test detective | |
| coveralls |
This file contains hidden or 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 main | |
| import( | |
| "fmt" | |
| "math" | |
| ) | |
| func Count(number int, count int) (int) { | |
| return int( math.Floor( float64(number/count) ) ) | |
| } |
This file contains hidden or 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 python | |
| # Encoding: utf-8 | |
| from random import choice, randint | |
| import requests | |
| DATASRC = "http://api.worldbank.org/countries/all/indicators/SP.DYN.LE00.IN?date={year}&format=json&per_page=10000" | |
| def get(year): | |
| key = "cache_%s" % year |
This file contains hidden or 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
| spaces(len) { | |
| String space = ""; | |
| for(int s=0; s < len; s++) space += " "; | |
| return space; | |
| } | |
| diamond(name) { | |
| int first = name.toUpperCase().codeUnitAt(0) - 65; | |
| var lines = []; |
This file contains hidden or 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
| window.nosdeputes = [ | |
| { | |
| "id":1, | |
| "nom":"Jean-François Lamour", | |
| "nom_de_famille":"Lamour", | |
| "prenom":"Jean-François", | |
| "sexe":"H", | |
| "date_naissance":"1956-02-02", | |
| "lieu_naissance":"Paris (75)", | |
| "num_deptmt":"75", |
This file contains hidden or 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 | |
| echo "repository,timestamp,commit" > ~/activity.csv | |
| for D in *; do | |
| if [ -d "${D}" ]; then | |
| cd $D | |
| if [ -d ".git" ]; then | |
| echo $D | |
| HASH=`cksum <<< $D | cut -f 1 -d ' '` |
This file contains hidden or 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
| {"validation":{"status":{"name":"Ok","value":0,"category":0,"description":"","helpUrl":""},"message":null,"count":{"value":7,"started":"2015-05-08T12:42:45.522356-04:00","finished":"2015-05-08T12:42:45.600357-04:00","durationSeconds":0.078001},"datasetTimer":{"started":"2015-05-08T12:42:45.600357-04:00","finished":"2015-05-08T12:42:45.600357-04:00","durationSeconds":0.0}},"dataset":[{"pfCode":"H4","yr":2012,"period":2012,"periodDesc":"2012","aggrLevel":4,"IsLeaf":0,"rgCode":2,"rgDesc":"Export","rtCode":381,"rtTitle":"Italy","rt3ISO":"ITA","ptCode":499,"ptTitle":"Montenegro","pt3ISO":"MNE","cmdCode":"2402","cmdDescE":"Tobacco and manufactured tobacco substitutes // Cigars, cheroots, cigarillos and cigarettes, of tobacco or of tobacco substitutes.","qtCode":8,"qtDesc":"Weight in kilograms","TradeQuantity":34055,"NetWeight":34055,"TradeValue":434177,"estCode":0},{"pfCode":"H4","yr":2012,"period":2012,"periodDesc":"2012","aggrLevel":4,"IsLeaf":0,"rgCode":1,"rgDesc":"Import","rtCode":499,"rtTitle":"Montenegro","rt |
This file contains hidden or 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
| http://feeds.delicious.com/v2/rss/pierre_romera/jpp | |
| http://feeds.delicious.com/v2/rss/vied12/jpp | |
| http://feeds.delicious.com/v2/rss/toutenrab/jpp | |
| http://feeds.delicious.com/v2/rss/anneliseb/jpp | |
| http://feeds.delicious.com/v2/rss/nkb/jpp | |
| http://feeds.delicious.com/v2/rss/paulloz/jpp | |
| http://feeds.delicious.com/v2/rss/ana.isabel/jpp | |
| http://feeds.delicious.com/v2/rss/rlaf/jpp | |
| http://feeds.delicious.com/v2/rss/smkraus/jpp | |
| http://feeds.delicious.com/v2/rss/motet/jpp |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>AVS</title> | |
| <meta charset="utf-8"> | |
| <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | |
| </head> | |
| <body> | |
| <form id="mes-filtres"> |
This file contains hidden or 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
| license: gpl-3.0 | |
| border: no | |
| height: 500 |