Skip to content

Instantly share code, notes, and snippets.

View stlsmiths's full-sized avatar
🎯
Focusing

Todd Smith stlsmiths

🎯
Focusing
View GitHub Profile
@stlsmiths
stlsmiths / main.js
Created October 12, 2012 14:17 — forked from davglass/main.js
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Your Title</title>
<!-- Enter any page specific CSS link files -->
<link href="/yui/google-code-prettify/prettify.css" rel="stylesheet" type="text/css" />
<!-- Enter any local CSS declarations here -->
<style></style>
@stlsmiths
stlsmiths / gist:3494809
Created August 28, 2012 03:53
Datatable paginator.view using ModelSync.REST
YUI({
filter:'raw', combine:false,
modules: {
'datatable-paginator': {
fullpath: "http://www.jbistudios.com/applicationdev/js/yui/build/datatable-paginator-class/datatable-paginator-class.js",
type: 'js',
requires: [ "datatable-base", "base-build", "event-custom" ]
},
'paginator-css' : {
fullpath: "http://jbistudios.com/applicationdev/js/yui/build/paginator-mv/assets/paginator-view.css",
@stlsmiths
stlsmiths / gist:3494655
Created August 28, 2012 03:20
Datatable paginator.view using ModelSync.REST
YUI({
filter:'raw', combine:false,
// paginator-view is on YUI Gallery
modules: {
'datatable-paginator': {
fullpath: "http://www.jbistudios.com/applicationdev/js/yui/build/datatable-paginator-class/datatable-paginator-class.js",
type: 'js',
requires: [ "datatable-base", "base-build", "event-custom" ]
}
@stlsmiths
stlsmiths / datatable.js
Created February 6, 2012 17:42 — forked from dhoss/datatable.js
stlsmith's edits
[% page.load_scripts_at_top = 1 %]
<!-- IF you add this, you will run the 3.5.0pr2 code directly from yuilibrary, and can remove all your Gallery crap ...
<script type="text/javascript" src="http://yui.yahooapis.com/3.5.0pr2/build/yui/yui-min.js"></script>
-->
<script type="text/javascript">
/* Delete the gallery stuff
<div id="myChart" style="width:400px;height:400px;"></div>
<script type="text/javascript">
YUI.use('charts', function(Y) {
var myData = [
{category: 'Monday', values: 2},
{category: 'Tuesday', values: 5},
{category: 'Wednesday', values: 7},
{category: 'Thursday', values: 6},