Skip to content

Instantly share code, notes, and snippets.

View CliffordAnderson's full-sized avatar

Clifford Anderson CliffordAnderson

View GitHub Profile
#!/bin/sh
# Install:
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/michaeldever/4be94b7dac9add53cc2025522d620ec7/raw/1297ba9b60542e5dd70ab107951ce1c2fac94185/install.sh)"
# References:
# https://gist.github.com/bradp/bea76b16d3325f5c47d4
# https://gist.github.com/CliffordAnderson/817777b5dc0e67769e4b
# https://gist.github.com/codeinthehole/26b37efa67041e1307db
# https://github.com/thoughtbot/laptop/blob/master/mac
@cpistrang
cpistrang / Charlottenburg_Project_1947.geojson
Last active March 1, 2017 22:29
Chris Pistrang and Ari Bradshaw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jnsprnw
jnsprnw / berlin.csv
Last active August 15, 2017 19:23
Wikidata
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 3 columns, instead of 2. in line 6.
attribute,identifier,value
"highest point",P610,"Arkenberge (Q19259618) ()"
"topic's main Wikimedia portal",P1151,"Portal:Berlin (Q3248436) ()"
"instance of",P31,"seat of government (Q1901835) ();metropolis (Q200250) ();federal capital (Q257391) (+1990-10-03T00:00:00Z);big city (Q1549591) ();state of Germany (Q1221156) ();municipality of Germany (Q262166) ();city with millions of inhabitants (Q1637706) ();city-state (Q133442) ();integrated municipality (Q1307779) ();city (Q515) ();Einheitsgemeinde of Germany (Q15974307) ()"
"contains administrative territorial entity",P150,"Mitte (Q163966) ();Friedrichshain-Kreuzberg (Q158893) ();Pankow (Q163012) ();Charlottenburg-Wilmersdorf (Q158095) ();Spandau (Q158083) ();Steglitz-Zehlendorf (Q158064) ();Tempelhof-Schöneberg (Q158106) ();Neukölln (Q4071168) ();Treptow-Köpenick (Q158089) ();Marzahn-Hellersdorf (Q119284) ();Lichtenberg (Q329609) ();Reinickendorf (Q158876) ()"
"legislative body",P194,"Abgeordnetenhaus of Berlin (Q640859) ()"
"highest judicial authority",P209
= Network analysis with Neo4j
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:network analysis

October 28, 2014

  • Matt Perkins or maybe Calvin Bottoms: Word time
  • Josh Bush - show-and-tell: PewPew, a game written in Elm
  • Bryan Hunter - show-and-tell of Elixir's DocTest
  • Project Rosalind dojo

January 27, 2015

  • Dave Nolan - A first look at Nim and how to approach it functionally
@mdlincoln
mdlincoln / rstudio-cc.yml
Last active August 9, 2022 11:46
cloud-config script to setup Rstudio server and Shiny server on Ubuntu 14.04 on Digital Ocean
#cloud-config
# In order to access RStudio server via the web interface, you must log on with
# a user account that allows password access. This script does not add that user
# by default. You may either ssh as root into the server and `adduser` as
# normal, or script a user addition here:
# users:
# - name: # username #
# lock-passwd: false # allow login with password
@joewiz
joewiz / clean-excel-table.xq
Last active August 29, 2015 14:22 — forked from CliffordAnderson/build-ead.xqy
@CliffordAnderson's clean-excel-table.xqy, adapted for use with eXist 3.0 (develop branch)
xquery version "3.1";
declare namespace html="http://www.w3.org/TR/REC-html40"; (: the version of HTML used by the URL below :)
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization"; (: use XQuery 3.1's JSON serialization :)
import module namespace http="http://expath.org/ns/http-client"; (: @see http://expath.org/spec/http-client :)
declare option output:method "json";
declare option output:media-type "application/json";
@nichtich
nichtich / bibtex.bib
Last active July 30, 2023 19:30
Get CSL-Data for a given DOI
@article{Williams_2010,
doi = {10.1371/journal.pone.0010676},
url = {http://dx.doi.org/10.1371/journal.pone.0010676},
year = 2010,
month = {may},
publisher = {Public Library of Science ({PLoS})},
volume = {5},
number = {5},
pages = {e10676},
author = {Jeffrey T. Williams and Kent E. Carpenter and James L. Van Tassell and Paul Hoetjes and Wes Toller and Peter Etnoyer and Michael Smith},
<postcard>
<unitdate>
<date type="single">Oct. 13</date>
</unitdate>
<location>Küsnacht</location>
<body>
<salutation>My dear Jelliffe,</salutation>
<p>It is nice to hear of you again after many years.</p>
<p>I just want to tell you that I see no point in sending my papers to your journal.
You surely know that I am a mystic according to American standards. So I think it will
<!-- a schema for my postcard, with some commented-out stuff for other possibilities -->
<!-- ?. *, + act the same as quantiifers in regex -->
<!-- file extension has an extra .xml on the end to get github to color-code properly -->
element postcard {
<!-- attribute example
element date {
attribute iso-date { xsd:gYear }?,
text
},-->
element sender { text },