Skip to content

Instantly share code, notes, and snippets.

View bestguy's full-sized avatar

Gary Thomas bestguy

  • San Diego, California
View GitHub Profile
@shinout
shinout / LICENSE
Created September 21, 2011 16:15
Topological sort in JavaScript
Copyright 2012 Shin Suzuki<shinout310@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>D3 and Knockout</title>
<script src="knockout-2.2.1.js"></script>
<script src="lib/d3.v2.js"></script>
<link rel="stylesheet" href="src/nv.d3.css" type="text/css"/>
<script>
var nrects = 1;
function Rect() {
@anwalkers
anwalkers / bootstrapDialog
Created February 5, 2014 20:18
Durandal and Bootstrap 3.1.0 modal dialog context
//bootstrap 3.1.0 modal dialog context for Durandal
define(['plugins/dialog'], function (dialog) {
/**
* @class ScrollDialogContext
*/
dialog.addContext('bootstrapDialog', {
blockoutOpacity: .2,
removeDelay: 300,
/**
@cfenzo
cfenzo / ractive-transitions-animatecss.js
Created August 25, 2014 11:17
A tiny ractive transitions plugin for animate.css-animations.
/*
Requires animate.css, and support for the 'transitionend' event.
(See https://developer.mozilla.org/en-US/docs/Web/Events/transitionend for browser support)
*/
(function ( global, factory ) {
'use strict';
// Common JS (i.e. browserify) environment
if ( typeof module !== 'undefined' && module.exports && typeof require === 'function' ) {
@yasinkuyu
yasinkuyu / codemirror-prism-okaidia.css
Last active May 31, 2016 02:49
prism.js Okaidia Dark theme for CodeMirror
@charset "UTF-8";
/**
*
* prism.js Okaidia dark for JavaScript, CSS and HTML
* @author Yasin Kuyu
* http://code.insya.com
*
*/