Skip to content

Instantly share code, notes, and snippets.

View meenie's full-sized avatar

Cody Lundquist meenie

  • Bend, OR
  • 13:00 (UTC -07:00)
View GitHub Profile
> Initializing…
> Building
> ▲ npm install
> ✓ Using "yarn.lock"
> ⧗ Installing 26 main dependencies…
> `ace-resolve` did not respond in a timely fashion, bailing…
> ▲ yarn
> yarn install v1.5.1
> [1/5] Validating package.json...
> [2/5] Resolving packages...
meenie / brainfuck.ts
Last active May 3, 2020 15:24
A Brainfuck interpreter written in TypeScript
class Brainfuck {
ptr: number = 0
cmdPtr: number = 0
data: number[] = [0]
output: any[] = []
loops: number[] = []
input: string;
arg: string;
argPtr: number = 0;
import {Store} from 'confidence';
import {readFileSync} from 'fs';
const criteria = {
env: process.env.NODE_ENV || 'development'
let store,
config = {
baseURL: "/",
defaultJSExtensions: true,
transpiler: "typescript",
typescriptOptions: {
"emitDecoratorMetadata": true
paths: {
"*": "js/*",
"js": "js",
meenie /
Created March 26, 2014 23:20
Verifying Github Account with

Keybase proof

I hereby claim:

  • I am meenie on github.
  • I am meenie ( on keybase.
  • I have a public key whose fingerprint is 83CF CA64 ED8F EA9A 51E5 C6DF CD16 4BEB F176 8774

To claim this, I am signing this object:

meenie / gist:7078009
Created October 21, 2013 02:54
Proposal for modularising LESS files in your front-end MVC application using Grunt


One of the industry standards that has come about since the inception of JavaScript MVC frameworks is to organise your application by feature, rather than by common files. The structure of your application follows closely to the URL structure of your application. For an example see So each feature of your application has it's own stylesheet, most likely a LESS file. You put all of the styles pertaining to that feature in there. Then you use a grunt task which collects all of the LESS files, compiles them into CSS and then concatenates them into one CSS file which is used for the whole application.

The Problem

The issue you run into is that you need to have some level of specificity so that the styles you add in that particular file do not apply to other features. Too much specificity can actually slow down the rendering engine in the browser when it interprets your styles. Not enough specificity and those styles c

meenie / filters.js
Last active December 19, 2015 21:09 — forked from jakemmarsh/filters.js
app.filter('parseUrl', function () {
var replacements = [
//URLs starting with http://, https://, or ftp://
search: /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,
replace: '<a href="$1" target="_blank">$1</a>'
//URLs starting with "www." (without // before it, or it'd re-link the ones done above).
search: /(^|[^\/])(www\.[\S]+(\b|$))/gim,
meenie / munee.php
Last active December 15, 2015 03:19
Munee undocumented feature - Image Placeholders
require 'vendor/autoload.php';
* A new feature in Munee is being able to use image placeholders for missing images.
* This is a great feature to have if you are designer just starting a new site and don't necessarily have
* all of your images available. You can specify a specific image or use one of the numerous image placeholder
* websites out there like
* You can also specify different image paths for different placeholder images as well.
* So if you want a different image for all of your /img/category/* images and another for all of your /img/product/*
* Only the alert from the beforeSubmit callback is fired off.
* The reason I need to do this is so other $.ajax calls (not using the ajaxForm plugin) will also use the success callback
* I suppose if I use $(document).ajaxSuccess() it would work, but that's not the point.
* If you were to extend $.ajaxSettings on line 65 of your most recent version (2.68) it will work properly.
$(function() {
success: function() {
alert('Fire off Success callback for all Ajax Requests');