Skip to content

Instantly share code, notes, and snippets.

View tsl143's full-sized avatar

Trishul tsl143

View GitHub Profile
@tsl143
tsl143 / index.js
Last active June 25, 2020 13:48
testing npx 😎
#!/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 "
}));
@tsl143
tsl143 / script.js
Created March 1, 2018 10:42
jsDemos/funfacts/script.js
/* 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");
@tsl143
tsl143 / style.css
Created March 1, 2018 10:41
jsDemos/funfacts/style.css
#itsAFact {
font-size: 18px;
min-width: 300px;
max-width: 500px;
text-align: center;
padding: 20px;
}
@tsl143
tsl143 / manifest.json
Created March 1, 2018 10:41
jsDemos/funfacts/manifest.json
{
"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"
},
@tsl143
tsl143 / index.html
Last active March 1, 2018 10:45
jsDemos/funFacts/index.html
<!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/>
@tsl143
tsl143 / abstract.md
Last active August 29, 2015 14:24
Kick start contribution in marketplace

Abstract

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.