Skip to content

Instantly share code, notes, and snippets.

Avatar
🌮
not in the face

Aaron Stacy aaronj1335

🌮
not in the face
View GitHub Profile
View gist:8a9d3cbe4cdbd8670ccdcf5d0d917f5d
+---------------------------+---------+
| Gem | Version |
+---------------------------+---------+
| jekyll | 3.0.3 |
| jekyll-sass-converter | 1.3.0 |
| jekyll-textile-converter | 0.1.0 |
| kramdown | 1.10.0 |
| rdiscount | 2.1.8 |
| redcarpet | 3.3.3 |
| RedCloth | 4.2.9 |
View postcss-plugin.js
import postcss from 'postcss';
import customProperties from 'postcss-custom-properties';
import {reduce} from 'lodash';
import LineToLineMappedSource from 'webpack-core/lib/LineToLineMappedSource';
export default function() {
this.plugin('compilation', function(compilation) {
compilation.plugin('optimize-chunk-assets', function(chunks, callback) {
compilation.assets = reduce(compilation.assets, (assets, asset, name) => {
if (/\.css$/.test(name)) {
View gist:feb6706ded4eeb27b380
Gem Local GitHub
jekyll 2.4.0 2.4.0
jekyll-coffeescript 2.0.1 1.0.1
jekyll-sass-converter 1.2.0 1.2.0
kramdown 1.5.0 1.5.0
maruku 0.7.0 0.7.0
rdiscount 2.1.7 2.1.7
redcarpet 3.1.2 3.1.2
RedCloth 4.2.9 4.2.9
liquid 2.6.2 2.6.2
View github-pages.txt
astacy∂ƃuɐqzıʍ ☠ ~/code/austinjavascript.github.io 02:54:35 May30
§ github-pages health-check
Checking domain austinjavascript.com...
Everything looks a-okay! :)
astacy∂ƃuɐqzıʍ ☠ ~/code/austinjavascript.github.io 02:55:21 May30
§ github-pages versions
+-----------------------+---------+
| Gem | Version |
+-----------------------+---------+
View package.json
{
"name": "admin-app",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "true",
"dev": "./bin/dev.js",
"build": "./bin/build.js"
},
View styles-with-prototypes.js
function Button() {}
Button.prototype = {
color: 'blue',
border: '1px solid black'
};
// use classical inheritance or something like functional mixins to replicate
// the cascading nature of stylessheets
function ButtonActive() {}
ButtonActive.prototype = Object.create(Button.prototype);
View clean-up-filters.js
var inUseFilterIds = {};
var start = Date.now();
function elapsed(start) {
return (Date.now() - start) / 1e3;
}
print('creating lookup of in-use filter id\'s');
db.broadcast.find().forEach(function(broadcast) {
View listen-to.js
module.exports = {
listenTo: function(other, event, callback) {
other.on(event, callback, this);
this._eventEmitters = this._eventEmitters || [];
this._eventEmitters.push([other, event]);
},
componentWillUnmount: function() {
(this._eventEmitters || []).forEach(function([other, event]) {
other.off(event, null, this);
@aaronj1335
aaronj1335 / core.cljs
Created Oct 15, 2014
because @vtho always wants us to over engineer
View core.cljs
(ns rdp.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[cljs.core :refer [clj->js]]
))
(defonce app-state (atom {:templates ["something {x.y.(\"foo\")} something else"
"a {b.c.(\"d } e\")} f {c.g.(\"h\")}"
":{ }:"]}))
(defn children [parent s]
View repozish.js
/* global Application, ObjC, $ */
/**
* repozish.js
*
* this is an example of using os x yosemite's "JavaScript for Automation":
*
* https://developer.apple.com/library/prerelease/mac/releasenotes/interapplicationcommunication/rn-javascriptforautomation/index.html
*
* it repositions some windows based on some position settings. you can run
You can’t perform that action at this time.