Skip to content

Instantly share code, notes, and snippets.

View musamusa's full-sized avatar
🎯
Focusing

Musa Musa musamusa

🎯
Focusing
View GitHub Profile
"use strict";
const Path = require("path");
const Webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const ExtractSASS = new ExtractTextPlugin("styles/bundle.[hash].css");
const port = 3001;
{
"name": "facil-memory-game",
"version": "1.0.0",
"description": "So much memory capacity needed!",
"scripts": {
"start": "webpack-dev-server --open --config webpack.config.js"
},
"author": "facil",
"license": "MIT",
"devDependencies": {
@musamusa
musamusa / lzw_encoder.js
Created December 18, 2015 16:46 — forked from revolunet/lzw_encoder.js
LZW javascript compress/decompress
// LZW-compress a string
function lzw_encode(s) {
var dict = {};
var data = (s + "").split("");
var out = [];
var currChar;
var phrase = data[0];
var code = 256;
for (var i=1; i<data.length; i++) {
currChar=data[i];