This talk will help attendees to kick start contributions to Marketplace. Marketplace is a store for Firefox OS apps and MOW - mobile optimized website. This talk will cover complete walk through to Marketplace code including pre-requisites, structure of Marketplace,setup the code, how to find bugs, etc.
This file contains 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
#!/usr/bin/env node | |
const path = require('path'); | |
const cowsay = require(path.join(__dirname, "node_modules", "cowsay")); | |
console.log(cowsay.say({ | |
text : "Hellllloooooowwww!!!", | |
e : "oO", | |
T : "U " | |
})); |
This file contains 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
/* API CORTESY - http://www.icndb.com */ | |
var oReq = new XMLHttpRequest(); | |
oReq.open("GET", "http://api.icndb.com/jokes/random/"); | |
oReq.send(); | |
oReq.onreadystatechange = function() | |
{ | |
if(oReq.readyState == 4) | |
{ | |
var target = document.getElementById("itsAFact"); |
This file contains 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
#itsAFact { | |
font-size: 18px; | |
min-width: 300px; | |
max-width: 500px; | |
text-align: center; | |
padding: 20px; | |
} |
This file contains 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
{ | |
"manifest_version": 2, | |
"name": "Fun facts", | |
"description": "Random Fun facts ", | |
"version": "1.1", | |
"homepage_url": "https://github.com/tsl143/jsDemos/FunFacts", | |
"icons": { | |
"64": "icons/logo_64.png", | |
"48": "icons/logo_48.png" | |
}, |
This file contains 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> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="itsAFact"> | |
<span id="loadingDiv"> | |
<img width="50" height="50" src="cn.gif"/> | |
<br/> |