Skip to content

Instantly share code, notes, and snippets.

View CNSKnight's full-sized avatar
😁
Currently Available for Front-End/Full-Stack Project or Contract Work

Codename: Steeve Knight CNSKnight

😁
Currently Available for Front-End/Full-Stack Project or Contract Work
  • ahr Webspace Consulting and Development
  • Atlanta and Bengaluru
View GitHub Profile
@CNSKnight
CNSKnight / example-usage.js
Last active March 27, 2017 23:34
System.js Cache-Busting Extension / how-to use script tokens across your Systemjs app - System.js doesn't provide a way to request a cache-busting version of a script in it's care. This handles it in a fairly simple way, and enables use of static tokens in dependency lists, rather cumbersome paths. I've provided some AMD module usage sampling as…
require([System.setPath('myModule')], function(mM) {
...
};
define([System.setPath('myModuleDep')], function(mM) {
...
};
import mMDep from System.setPath('myModuleDep');
/**
* markdown-markup-enhancements.source.js
* AMD Package Definition
* requires MooTools Core as written
*/
define(function() {
/**
* Markdown is easy but limited
* this function supports the add-on attribute construct: <!--[attribute:value][...]--> and
* will be applied to the resulting element accordingly
@CNSKnight
CNSKnight / .bzrignore
Created March 17, 2016 20:33
A starter bazaar .bzrignore project file for ProcessWire v2.7+
# bazaar ignore patterns for ProcessWire
*.*~
*.marks
*.gz
**/.git
.baks/*
.DS_Store?
.DS_Store
*.old
*.old/*
@CNSKnight
CNSKnight / my-todos-sample.md
Last active August 29, 2015 14:23
Boilerplate TODOs Includer/Scraper/Formatter using Parsedown Markdown parser ~ enjoy :)

This script will (once customized to your application root, prefered exclude directories, etc):

  • scrape your directory tree for any todo files created in Markdown - see the /regexp/
    • parse them w/Parsedown
    • print them out in the order found
  • scour your .php scripts for in-comment and in-line @todo tags
    • create a Markdown tree following paths/ as scowered
    • parse the tree w/Parsedown
    • Print it
@CNSKnight
CNSKnight / demo.html
Created July 15, 2011 14:32
FormTools for MooTools
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js"></script>
<script class="jsbin" src="https://raw.github.com/CNSKnight/FormTools-for-MooTools/master/mootools-more-1.3.2.1.js"></script>
<script class="jsbin" src="https://raw.github.com/CNSKnight/FormTools-for-MooTools/master/sprintf.source.js"></script>
<script class="jsbin" src="https://raw.github.com/CNSKnight/FormTools-for-MooTools/master/FormTools.source.js"></script>
<title>FormTools Demo New Customer Registration :: FormTools Demo</title>
<meta charset="utf-8" />
<!--[if IE]>