Instantly share code, notes, and snippets.

View jwt_auth_spec.rb.diff
diff --git a/app/features-json/middleware/jwt_auth.rb b/app/features-json/middleware/jwt_auth.rb
index e6c1f15..9d0e1a1 100644
--- a/app/features-json/middleware/jwt_auth.rb
+++ b/app/features-json/middleware/jwt_auth.rb
@@ -5,14 +5,19 @@ require "jwt"
module FastlaneCI
# API Middleware responsible of authenticate all the requests that uses it.
class JwtAuth
- def initialize(app)
+ def initialize(app, encryption_key=nil)
View png.rb
require 'zlib'
# This is a simple PNG decoder, inspired and adapted from ChunkyPNG
class PNG
SIGNATURE = [137, 80, 78, 71, 13, 10, 26, 10].pack('C8').force_encoding('BINARY')
attr_reader :width, :height, :depth, :color, :compression, :filtering, :interlace
View index.html
<script src=""></script>
View gist:bc403faea290dfb518f300107f946415
Aug 3 15:06:44 Pocketop networkd[93] <Error>: -[NETClient sendMessage:replyHandler:] attempting to send an XPC message to a suspended client MyIOSApp.1234! This is a bug!
function gh --description 'Open the webpage for the current github repo/branch'
set -l fetch_url (command git remote --verbose show -n origin ^/dev/null | command grep Fetch | cut -c 14- )
#did we get an exit status?
if [ $status -gt 0 ]
echo 'Not a git repo.'
return 1
if [ -z $fetch_url ]
View AndroidManifest.xml
<meta-data android:name="" android:value="@integer/google_play_services_version" />
android:permission="" >
<action android:name="" />
<action android:name="" />
<category android:name="com.zeropush.zeropush_gcm_demo" />
View AppDelegate.h
#import <UIKit/UIKit.h>
#import <PushKit/PushKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, PKPushRegistryDelegate>
@property (strong, nonatomic) UIWindow *window;
View zeropush.js
/* simple API wrapper for Parse Cloud Code and ZeroPush */
ZeroPush = {
authToken: 'your-server-auth-token',
verifyCredentials: function(){
this.request('GET', '/verify_credentials');
register: function(params){
this.request('POST', '/register', params);
# Run this in the same location as your .xcodeproj file
plutil -convert json -r -o - `xcodebuild -showBuildSettings | grep PRODUCT_SETTINGS_PATH | awk -F ' = ' '{print $2}'` | grep CFBundleIdentifier | awk -F ' : ' '{print $2}' | cut -d'"' -f2
View ios7.css.scss
.ios7 {
-webkit-font-smoothing: antialiased;
font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', 'Helvetica Neue', Arial;
background: #3F505E;
padding-top: 20px;
font-weight: 300;
line-height: normal;
position: relative;
::selection {