Skip to content

Instantly share code, notes, and snippets.

@indieveed
indieveed / blog-webpack-2.md
Created February 22, 2016 22:58 — forked from xjamundx/blog-webpack-2.md
From Require.js to Webpack - Part 2 (the how)

This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.

In that post I talked about 3 main reasons for moving from require.js to webpack:

  1. Common JS support
  2. NPM support
  3. a healthy loader/plugin ecosystem.

Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.

killall ssh-agent; eval `ssh-agent`
@indieveed
indieveed / lzw.html
Created November 20, 2012 20:00
lzw
<!doctype html>
<script type="text/javascript">
//LZW Compression/Decompression for Strings
var dic = "";
var LZW = {
compress: function (uncompressed) {
"use strict";
var i,
dictionary = {},
c,
@indieveed
indieveed / assessment.md
Created May 11, 2012 10:22 — forked from rmurphey/assessment.md
assessment

What do you think the following code does?

function fn(msg, time) {
  setTimeout(function() {
    console.log(msg);
  }, time);
}

fn('it works', 1000);
@indieveed
indieveed / presentationPrep.js
Created April 7, 2012 05:54 — forked from JeffreyWay/presentationPrep.js
I wish it could be that simple. Something for me to build.
presentation
.title('My Great Presentation')
.slide({
title: 'Learn About Borders',
bullets: [
'Thing 1',
'Thing 2',
],
code: ['path/to/file.css', [2,4]] // path to file, lines to grab