Every HTML page we make here will follow the same pattern:
<!DOCTYPE html>
<html>
</html>
- Doctype - tells the browser which version of HTML we are using. We will only be writing modern HTML, so we only need DOCTYPE html.
Every HTML page we make here will follow the same pattern:
<!DOCTYPE html>
<html>
</html>
/// this first | |
function addJQuery(callback) { | |
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
script.textContent = "(" + callback.toString() + ")();"; | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
javascript:var i,s,ss=['https://apis.google.com/js/plusone.js'];for(i=0;i!=ss.length;i++){x=document.createElement('g:plusone');document.body.appendChild(x);s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0); |
var jsonObj; | |
fs.readFile('file.json', 'utf8', function(err, data) { | |
jsonObj = JSON.parse(data); | |
} |
Test Coverage | |
+------------------------------------------+----------+------+------+--------+ | |
| filename | coverage | LOC | SLOC | missed | | |
+------------------------------------------+----------+------+------+--------+ | |
| Common/node/lconfig.js | 60.00 | 39 | 5 | 2 | | |
| Common/node/lconsole.js | 43.33 | 55 | 30 | 17 | | |
| lockerd.js | 66.22 | 154 | 74 | 25 | | |
| Common/node/lscheduler.js | 59.52 | 129 | 42 | 17 | | |
| Common/node/lfs.js | 37.14 | 141 | 70 | 44 | |
Chris-Burkharts-MacBook-Pro-2:Locker ctide$ node lockerd.js | |
[16:33:34][Locker] lservicemanager lockerPortNext = 18042 | |
[16:33:34][Locker][ERROR] found a previously running mongodb running on port 27018 so we will use that | |
[16:33:34][Locker] Apps | |
[16:33:34][Locker] Collections | |
[16:33:34][Locker] Connectors | |
[16:33:34][Locker] Loaded 45573b72c86bc054a14b48756210c3ed | |
[16:33:34][Locker] Adding a listener for contacts/events to contact/foursquare | |
[16:33:34][Locker] Adding a listener for contacts/events to contact/facebook | |
[16:33:34][Locker] Adding a listener for contacts/events to contact/twitter |
[Wed Jul 20 2011 15:25:34 GMT-0700 (PDT)][WordPress Connector] Traceback (most recent call last): | |
File "service.py", line 7, in <module> | |
import webservice | |
File "/development/Locker/Connectors/WordPress/webservice.py", line 4, in <module> | |
from flask import Flask, render_template, request, redirect, url_for | |
[Wed Jul 20 2011 15:25:34 GMT-0700 (PDT)][WordPress Connector] ImportError: No module named flask | |
[Wed Jul 20 2011 15:25:34 GMT-0700 (PDT)][Locker] wordpress-test process has ended. (1:null) |
[16:27:50][IMAP Account][ERROR] error connecting: { stack: [Getter/Setter], | |
arguments: undefined, | |
type: undefined, | |
message: 'Connection timed out' } | |
[16:27:50][IMAP Account][ERROR] | |
[16:27:50][IMAP Account][ERROR] /development/Locker/Connectors/IMAP/imap.js:499 | |
[16:27:50][IMAP Account][ERROR] throw new Error('Not connected or authenticated'); |
{ | |
"config" : { | |
"knownIds":[1, 2, 3, 4, 5, 6, 7], | |
"lastKnownId":45 | |
}, | |
"data" : [ | |
{ | |
"obj": { | |
"dataFromProvider": "isAllUpInHere" | |
}, |
var repl = require('repl'); | |
console.log('HELP:\n\nblah blah\n'); | |
var ctx = repl.start('lockersearch> ').context; |