Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetRole", | |
"iam:PutRolePolicy" | |
], | |
"Resource": [ |
#!/bin/bash | |
set -u | |
DOC_DIR=godoc | |
PKG=github.com/matrix-org/go-neb | |
# Run a godoc server which we will scrape. Clobber the GOPATH to include | |
# only our dependencies. | |
GOPATH=$(pwd):$(pwd)/vendor godoc -http=localhost:6060 & | |
DOC_PID=$! |
#!/bin/bash | |
# Completely remove a file from a git repository history | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# | |
# Usage: | |
# git-forget-blob file_to_forget | |
# | |
# Notes: |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
import os | |
import sys | |
import json | |
import zmq | |
from IPython.zmq.session import Session | |
from IPython.parallel.util import disambiguate_url | |
from IPython.utils.path import get_ipython_dir | |
def main(connection_file): |
""" | |
Simple web server that listens for Github webhooks to implement push-to-deploy | |
with Pelican static sites | |
Settings are loaded from a json file except for SECRET which should be an | |
environment variable | |
Example `deployer.json` | |
{ |
NOTE: This how-to was written for the Census API at http://thedataweb.rm.census.gov/ -- it has since been moved to http://api.census.gov/
Mike Stucka, our contact at the Macon Telegraph, sent us a link to the Census's official API which is launching next month. You can skip ahead to the site - http://www.census.gov/developers/ - and get an API key, but also read my notes after using this yesterday:
--- The 2010 Census Summary comes from everyone filling out census forms, and you can get stats at state level down to a super-detailed block level. Info from this includes population, age, gender, race, home ownership, members of a household, and various combinations of that. Full list: http://www.census.gov/developers/data/sf1.xml
--- The 2006-2010 American Community Survey is a longer form given to fewer households over 5 years (so its numbers are incompatible with the 2010 Census). You can get stats down only to the block group level. In addition to the standard census stats, you get: educa
== Chess Games and Positions in Neo4j | |
:neo4j-version: 2.0.0 | |
:author: Wes Freeman | |
:twitter: @wefreema | |
:tags: chess | |
The goal is to load a bunch of chess games into Neo4j for further analysis. Scores listed are Stockfish's take on a position after a 25 move horizon (but this number can be deepened as the graph is filled out or as more processing is done). Positions can also be loaded as alternative moves (not connected to a game) based on suggestions from Stockfish. The positions are recorded as link:http://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation[FEN], a human-readable/compressed chess board state notation. | |
=== Schema diagram |