🔔 NOTE: If you can, please buy software license to support the authors/developers!
- Go to menu Help > Enter License.
- Copy the license key below and paste it into the textbox > Click the Use License button.
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> |
🔔 NOTE: If you can, please buy software license to support the authors/developers!
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