Skip to content

Instantly share code, notes, and snippets.

Avatar

Arfon Smith arfon

View GitHub Profile
@arfon
arfon / README.md
Created Jun 24, 2016
Octokit.net GitHub Activity
View README.md
@arfon
arfon / README.md
Created Jun 24, 2016
GitHub VisualStudio activity
View README.md
@arfon
arfon / README.md
Last active Jun 24, 2016
Jekyll GitHub Activity
View gist:5b80adf6df97bc8b28cc19464b4f367e
if [ "$PS1" ]; then
#PS1="[\u@\h:\w] "
PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PS1="\[\033[01;32m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
#case `id -u` in
# 0) PS1="${PS1}# ";;
# *) PS1="${PS1}$ ";;
#esac
fi
@arfon
arfon / create_events.md
Last active Nov 2, 2020
GitHub Archive event formats
View create_events.md

2011-02-15-0.json.gz

{  
   "repo":{  
      "id":1367057,
      "url":"https://api.github.dev/repos/motech/MOTECH",
      "name":"motech/MOTECH"
   },
   "type":"CreateEvent",
View event_transform.rb
require 'digest'
class EventParseError < StandardError; end
class EventTransform
attr_accessor :actor, :created_at, :raw_event, :id, :org, :other, :payload, :is_public, :repo, :type
def initialize(event_json)
@raw_event = event_json
@other = Hash.new
View keybase.md

Keybase proof

I hereby claim:

  • I am arfon on github.
  • I am arfon (https://keybase.io/arfon) on keybase.
  • I have a public key ASDmGO8GpkwxMW24CCNpKhDKNw2WR_oiNPAJBN8DsvWwhgo

To claim this, I am signing this object:

@arfon
arfon / transitive-credit.jsonld
Last active Apr 16, 2016
Transitive credit example
View transitive-credit.jsonld
{
"@context":"http://schema.org",
"@type":"ScholarlyArticle",
"headline":"Implementing Transitive Credit with JSON-LD",
"dateCreated":"2014-07-10",
"keywords":"transitive credit, credit for code, json-ld, linked data",
"author":[
{
"@type":"Person",
"name":"Daniel S. Katz",
@arfon
arfon / big_query_examples.md
Last active May 2, 2021
BigQuery Examples for blog post
View big_query_examples.md

How many times shouldn't it happen...

-- https://news.ycombinator.com/item?id=11396045

SELECT count(*)
FROM (SELECT id, repo_name, path
        FROM [bigquery-public-data:github_repos.sample_files]
      ) AS F
View keybase.md

Keybase proof

I hereby claim:

  • I am arfon on github.
  • I am arfon (https://keybase.io/arfon) on keybase.
  • I have a public key ASD7hphMt__JxIipSObvnXxTEaOo-wm8tByZkHTKN3MxQQo

To claim this, I am signing this object: