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
// main app.js | |
var client = require('ranger').createClient('ROOM', | |
'SECRET'); | |
var timestamp = require('./timestamp').timestamp; | |
var getWeatherWrapper = require('./weather').getWeatherWrapper; | |
var showMap = require('./map').showMap; | |
var getTweets = require('./tweets').getTweets; | |
client.room(ROOMID, function(room) { |
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
# Module Dependencies | |
express = require 'express' | |
app = module.exports = express.createServer(); | |
# Configuration | |
app.configure () -> | |
app.set 'views', "#{__dirname}/views" | |
app.set 'view engine', 'jade' |
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
<html> | |
<head></head> | |
<body style="background-color:#ffffff;margin:10px"> | |
<script> | |
var uploadFile = function(){ | |
var text = document.getElementById('txt'); | |
var dir = Titanium.Filesystem.getResourcesDirectory(); | |
sep = Titanium.Filesystem.getSeparator(), | |
// filename = 'test.txt', |
NewerOlder