Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile

The PopCha! Movie Network

A visualization of similarity between movies by means of a network graph

  • Similarity data taken from [PopCha!] 1 recommender engine (R*)
  • Movie info from [The Movie Database] [3]
  • Visualization done in JavaScript with [D3.js] [2]
@Teino1978-Corp
Teino1978-Corp / index.html
Created November 2, 2015 02:58 — forked from fdaudens/index.html
D3 Treemap Milliardaires
<!DOCTYPE html>
<meta charset="utf-8">
<title>Zoomable Treemap</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="http://d3js.org/d3.v2.js"></script>
<script src="http://code.jquery.com/jquery-1.7.1.js"></script>
<p id="chart">
<p id="rawdata">
@Teino1978-Corp
Teino1978-Corp / Tableau.xml
Created November 2, 2015 03:34 — forked from cmtoomey/Tableau.xml
Fully Documented Tableau Workbook as XML
<?xml version='1.0' encoding='utf-8' ?>
<!--This is the basics - platform (windows or mac)and version number-->
<workbook source-platform='mac' version='9.0' xmlns:user='http://www.tableausoftware.com/xml/user'>
<!-- build 9000.15.0318.1720 -->
<!--No idea what this for -->
<preferences>
<preference name='ui.encoding.shelf.height' value='250' />
<preference name='ui.shelf.height' value='250' />
</preferences>
<!--This is everything you need to know about datasources -->
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Teino1978-Corp
Teino1978-Corp / redcarpet_without_pygments.rb
Created November 2, 2015 17:02 — forked from djui/redcarpet_without_pygments.rb
Jekyll plugin to allow prism.js for markdown code blocks. Markdown parsing is done using redcarpet.
module Jekyll
class RedcarpetWithoutPygmentsParser < Converter
safe true
priority :high
def initialize(config)
require 'redcarpet'
@config = config
@redcarpet_extensions = {}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Teino1978-Corp
Teino1978-Corp / gist:19fdd9f0259a836f51db
Created November 3, 2015 03:19
jQuery Validation - No Special Characters allowed (not allowing < > # )
// Thanks to this site to help out on RegEx - http://www.regexr.com/
require(["jQueryValidate"], function(){
// dont allow < > # \ /
// add alphanumeric validator
jQuery.validator.addMethod("noSpecialCharacter", function(value, element) {
var regex = new RegExp("[<>#]+");
var key = value;

The jQuery special events API is a fairly flexible system by which you can specify bind and unbind hooks as well as default actions for custom events. In using this API, you can create custom events that do more than just execute bound event handlers when triggered--these "special" events can modify the event object passed to event handlers, trigger other entirely different events, or execute complex setup and teardown code when event handlers are bound to or unbound from elements.

Note that this article uses some advanced jQuery techniques and assumes you understand the concepts of custom events and event delegation using bubbling.

Also, because this article is rather long, it has been broken up into sections. I'd recommend reading it in order, one section at a time, because techniques used in subsequent examples often reference those used in previo

body {
font-family: Arial, Tahoma, sans-serif;
border: 0px solid black;
padding: 0px;
margin: 0px;
}
#header {
border: 0px;
width: 50%;