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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const async = require('async'); | |
const getUserFromMessage = (messageObject, userList) => { | |
const relevantUser = userList.filter(user => { | |
return (user.id == messageObject.user); | |
})[0]; |
Title | Subtitle | Authors | JSTOR Discipline 1 |
---|---|---|---|
Tracking Rural Change | "Community, Policy and Technology in Australia, New Zealand and Europe" | Socio |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
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
var csv2json = (function() { | |
function convert(data) { | |
var json = []; | |
var d = data.split('\n'); | |
var keys = d[0].split(','); | |
d = d.splice(1); | |
d.forEach(function(data) { | |
var keyVal = data.split(','); | |
var obj = {}; | |
keys.forEach(function(keyData, n) { |
Undo/Redo is one of those features of an application that you almost always need to have if you are building serious GUI tools for people to do work.
The best way to look at undo/redo is two stacks of operations the user has performed:
- The Undo stack is the "history" of what they've done
- The redo stack is the breadcrumbs back to the initial state before they started undoing
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
/* | |
* By Krish Dholakiya (itskrish.co, git.io/krish) | |
* MIT Licensed. | |
* | |
* GET('http://example.com/index.html', function(response) { | |
* var responseFromServer = response; | |
* }); | |
* POST('http://example.com', {'keyOne': 'valueOne', 'keyTwo': 'valueTwo'}, function(response) { | |
* var responseFromServer = response; | |
* }); |
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
/* | |
* By Krish Dholakiya (itskrish.co, git.io/krish) | |
* MIT Licensed. | |
* | |
* GET('http://example.com/index.html', 'html') => returns DOM object | |
* GET('http://example.com/api.json', 'json') => returns parsed JSON object | |
* | |
* TODO: add more types (XML, etc) | |
* CDN url: https://cdn.rawgit.com/krrishd/f17247fcd6ff2335ca5f/raw//b5c2f93d8d3246dabe07cf9b6e73d71631f907b2 | |
*/ |
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
/* | |
* Example Usage: | |
* | |
* $.get('http://cors.io/sprunge.us/ILRc', function(data) { | |
* window.xmlData = data; | |
* window.domParser = new DOMParser(); | |
* window.parsedXML = domParser.parseFromString(window.xmlData, 'text/xml'); | |
* window.jsonFeed = rss2json(parsedXML); | |
* }); | |
* |
NewerOlder