Skip to content

Instantly share code, notes, and snippets.

Pierre Chamberlain bigp

Block or report user

Report or block bigp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bigp
bigp / demo_image_carousel.html
Last active May 31, 2018
An Image-Carousel, for carouselling images, ya know.
View demo_image_carousel.html
@bigp
bigp / review_of_adamwathan_AVCD.md
Last active Aug 12, 2018
Pierre's review of Adam Wathan's "Advanced Vue Component Design"
View review_of_adamwathan_AVCD.md

Pierre's Review of
Adam Wathan's Advanced Vue Component Design

I've been using Vue for a little over a year now. It's my first "watchamacallit" framework (what's the name of these things anyways?) that I picked up, so I can't really form any comparison to AngularJS or React (other than they seem a bit more daunting to learn and use).

Anyhew, I'm hoping this review will help those who are hesitant to hit that "Buy 🛒" on Adam Wathan's video series!

Which can be found here btw...

@bigp
bigp / asynceach.js
Created Jul 12, 2017
NodeJS AsyncEach for handling async.series-like control-flow on Array of items.
View asynceach.js
const _ = require('lodash');
const trace = console.log.bind(console);
function AsyncEach(objList, funcList, cb) {
this.objList = objList;
this.funcList = _.isArray(funcList) ? funcList : [funcList];
this.cb = cb;
this._objID = -1;
this._obj = null;
this._funcID = -1;
@bigp
bigp / vuejs-deep-objects.html
Created Feb 8, 2017
A closer look at VueJS's reactivity with deep object updates and whole component swaps.
View vuejs-deep-objects.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test HTML</title>
</head>
<body>
<div id="app">
<h1>Hello World!</h1>
@bigp
bigp / test.php
Created Jun 10, 2016
PHP proc_open random refresh issue
View test.php
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CMS</title>
</head>
<body>
<a href='?node=npm&node_args=list'>Click to run "npm list"</a><br/>
@bigp
bigp / MacroMerge.hx
Last active Sep 12, 2015
A Merging tool for HTML files that requires all CSS / JS from external sources to be inlined in specific areas of a document.
View MacroMerge.hx
package;
import haxe.io.Path;
import haxe.Json;
import sys.FileSystem;
import sys.io.File;
/**
* @author: Pierre Chamberlain
* @version: 1.0
*
@bigp
bigp / CopyFiles.hx
Last active Aug 29, 2015
Copy files in specific or common directory, useful for post-build processes.
View CopyFiles.hx
package macros;
import sys.FileSystem;
import sys.io.File;
/**
* Can copy files in two ways:
* A) Provide only the first argument, where each elements specifies [sourceFile1, destFile1, sourceFile2, destFile2, ...], or;
* B) Provide a list of files to move (1st argument), and specify a common directory to copy them to;
*
* @usage:
@bigp
bigp / BuildCommands.hx
Last active Aug 29, 2015
Build several JS scripts in one pass.
View BuildCommands.hx
package macros;
import haxe.io.Path;
import haxe.Json;
import sys.FileSystem;
import sys.io.File;
/**
* This script finds Haxe-files in a directory and compiles them to individual JS files.
* A JSON file must be supplied to indicate the CWD, outputDir, fileNamePattern to find the files,
* and the compiler-arguments to apply to all files.
@bigp
bigp / MacroModuleFixer.hx
Last active Aug 29, 2015
Macro for removing (comment-out) specific modules that are automatically created by Haxe compiler in JS
View MacroModuleFixer.hx
package macros;
import sys.FileSystem;
import sys.io.File;
/**
* @author Pierre Chamberlain
* @usage In a compile.hxml file, you can call this command like so:
*
* --macro macros.MacroModuleFixer.run("yourFile.js", "MyModule")
*
You can’t perform that action at this time.