Skip to content

Instantly share code, notes, and snippets.

View adamsilver's full-sized avatar

Adam Silver adamsilver

View GitHub Profile
jeukfphmac1707:proto adam.b.silver$ jitsu deploy --debug
info: Welcome to Nodejitsu adam.b.silver
info: jitsu v0.13.15, node v0.10.26
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node src/app/app.js
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/apps/adam.b.silver/Proto',
debug: headers:
debug: { Authorization: '*************************************************************************',
jeukfphmac1707:proto adam.b.silver$ jitsu deploy
info: Welcome to Nodejitsu adam.b.silver
info: jitsu v0.13.15, node v0.10.26
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node src/app/app.js
info: Creating snapshot 0.0.1-1
info: Uploading: [=============================] 100%
error: Error running command deploy
error: Error building snapshot
{
"name": "Proto",
"version": "0.0.1-1",
"author": "A Silver",
"contributors": [
{
"name": "A Silver",
"email": "[email protected]"
}
],
@adamsilver
adamsilver / Calling application sample
Created August 14, 2012 13:21
jessie event delegation design
var containerEl = jessie.getElement('container');
jessie.delegateClassNameListener(containerEl, 'click', 'myClass', function(e, secondParam) {
// NOTE:
// 1) Our handler only fires when the anchor with a class of 'myClass' is clicked
// or if the img inside the anchor is clicked etc
// 2) In our handler we provide the raw event object as the first param
// this could be the anchor or it could be the img so the target in this case is
// not consistently going to give us what we want.
var target = jessie.getEventTarget(e);
@adamsilver
adamsilver / index.html
Created May 29, 2012 07:00
Jessie and conditional comment proposal design problem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Title</title>
</head>
<body>
<script src="jessie.js"></script>
<!--[if lte IE 8]><script src="jessie-ie8-and-below.js"></script><![endif]-->
</body>
@adamsilver
adamsilver / js_hint_conf.js
Created May 24, 2012 13:16 — forked from voidfiles/js_hint_conf.js
JSHint conf options
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 10000, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
@adamsilver
adamsilver / Questions.md
Created May 14, 2012 12:35 — forked from Integralist/Questions.md
Recruitment Questions for front-end developer (modified from https://github.com/darcyclarke/Front-end-Developer-Interview-Questions)

##JavaScript specific Questions

  • Which JavaScript libraries have you used?
  • How is JavaScript different from Java?
  • What are undefined and undeclared variables?
  • What is an expression?
  • What is a statement?
  • Give an example of a function declaration
  • Give an example of a function expression
  • Explain what the DOM is and some best practices for interacting with it.
@adamsilver
adamsilver / gist:2171369
Created March 23, 2012 14:49
Opting in reuse styles
.genericCopy li,
#navigation li {
margin-bottom: 10px;
margin-left: 30px;
padding: 5px;
list-style: square;
font-size: 1.2em;
}
#navigation li {
@adamsilver
adamsilver / gist:2171363
Created March 23, 2012 14:48
Opting in styles
.genericCopy li {
margin-bottom: 10px;
margin-left: 30px;
padding: 5px;
list-style: square;
font-size: 1.2em;
}
#navigation li {
float: left;
@adamsilver
adamsilver / gist:2171335
Created March 23, 2012 14:46
Opting out navigation styles
#navigation li {
/* opting out of CSS rules i.e. having to override */
margin-bottom: 0;
margin-left: 0;
padding: 10px;
font-size: 1.5em;
list-style: none;
float: left;
}