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
var OAuth = require('oauth').OAuth; | |
var baseURL = 'https://passport.vml.com'; | |
consumer = new OAuth( | |
baseURL + '/oauth/request_token', | |
baseURL + '/oauth/access_token', | |
'w9hJkqLgqRR9mPdrmxyh76qxMrnG3CeD', | |
'4TAfNxp2JCwCYz4Tn8hP8bwuHe7PWdjK', | |
'1.0', null, 'HMAC-SHA1' | |
); |
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
Some test gist right here |
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
dfasdfgfg |
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
var fs = require('fs'); | |
var path = require('path'); | |
var gpio = require('gpio'); | |
var filePath = path.join(process.cwd(), 'log.csv'); | |
var tempSensor = gpio.export(4, { | |
direction: 'in', | |
interval: 5000, | |
ready: startApp | |
}); |
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
int M1dirpin = 4; | |
int M1steppin = 5; | |
void setup() | |
{ | |
pinMode(M1dirpin,OUTPUT); | |
pinMode(M1steppin,OUTPUT); | |
digitalWrite(M1dirpin,LOW); | |
} |
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
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x08, 0xA1 }; | |
char server[ ]= "api.mongolab.com"; | |
EthernetClient client; | |
void setup() |
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
int sensorPin = 0; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
//getting the voltage reading from the temperature sensor |
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) { |
OlderNewer