This document is intended to be a simplified version of the OAuth 2.0 specification. In particular it has been written with implementors in mind, and as such attempts to trim the spec down to just what you need to implement an OAuth provider or client. It is necessarily not complete, but attempts to introduce spec requirements in the same order in which the protocol proceeds in practise, with everything you need to know about each protocol endpoint brought together in one place rather than scattered across a large document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem "mongo" | |
| gem "bson_ext" | |
| gem "mongoid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !function (window) {"use strict"; | |
| // by WebReflection - WTFPL License | |
| var | |
| prefixes = "r webkitR mozR msR oR".split(" "), | |
| process = "process", | |
| nextTick = "nextTick", | |
| i = 0, | |
| p = window[process] || (window[process] = {}) | |
| ; | |
| while (!p[nextTick] && i < prefixes.length) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Responsive Images */ | |
| .r-img { | |
| background-size: 100%; | |
| display: inline-block; | |
| zoom: 1; | |
| *display: inline; /* Mimic inline-block on old IE */ | |
| } | |
| @media screen and (max-width: 600px) { /* Hide background on low res */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)" | |
| defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
| echo "Enable subpixel font rendering on non-Apple LCDs" | |
| defaults write NSGlobalDomain AppleFontSmoothing -int 2 | |
| echo "Make Dock icons of hidden applications translucent" | |
| defaults write com.apple.dock showhidden -bool true | |
| echo "Enable highlight hover effect for the grid view of a stack (Dock)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grunt.registerMultiTask('s3deploy', 'deploy to S3 using awssum', function () { | |
| // dependencies | |
| var awssum = require('awssum'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| aws = require('./settings').aws; | |
| var amz = awssum.load('amazon/amazon'), | |
| AmazonS3 = awssum.load('amazon/s3'), | |
| s3 = new AmazonS3(aws.accessKey, aws.secretKey, aws.accountId , amz.US_EAST_1), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unless window.mn? then window.mn = {} | |
| unless window.mn.dsk? then window.mn.dsk = {} | |
| unless window.mn.dsk.css3 then window.mn.dsk.css3 = {} | |
| exports = window.mn.dsk.css3 | |
| exports.Easing = Easing = | |
| linear : 'linear' | |
| ease : 'ease' | |
| easeIn : 'ease-in' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./frontend | |
| │ | |
| ├── /coffee | |
| │ ├── /models | |
| │ | └── MyBaseModel.coffee | |
| │ | └── MyModel.coffee | |
| │ ├── /routers | |
| │ | └── MyRouter.coffee | |
| │ ├── /templates | |
| | │ ├── /tmpl-dir1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Following the news about Facebook buying Instagram I decided to delete my Instagram account before Facebook claims ownership of my pictures. | |
| Since the Instagram-recommended (in their FAQ): http://instaport.me/export doesn't work for me (probably they can't cope with the high demand), | |
| here is a quick and dirty way to download all my Instagram pictures in their highest resolution in a few easy steps. | |
| You will need: Firefox, Firebug, some text editor, wget | |
| 1. Go to http://statigr.am/yourlogin using Firefox with Firebug extension active | |
| 2. Scroll down as many times as it is needed to have all yor pictures thumbnails displayed (I had some 3 hundred pictures so it was not that much scrolling, YMMV) | |
| 3. In the Firebug JS console run this JS code: $(".lienPhotoGrid a img").each(function(index) { console.log($(this).attr('src')) }) | |
| 4. JS console will contain urls to all the thumbnails images, like this: http://distilleryimage1.s3.amazonaws.com/4ed46cf2801511e1b9f1123138140926_5.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |