Skip to content

Instantly share code, notes, and snippets.

View evanp's full-sized avatar

Evan Prodromou evanp

View GitHub Profile
@evanp
evanp / keybase.md
Created November 30, 2017 19:31
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@evanp
evanp / gist:0c4e269b7adadce8811015312326f8e1
Created April 11, 2017 16:44
Text for extension links
<p>
Some popular extensions are included in the Activity Streams 2.0 namespace
document, and can be reviewed at <a href="https://www.w3.org/ns/activitystreams#extensions">https://www.w3.org/ns/activitystreams#extensions</a>.
The <a href="https://www.w3.org/community/swicg/">Social Web Incubator Community Group</a> maintains a
wiki page on <a href="https://www.w3.org/wiki/Activity_Streams_extensions">Activity Streams extensions</a>.
</p>
@evanp
evanp / pence.cson
Created October 5, 2016 19:14
Mike Pence success factors
name: "Mike Pence Success"
outputs:
score: [0, 10]
inputs:
"Defend Donald Trump’s character and temperament": [0, 5]
"Defend Donald Trump’s tax returns": [0, 5]
"Defend Donald Trump’s comments on Alicia Machado": [0, 5]
"Defend Donald Trump’s comments about Hillary Clinton’s marriage": [0, 5]
"Define his role as vice president": [0, 5]
"Put on a lively show": [0, 5]
@evanp
evanp / kaine.cson
Created October 5, 2016 19:10
Tim Kaine success factors model
name: "Tim Kaine success"
outputs:
score: [0, 10]
inputs:
"Define his role as vice president": [0, 5]
"Challenge Mike Pence on social conservative issues": [0, 5]
"Put on a lively show": [0, 5]
"Avoid obvious mistakes": [0, 5]
"Go on the attack": [0, 5]
"Associate Pence with Donald Trump’s excessive policies": [0, 5]
#!/bin/bash
export ID=$1
echo "Address,Type,ServiceID,TaskOrName,Image"
for service in `docker service ls -q`; do
docker service inspect -f "{{range .Endpoint.VirtualIPs}}{{if eq .NetworkID \"$ID\"}}{{printf .Addr}}{{end}}{{end}},service,{{.ID}},{{.Spec.Name}},{{.Spec.TaskTemplate.ContainerSpec.Image}}" $service;
done
@evanp
evanp / -
Created August 18, 2016 01:19
lol words from the dictionary
loleyn
loleyn's
lolivar
lolivar's
lolivia
lolivia's
lolivian
lolivian's
lolivians
lollywood
# BREAD PUDDING
# By Evan & Amita Prodromou
let oven
oven.preheat(350)
let bread = [bread, cake, cupcake, cinnamon rolls, bagel]
For each bread,
bread = bread / 2
if bread <= 1 cm
auth:
autoredeploy: true
image: dockercloud/haproxy:latest
links:
- auth-svc
restart: on-failure
roles:
- global
tags:
- development
filename = "likeactivity.json"
script = sys.argv[1] # or whatever
output = exec(script, filename)
if output == "LikeActivity"
testPassed()
else
testFailed()
@evanp
evanp / dumpactivitytype.py
Created October 8, 2015 17:18
example of dumping the activity type for a test suite
import activitystreams
json = parseCommandLineFileArgument()
activity = Activity.fromJSON(json)
print activity.type