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 controlP5.*; | |
import processing.serial.*; | |
import cc.arduino.*; | |
import arduinoscope.*; | |
Arduino arduino; | |
ControlP5 cp5; | |
Oscilloscope[] scopes = new Oscilloscope[2]; | |
float multiplier; |
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 exec = require('child_process').exec; | |
exports = function(file, cb){ | |
var pkg = JSON.parse(fs.readFileSync(file)); | |
var v = pkg.version.split('.'); | |
v[2]++; | |
pkg.version = v.join('.'); | |
fs.writeFile(file, JSON.stringify(pkg,null,2), function(err){ | |
if (err) return cb(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
language: node_js | |
node_js: | |
- 0.11 | |
deploy: | |
provider: npm | |
email: konsumer@jetboystudio.com | |
skip_cleanup: true | |
api_key: | |
secure: JXBQYUqmhL27kEizzjSb3ENPTchD8n4bsHrnN7zrgZCU5jZxb51dXUp3+0UteeMLUpEzEnCgzBXPYVP4FsVOe1A9qOv/ju8u8q95XPAft2FoNOKCpYSqdSoHlQmifGS9vmnyxEAFCJcvIz92jT7cj+xONKmXsVSk52/BpCWQOo4= | |
on: |
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 Promise = require('bluebird'); | |
var mongoose = require('mongoose'); | |
var ShowSchema = new mongoose.Schema({ | |
"id": Number, | |
"title": String, | |
"provider": {'type':String, 'default':'eztv'} | |
}); | |
/** |
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 m = require('mithril'); | |
var Navbar = require('./components/Navbar.js'); | |
var Auth = require('./models/Auth.js'); | |
m.route.mode = 'pathname'; | |
m.route(document.getElementById('page'), "/", { | |
"/": require('./pages/Home.js'), | |
"/login": require('./pages/Login.js'), | |
"/logout": require('./pages/Logout.js'), | |
"/register": require('./pages/Register.js'), |
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 m = require('mithril'); | |
var Navbar = require('./components/Navbar.js'); | |
var Auth = require('./models/Auth.js'); | |
var linksIn = [ | |
{label:'calendar', href:'/calendar'}, | |
{label:'logout', href:'/logout'} | |
]; |
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
// the UUID of your pebble app | |
var uuid = '39457783-362f-4343-8846-7fec4fc6268f'; | |
document.addEventListener('deviceready', function(){ | |
Pebble.registerReceivedDataHandler(uuid, function(err, info){ | |
if (err) return console.error(err); | |
navigator.notification.beep(1); | |
}); | |
}); |
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
10 REM HEXREAD.BAS BY TECHMAGE@TELEHACK.COM | |
20 PRINT "STARTING ADDRESS (DEC)"; | |
21 INPUT A: REM STARTING ADDRESS (DECIMAL) | |
25 PRINT "DATA PER LINE"; | |
26 INPUT L: REM LINE LENGTH | |
30 PRINT "LINES PER PAGE"; | |
31 INPUT P: REM PAGE LENGTH | |
35 DIM D(L): REM DATA ARRAY | |
40 AC=A: REM CURRENT ADDRESS (INCREMENTS) | |
50 REM *** BEGIN PAGE LOOP *** |
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-responsive { | |
position: relative; | |
display: block; | |
height: 0; | |
padding: 0; | |
overflow: hidden; | |
} | |
.embed-responsive.embed-responsive-16by9 { | |
padding-bottom: 56.25%; |
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
puts "Enter text to search" | |
text = gets.chomp | |
puts "Enter a word to search and redact;" | |
redact = gets.chomp | |
words = text.split(" ") | |
words.each do |word| | |
if word == redact | |
print "REDACTED" |