Skip to content

Instantly share code, notes, and snippets.

View jasononeil's full-sized avatar

Jason O'Neil jasononeil

View GitHub Profile
@jasononeil
jasononeil / angularInjectionMiddleware.js
Last active October 5, 2021 00:02
Using angular dependency injection with react, redux, and redux-thunk
var thunkDispatcherRef = {
dispatch: function () {}
}
/**
* The angular injection middleware allows our redux actions to return functions.
*
* The function will be executed with regular angular dependency injection, allowing
* you to use angular services in Redux actions.
*
@jasononeil
jasononeil / WebpackLoaderUtil.hx
Last active June 5, 2017 23:33
A webpack loader that compiles (and watches) a hxml file, including the resulting JS in the webpack bundle.
import haxe.macro.Context;
import haxe.macro.Type;
import haxe.macro.Expr;
import sys.io.File;
class WebpackLoaderUtil {
public static function outputJson(outputFile:String) {
Context.onGenerate(function (types:Array<Type>) {
var allFilesUsed = [];
for (type in types) {
@jasononeil
jasononeil / zendesk-wysiwyg-styles.css
Created August 18, 2017 05:41
Styles needed for Zendesk wysiwyg content
.wysiwyg-color-black {
color: #000; }
.wysiwyg-color-black70 {
color: #4d4d4d; }
.wysiwyg-color-black60 {
color: #666666; }
.wysiwyg-color-black50 {
color: gray; }
.wysiwyg-color-black40 {
color: #999999; }