Skip to content

Instantly share code, notes, and snippets.

For hire

Chris paxperscientiam

For hire
Block or report user

Report or block paxperscientiam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
garris / gist:afebec8e31f5a193aa1b
Last active Aug 29, 2015
tremula local data example
View gist:afebec8e31f5a193aa1b
Modify `./boilerplate/index.html`
Look at line 81 where we initialize tremulajs...
window.tremula = tremulaInit();//does not need to be on the window -- implemented here for convienience.
loadFlickr(); // <=== replace this line with the block below...
View TremulaJS-Boilerplate.markdown

TremulaJS Boilerplate

TremulaJS is a client-side javascript UI component providing Bézier-based content-stream interactions with momentum & physics effects for mouse, scroll and and touch UIs.

This Pen allows you to experiment using different config file settings.

A Pen by Garris on CodePen.


View xr.el
;; xr - convert string regexp to rx notation
(require 'rx)
(defun xr-parse-char-alt ()
(let ((set nil))
(when (looking-at "]")
(forward-char 1)
(setq set (list "]")))
(while (not (looking-at "]"))
bennadel / code-1.htm
Created Mar 25, 2014
Enable And Disable jQuery Event Handlers (Rather Than Bind And Unbind)
View code-1.htm
<title>Enable And Disable jQuery Event Handlers</title>
<style type="text/css">
#modal {
background-color: #FAFAFA ;
border: 1px solid #C0C0C0 ;
display: none ;
joepie91 /
Last active Jul 7, 2017
Whirlwind tour of correct `npm` usage

This is a quick tour of how to get started with NPM, how to use it, and how to fix it.

I'm available for tutoring and code review :)

You may reuse all my gists for any purpose under the WTFPL / CC0 (whichever you prefer).

Starting a new project

Create a folder for your project, preferably a Git repository. Navigate into that folder, and run:

View gist:2457d5e9d3105f759ebc
// This function is called immediately. The second function is passed in
// as the factory parameter to this function.
(function (factory) {
// If there is a variable named module and it has an exports property,
// then we're working in a Node-like environment. Use require to load
// the jQuery object that the module system is using and pass it in.
if(typeof module === "object" && typeof module.exports === "object") {
factory(require("jquery"), window, document);
// Otherwise, we're working in a browser, so just pass in the global
bennadel / code-1.cfm
Created Mar 25, 2014
Creating Repeated Sequences With The Modulus (MOD) Operator
View code-1.cfm
Loop to 15 using a modulus of 3 to get a result
at each index.
pritchard2751 / recursive_array_iterator.php
Last active Jul 25, 2017
Recursive Iteration of a Multidimensional Array Using SPL Iterators
View recursive_array_iterator.php
$nav_menu = array("Level 1" => array("Level 1 child (a)", "Level 1 child (b)"),
"Level 2" => array("Level 2 child (a)" =>
array("Level 2.1 child (a)" =>
array("Level 2.2 child (a)"),
"Level 2.1 Child (b)"
"Level 2 child (b)"
vichango / Begin document
Last active Sep 9, 2017
Scrivener LaTeX Compile options
View Begin document
% To remove the date
You can’t perform that action at this time.