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
body { | |
background-image: url(http://s-ak.buzzfed.com/static/enhanced/web03/2010/10/17/1/enhanced-buzz-26063-1287295102-7.jpg); | |
background-size: 100%; | |
} |
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
div { | |
width: 200px; | |
height: 200px; | |
background-size: 100%; | |
background-repeat: no-repeat; | |
} | |
div#a { | |
background-image: url(http://www.acuteaday.com/blog/wp-content/uploads/2011/06/tiny-little-turtle.jpg); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ABook</title> | |
</head> | |
<body> | |
<ul> | |
</ul> |
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 request = require('request'); | |
request('http://graph.facebook.com/ynonp', function(err, response, body ) { | |
var me = JSON.parse( body ); | |
console.log( me.id ); | |
}); |
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 request = require('request'); | |
request('http://search.twitter.com/search.json?q=israel', function(err, response, body ) { | |
var data = JSON.parse( body ); | |
for ( var i=0; i < data.results.length; i++ ) { | |
console.log('---'); | |
console.log( data.results[i].from_user + ':' + data.results[i].text ); | |
} | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Nested BB</title> | |
</head> | |
<body> | |
<script type="text/template" id="mbox"> | |
<h1>{{title}}</h1> | |
<div id="messagesView"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Task Demo</title> | |
</head> | |
<body> | |
<form> | |
<label for="inp-task">Type Task Here</label> | |
<input type="text" id="inp-task" /> | |
<input type="submit" value="Add" /> |
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 audio = new Audio(); | |
audio.src = 'park.mp3'; | |
parked_btn.addEventListener('click', function() { | |
audio.play(); | |
}); | |
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 e = require('express'); | |
var app = e(); | |
app.get('/style.css', function(r, s) { | |
setTimeout(function() { | |
s.sendfile('style.css'); | |
}, 5000); | |
}); |