Add the following gems to your Gemfile:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
| #!/bin/bash | |
| libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i32.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i64.2.dylib" \ | |
| "/usr/local/lib/libmacfuse_i64.2.dylib" \ | |
| "/usr/local/lib/libosxfuse_i32.la" \ | |
| "/usr/local/lib/libosxfuse_i64.la" \ | |
| "/usr/local/lib/pkgconfig/osxfuse.pc" ) |
| XAR=path/to/xar/bin | |
| BUILD_DIR=path/to/dir/with/cert/files | |
| EXTENSION=your extension name | |
| $XAR -czf $EXTENSION.safariextz --distribution $EXTENSION.safariextension | |
| $XAR --sign -f $EXTENSION.safariextz --digestinfo-to-sign digest.dat --sig-size `cat $BUILD_DIR/size.txt` --cert-loc $BUILD_DIR/cert.der --cert-loc $BUILD_DIR/cert01 --cert-loc $BUILD_DIR/cert02 | |
| openssl rsautl -sign -inkey $BUILD_DIR/key.pem -in digest.dat -out sig.dat | |
| $XAR --inject-sig sig.dat -f $EXTENSION.safariextz | |
| rm -f sig.dat digest.dat |
| /** | |
| * A collection of authentication and account connection utilities. With strong inspiration from the Google IO session | |
| * app. | |
| * @author Dandré Allison | |
| */ | |
| public class AccountUtils { | |
| /** | |
| * Interface for interacting with the result of {@link AccountUtils#getUserProfile}. | |
| */ |
| [{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"AmericanSamoa","dial_code":"+1 684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1 264","code":"AI"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1 242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1 246","code":"BB"},{"name":"Belarus","dial_code":"+375"," |
| @-webkit-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-moz-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-ms-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } |
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |
| object scala { | |
| val version = "SCALA_VERSION$" | |
| } | |
| val xml = <dependencies> | |
| <dependency> | |
| <groupId>org.scalanlp</groupId> | |
| <artifactId>scalala_${scala.version}</artifactId> | |
| <version>0.3.1</version> | |
| </dependency> |
| /** | |
| * Note that this script is intended to be included at the *end* of the document, before </body> | |
| */ | |
| (function (window, document) { | |
| if ('open' in document.createElement('details')) return; | |
| // made global by myself to be reused elsewhere | |
| var addEvent = (function () { | |
| if (document.addEventListener) { | |
| return function (el, type, fn) { |