Instantly share code, notes, and snippets.

View demo_image_carousel.html
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...

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;
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>
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/>
View MacroMerge.hx
package;
import haxe.io.Path;
import haxe.Json;
import sys.FileSystem;
import sys.io.File;
/**
* @author: Pierre Chamberlain
* @version: 1.0
*
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:
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.
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")
*