Skip to content

Instantly share code, notes, and snippets.

View berryp's full-sized avatar
😎

Berry Phillips berryp

😎
  • Seoul, Korea
  • 17:31 (UTC +09:00)
View GitHub Profile
@berryp
berryp / git-tagbydate.sh
Last active December 23, 2015 20:09
Sort git tags by date
# Alias as `tagbydate = for-each-ref --sort=committerdate --format='%(refname:short)' refs/tags`
# `tagbydate- = for-each-ref --sort=-committerdate --format='%(refname:short)' refs/tags`
git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/tags
@berryp
berryp / 0_reuse_code.js
Created February 8, 2014 20:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@berryp
berryp / install-libevent1.sh
Last active August 29, 2015 13:56
Install libevent 1.4 with Homebrew on OS X
#!/bin/bash
# Enter the Homebrew root directory.
cd `brew --prefix`
# Clean out all previous libevent installs.
echo "Removing any existing installations..."
brew uninstall libevent
brew cleanup libevent
@berryp
berryp / downgrade-silverlight.md
Created March 14, 2014 05:37
Downgrade Silverlight on OS X

Downgrade Silverlight on OS X

Sucks when a Silverlight update breaks Netflix. This should be all you need to re-install the previous version and keep you going until a fix is released.

  1. Download the previous version from a trusted source. You can find the preivous version by visiting the Release History page and Googling for it. For example "Silverlight for Mac 5.1.20913.0" was available on the Techspot site.
diff --git a/gryphon/control/admin/resources.py b/gryphon/control/admin/resources.py
index da5b546..4dc1679 100755
--- a/gryphon/control/admin/resources.py
+++ b/gryphon/control/admin/resources.py
@@ -468,18 +468,18 @@ class SurveyInfo(InfoResource):
return [
SurveyDetail(
- survey_id, urlparse.urljoin(
+ survey['survey_id'], urlparse.urljoin(
diff --git a/panoptic/handlers/questions.py b/panoptic/handlers/questions.py
index 479aad7..7d3e236 100644
--- a/panoptic/handlers/questions.py
+++ b/panoptic/handlers/questions.py
@@ -1065,6 +1065,23 @@ class ExportProfiles(BaseHandler):
]
+class Timings(BaseHandler):
+

Keybase proof

I hereby claim:

  • I am berryp on github.
  • I am berryp (https://keybase.io/berryp) on keybase.
  • I have a public key whose fingerprint is 4CBF D8A8 B1CB C4A9 2D19 829A C022 4801 3BC8 A2E2

To claim this, I am signing this object:

@berryp
berryp / resume.md
Last active August 29, 2015 14:15
Berry Phillips : Software Engineer

Berry Phillips : Software Engineer

15 years experience in web development and application programming including conceptualisation and design. Primary expertise in dynamic, responsive and data driven web applications, with strong principles in user experience, presentation and mobile support.

Technical Skills

@berryp
berryp / json.go
Last active August 29, 2015 14:25
JSON file or URL pretty printer
package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"net/http"
"os"
@berryp
berryp / json.go
Created July 20, 2015 09:49
Tool to pretty print json files.
package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"net/http"
"os"