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
(function($) { | |
var tmpl = ''; | |
tmpl += '<div class="ui-grid-b">'; | |
tmpl += '<div class="ui-block-a" id=""><div class="ui-bar ui-bar-c" style="height:120px"><a href="#overview" data-role="button" class="ui-btn-right" data-icon="delete">Overview</a></div></div>'; | |
tmpl += '<div class="ui-block-b"><div class="ui-bar ui-bar-c" style="height:120px"><a href="#device" data-role="button" class="ui-btn-right" data-icon="delete">Device</a></div></div>'; | |
tmpl += '<div class="ui-block-c"><div class="ui-bar ui-bar-c" style="height:120px"><a href="#mapview" data-role="button" class="ui-btn-right" data-icon="delete">Map View</a></div></div>'; | |
tmpl += '<div class="ui-block-a"><div class="ui-bar ui-bar-c" style="height:120px">A</div></div>'; | |
tmpl += '<div class="ui-block-b"><div class="ui-bar ui-bar-c" style="height:120px">B</div></div>'; |
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
curl http://crop.io/v1/c/?lurl=http%3A//www.example.org |
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
// fs.copy(src,dst) && fs.copySync(src,dst) | |
var copy = function copy(src, dst, callback) { | |
var self = this; | |
if(!callback) { | |
callback = function(){}; | |
} | |
self.on('error', function(err) { |
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
var express = require('express'); | |
var app = express.createServer(); | |
// User validation | |
var auth = express.basicAuth(function(user, pass) { | |
return (user==pass) ? true : false; | |
},'Admin Area'); | |
app.get('/hello', auth, function(req,res) { | |
res.writeHead("200"); |
NewerOlder