This file contains 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
request = require 'request' | |
facebook = require 'fb' | |
get_fb_data = (req, res, next) -> | |
fb_req = 'https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECCRET&grant_type=client_credentials' | |
request.get fb_req, (err, res, body) -> | |
if err then console.log err |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AS3 Rest Proof</title> | |
<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script> | |
<script> | |
var as3_path = 'http://restproof.s3.amazonaws.com/' | |
$(function(){ | |
$.ajax({ |
This file contains 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 node | |
var picsPath = process.env['HOME'] + '/.gitshots/'; | |
var imagesnap = require('imagesnap'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var commitPath = picsPath + new Date().getTime(); | |
fs.mkdirParent = function(dirPath, mode, callback) { | |
fs.mkdir(dirPath, mode, function(error) { |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>Authorization</AllowedHeader> | |
<ExposeHeader>x-amz-meta-author</ExposeHeader> | |
<ExposeHeader>x-amz-meta-caption</ExposeHeader> | |
<AllowedHeader>x-amz-*</AllowedHeader> |
This file contains 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
[embed]https://gist.github.com/joelongstreet/5052198[/embed] |
This file contains 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
Vimeo [embed]https://vimeo.com/48535034[/embed] | |
Youtube [embed]http://www.youtube.com/watch?v=LeaAHv4UTI8[/embed] | |
Google Maps [embed]https://maps.google.com/maps?q=Lake+Como...[/embed] | |
MeetUp [embed]http://www.meetup.com/nodekc/[/embed] | |
Pinterest [embed]http://pinterest.com/pin/229894755950834306/[/embed] | |
Dribble [embed]http://dribbble.com/shots/992837-Point[/embed] | |
Wikipedia [embed]http://en.wikipedia.org/wiki/Charles_babbage[/embed] |
This file contains 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
<p>The article below shows common html entities and how each will render on the intranet. See the bottom for code used in this post.</p> | |
<br /><br /> | |
<h2>Heading 1 or 2</h2> | |
<h3>Heading 3</h3> | |
<h4>Heading 4</h4> | |
<h5>Heading 5</h5> | |
<h6>Heading 6</h6> | |
<br /><br /><br /> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bang Proof</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1' /> | |
<script src='http://code.jquery.com/jquery-1.10.1.min.js' type='text/javascript'></script> | |
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script> | |
<script> | |
$(function(){ |
This file contains 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
define([ | |
'chaplin', | |
'models/base/model' | |
], function(Chaplin, Model) { | |
'use strict'; | |
var Collection = Chaplin.Collection.extend({ | |
model : Model, | |
parms : {}, | |
listen : function(){ |
This file contains 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
// Config | |
var bucketName = 'xxx'; | |
var saveFileDir = 'files'; | |
var creds = { | |
key : 'xxx', | |
secret : 'xxx', | |
bucket : bucketName | |
}; | |
OlderNewer