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
__author__ = 'agrimasthana' | |
import boto | |
import boto.s3 | |
from boto.s3.key import Key | |
from picamera import PiCamera | |
from time import sleep | |
from os import system | |
import urllib2 | |
import json | |
import arrow |
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
window.onload = function() { | |
document.addEventListener('tizenhwkey', function(e) { | |
if (e.keyName === "back") { | |
try { | |
tizen.application.getCurrentApplication().exit(); | |
} catch (ignore) {} | |
} | |
}); | |
/** | |
* Gets The Sunrise and sunset based on location. |
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
//Handle back button to exit | |
document.addEventListener('tizenhwkey', function(e) { | |
if (e.keyName === "back") { | |
try { | |
tizen.application.getCurrentApplication().exit(); | |
} catch (ignore) {} | |
} | |
}); | |
angular.module('myApp',[]) | |
.controller('myCtrl', function($scope, $http, $timeout){ |
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
`use strict`; | |
var express = require('express'), | |
request = require('request'), | |
bodyParser = require('body-parser'); | |
var app = express(); | |
app.listen(3000,()=>{ | |
console.log('listening on 3000') | |
}); | |
app.use(bodyParser.urlencoded({extended: true})); |
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
'use strict'; | |
const awsSererlessExpress = require('aws-serverless-express'), | |
app = require('./app'), | |
server = awsSererlessExpress.createServer(app); | |
exports.handler=(event, context) => { | |
console.log("Incoming event"+event); | |
awsSererlessExpress.proxy(server, event, context); | |
} |
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
`use strict`; | |
var express = require('express'), | |
async = require('async'), | |
lodash = require('lodash'), | |
bodyParser = require('body-parser'), | |
awsServerless =require('aws-serverless-express/middleware'), | |
request = require('request-promise'); | |
var app = express(); | |
app.listen(3000,()=>{ | |
console.log('listening on 3000') //Not required but useful when you want to debug locally. |
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
#!/bin/sh | |
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -vf" |
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
import cv2 | |
import urllib | |
import numpy as np | |
from sklearn.cluster import KMeans | |
import utils | |
import requests | |
import time | |
url = 'http://AgrimRPI3.local:5000/setpixel' //The Avahi Daemon is a beautiful thing | |
stream = urllib.urlopen('http://AgrimRPI2:8080/?action=stream') | |
bytes = '' |
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"?> | |
<Response> | |
<Say voice="alice" language="en-IN">You what mate, I will bash ye head in, I swear on me mum!</Say> | |
<Hangup/> | |
</Response> |
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 cheerio = require('cheerio'); | |
var request = require('request'); | |
var mongoose = require('mongoose'); | |
var Beer = require('./beer'); | |
mongoose.connect('REDACTED'); | |
var beers = [] |
OlderNewer