Skip to content

Instantly share code, notes, and snippets.

@trevordixon
trevordixon / xlsxParser.js
Created August 17, 2012 04:10
Parse an Excel xlsx file with javascript, jquery, and zip.js
/*
Relies on jQuery, underscore.js, Async.js (https://github.com/caolan/async), and zip.js (http://gildas-lormeau.github.com/zip.js).
Tested only in Chrome on OS X.
Call xlsxParser.parse(file) where file is an instance of File. For example (untested):
document.ondrop = function(e) {
var file = e.dataTransfer.files[0];
excelParser.parse(file).then(function(data) {
console.log(data);
@tsmith512
tsmith512 / macadventures.md
Created November 30, 2012 04:33
My iJourney

An Introduction

Through both a yearning for familiarity and the knowledge that corporate computer defenestration is a terminal act, I have arduously forged this list of tips, less useful for those on a quest to be an ultimate iUser than for those who want to retain a glimpse, however fleeting, of the Windows/Linux they used to know.

-- [tsmith512][]

@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@mbinic
mbinic / npm-cli.js
Last active February 24, 2022 09:21
Help WebStorm run the correct version of npm when using Volta
// Place inside C:\Program Files\Volta\bin and set WebStorm's Package Manager to C:\Program Files\Volta
// Credit: Modified from nodist - https://github.com/nullivex/nodist/blob/master/npm/bin/npm-cli.js
var child_process = require('child_process');
child_process.spawn('npm', process.argv.slice(2), {stdio: 'inherit'})
.on('error', function(err) {
console.log('Sorry. There was a problem with indirect running of npm.');
throw err;
})