Some of the open source applications I use:
- KDE Softwares
- Kubuntu 15.10
- Xubuntu 14.04
- Mozilla Firefox
- Chromium
- Node.js
- Express JS (a web application framework)
- KoaJS (a web application framework)
const Pixel = require('./pixel-it'); | |
// Contains all the pixels within a list | |
const pixelList = [] | |
// Custom iterator of object is accessed by using | |
// Symbol.iterator a computed property name | |
pixelList[Symbol.iterator] = function () { | |
// Defining a function for the custom iterator | |
const sortedList = sortList(this); |
/** | |
* Purger.js is a helpful utility to purge the cache based on the Jekyll's sitemap | |
* generated, which allows us to have a lot of great functionality in there. | |
* This utility is written for blog called https://fascinations.hannanali.tech, | |
* check out this article to read meaningful articles from me | |
*/ | |
const Cloudflare = require('cloudflare') | |
const xml2js = require('xml2js') | |
const fs = require('fs') | |
const sitemapReader = require('./sitemapReader') |
import axios from 'axios' | |
/** | |
* getIdentity | |
* returns a Promise provided the name of the user | |
*/ | |
function getIdentity (name) { | |
return axios.get('https://getyourinfo.pk/' + name) | |
} |
/* | |
* brainworkers.js | |
* Having non-blocking IO code is good but you still are single threaded | |
* and are not built for this fast internet world of 21st Century | |
* this code is for you. | |
*/ | |
const mindClusters = require("cluster"); | |
const yourMind = require("brain"); | |
const numBpus = yourMind.bpus().length; |
STUDENT: Sir, can I ask a question? | |
TEACHER: Yes! | |
STUDENT: How do you put an elephant inside a fridge? | |
TEACHER: I don't know. | |
STUDENT: It's easy, you just open the fridge and put it in. I have another question! | |
TEACHER: Ok, ask. | |
STUDENT: How to put a donkey inside the fridge? | |
TEACHER: It's easy, you just open the fridge and put it in. | |
STUDENT: No sir, You just open the fridge take out the elephant and put it in. | |
TEACHER: Ooh...ok!! |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/pouchdb/latest/pouchdb.min.js"></script> | |
<script src="https://code.jquery.com/jquery-compat-3.0.0-alpha1.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
<tr class="student"> | |
<td class="name-col">Slappy the Frog</td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> | |
<td class="attend-col"><input type="checkbox"></td> |
var gulp = require('gulp') | |
var browserify = require('browserify') | |
var watchify = require('watchify') | |
var babelify = require('babelify') | |
var plumber = require('gulp-plumber') | |
var buffer = require("vinyl-buffer") | |
var source = require("vinyl-source-stream") | |
var sourcemaps = require("gulp-sourcemaps") | |
var uglify = require("gulp-uglify") |
Some of the open source applications I use:
Hi! If you are like me, you are tired of writing the same old ES5 JS Code in your node applications.
If yes, you can use the newer features of JavaScript ES6 and ES7 standards in your node applications today. ES6 and ES7 make the JavaScript development a cool breeze. But hey, not every ES6 feature is supported in our beloved Node.js.
This is where BabelJS comes to the rescue. BabelJS is a transpiler for JavaScript which transpiles your ES6 and ES7 code into ES5 and even ES3 code. In simple words it converts it into JavaScript that node.js can run and make you really happy.
Little Notice: If you just want ES6 features and don't want to babelify stuff. You can use --harmony flag
before running your node application. In order to access more harmony flags for staging and experimental features run this command node --v8-options | grep harmony