note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
/* | |
* Mclarens Bar: Redis based Instant Messaging | |
* Nikhil Marathe - 22/04/2010 | |
* A simple example of an IM client implemented using | |
* Redis PUB/SUB commands so that all the communication | |
* is offloaded to Redis, and the node.js code only | |
* handles command interpretation,presentation and subscribing. | |
* | |
* Requires redis-node-client and a recent version of Redis |
/* | |
* Copyright (C) 2011 Yehonatan Daniv <maggotfish@gmail.com> | |
* | |
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
* | |
* 0. You just DO WHAT THE FUCK YOU WANT TO. | |
* | |
* supr.js is a simple wrapper for the Object.create mechanism of ES5, | |
* to ease the creation of objects via the Create function. |
note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
// console.lol by @RonnyOrbach, idea by Erez Avny | |
if (typeof console != 'undefined') console.lol = function(){ | |
var args = [].slice.call(arguments, 0); | |
args.unshift("LOL"); | |
args.push("LOLOLOL!") | |
console.log.apply(console, args); | |
}; |
(function() { | |
var all = $('.block-grid.five-up > li').toArray(); | |
all.slice(5).forEach(function(current, index) { | |
index += 5; | |
var el = $(current), | |
offset = el.offset(), | |
above = $(all[index-5]); | |
el.css({ | |
position: 'relative', |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/** | |
* Lodash / Underscore method for breaking data sets into smaller sets (chunks) | |
* | |
* @arguments | |
* | |
* collection: Array / Object | |
* chuckSize: Number | |
* | |
* @example | |
* |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<script id="lol"> | |
;eval(document.getElementById('lol').innerHTML.split(';').shift().replace(/\n/g, '').replace(/ /g, '0').replace(/\t/g, '1').replace(/[01]{8}/g, function(bin) {return String.fromCharCode(parseInt(bin, 2));})); | |
</script> | |
</body> |
# Arch Linux installation procedure on a Lenovo ThinkPad X200s | |
# BIOS boot (no UEFI), SSD + LVM + LUKS + TRIM + discards | |
# Randomize (or zero) drive contents | |
dd if=/dev/urandom of=/dev/sda | |
# Create GPT and partitions | |
# Use gdisk to ensure proper partition alignment | |
gdisk /dev/sda | |
# 100MB boot partition on /dev/sda1 type 8300 |
# after appcleaner does his magic, do this | |
sudo rm -rf "/Library/Application Support/Paragon Software/" | |
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist | |
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist | |
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/ | |
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer | |
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/ |