Opinions are like assholes, every one has got one.
This one is mine.
Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.
<?php | |
class PassAPI extends Plugin | |
{ | |
# Registration | |
# register a device to receive push notifications for a pass | |
# | |
# POST /v1/devices/<deviceID>/registrations/<typeID>/<serial#> | |
# Header: Authorization: ApplePass <authenticationToken> | |
# JSON payload: { "pushToken" : <push token, which the server needs to send push notifications to this device> } | |
# |
zipstream = require "zipstream" | |
fs = require "fs" | |
async = require "async" | |
class StreamingResponse | |
filename: "" | |
files: [] | |
streaming: true | |
### |
#!/usr/bin/env node | |
require('fs').readFile('image.png',function(err, data){ | |
console.log(require('crypto').createHash('sha1').update(data).digest('hex')) | |
}) |
var spawn = require('child_process').spawn, | |
aws2js = require('aws2js'), | |
http = require('http'), | |
urlutil = require('url') | |
mime = require('mime'), | |
Buffers = require('buffers'); | |
var settings = { | |
s3: { | |
key: 'key', |
/* | |
* Based on https://gist.github.com/583836 from http://stackoverflow.com/questions/3709391/node-js-base64-encode-a-downloaded-image-for-use-in-data-uri. | |
* Neither that gist nor this one work for me in 0.2.x or 0.3.x. | |
*/ | |
var request = require('request'), | |
BufferList = require('bufferlist').BufferList, | |
sys = require('sys'), | |
bl = new BufferList(), | |
url = 'http://nodejs.org/logo.png' | |
; |
A custom UI set built to work with and sit next to Bootstrap 3. Custom select boxes by @catalinred. 3D Scroll effects inspired by @chriscoyier's slide in when scroll down pen. The kit is also responsive!
Try clicking & hovering everything.
Feel free to fork, heart and share!
A Pen by Matt Litherland on CodePen.