Skip to content

Instantly share code, notes, and snippets.

@repeatingbeats
repeatingbeats / rootExportsTerse.js
Created August 29, 2012 23:59
Terse version of UMD rootExports.js
// Terse implementations of the returnExports UMD wrapper (https://github.com/umdjs/umd/blob/master/returnExports.js)
// No dependencies
(function (root, factory) {
if (typeof exports === 'object') module.exports = factory();
else if (typeof define === 'function' && define.amd) define(factory);
else root.moduleName = factory();
}(this, function () {
// Return a module definition
return {};
IMPORTANT
Please duplicate this radar for a Safari fix!
This will clean up a 50-line workaround.
rdar://22376037 (https://openradar.appspot.com/radar?id=4965070979203072)
//////////////////////////////////////////////////////////////////////////////
(Now available as a standalone repo.)
@julionc
julionc / 00.howto_install_phantomjs.md
Last active March 6, 2025 13:42
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@danburzo
danburzo / README.md
Last active July 29, 2021 08:41
Get all event listeners on the page in Google Chrome
@Senarin
Senarin / lib.lunarcal.public.js
Last active September 29, 2024 03:28
An standalone JavaScript library file for Korean lunar calendar calculation :3
/**************************************************
* 양음력 계산 라이브러리 -- Library file for Korean Lunar Calendar
* by Senarin
**************************************************/
var DAY0000=1721424.5; // 0000/12/31
var SOLAR_EPOCH=1721425.5; // 0001/1/1
var YEAR_MIN=1583; // Min. Year
var YEAR_MAX=2100; // Max. Year
var LUNAR_EPOCH=2299261.5;
var LOWER_LIMIT=LUNAR_EPOCH;
@craigspaeth
craigspaeth / baobab-vs-redux.md
Last active August 9, 2020 14:31
Baobab vs. Redux

Thoughts on Redux vs. Baobab

I'm going to write down my thoughts on these two libraries that I'm conflicted between.

Disclaimer: These are just my personal stream of consciousness notes and not meant to be a well thought through blog post/opinion piece. Both these libraries are fantastic and the authors deserve huge props/respect. If you find these musings helpful I'm glad, but I encourage you to take it with a grain of salt.

Intro

function _isEvent(prop) {
if (0 !== prop.indexOf('on')) {
return false;
}
return true;
}
function _getEvents(obj) {