Skip to content

Instantly share code, notes, and snippets.

View jaidetree's full-sized avatar

jaide (formerly eccentric-j) jaidetree

View GitHub Profile
{
"parser":"babel-eslint",
"env":{
"browser":true,
"es6":true,
"node":true
},
"globals":{
"require":true,
"DataBootstrap":true,
//////////////////////////////////////////////////////////////////////////
/// ///
/// SCRIPT: kdAutoRigV0.1.mel - MEL Script ///
/// ///
/// AUTHOR: Kory Dondzila - [email protected] ///
/// www.korydondzila.com ///
/// ///
/// DESCRIPTION: This is a prototype script. It allows the ///
/// user to rig the spine and neck of a character. ///
/// The script generates the locators for the user ///
var _ = require('underscore'),
browserifyAPI = require('browserify'),
BrowserifyFactory = {},
buffer = require('vinyl-buffer'),
filter = require('gulp-filter'),
fs = require('fs'),
glob = require('glob'),
gulp = require('gulp'),
gutil = require('gulp-util'),
inliner = require('gulp-mc-inline-css'),
@jaidetree
jaidetree / supervisor
Created September 17, 2014 03:23
This is an init.d/supervisor script for managing a easy_install \ pip install version of supervisor. Add the first file "supervisor" into /etc/init.d/supervisor and put "supervisord.conf" into /etc/supervisor/supervisord.conf
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <[email protected]>.
# Modified for Debian
# by Ian Murdock <[email protected]>.
# Further changes by Javier Fernandez-Sanguino <[email protected]>
#
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" dir="ltr" lang="en-EN">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" dir="ltr" lang="en-EN">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" dir="ltr" lang="en-EN">
<![endif]-->
@jaidetree
jaidetree / main.c
Last active December 28, 2015 04:49
Divides a sensorValue by 48 and displays it in the console.
#include <stdio.h>
float calcSensorValue(int originalValue) {
// Casting allows us to take an integer and treat it as a float,
// which means getting decimal numbers instead of whole numbers
// which would be inaccurate.
return 48 / (float)originalValue;
}
// Responsible for handling output.
/* =LinkBox Widget Styles
-------------------------------------------------------------- */
.widget.widget_link_box {
margin: 0;
}
.widget.widget_link_box p {
margin: 0;
}
.widget.widget_link_box a,
.widget.widget_link_box a:visited {
@jaidetree
jaidetree / gist:5670793
Last active December 17, 2015 20:49 — forked from anonymous/gist:5670763
var clickTagURL:String = "";
if (root.loaderInfo.parameters.hasOwnProperty("clickTAG")) {
clickTagURL = root.loaderInfo.parameters['clickTAG'];
}
if ((/^http\:\/\/.*/).test(clickTagURL)) {
setClickTagHandlers();
}
@jaidetree
jaidetree / gist:5670693
Last active December 17, 2015 20:49 — forked from anonymous/gist:5670671
if (root.loaderInfo.parameters.clickTAG.substr(0,5) == "http:") {
// Add more button instances here
ClickHotspot.addEventListener( MouseEvent.CLICK, clickTagHandler);
// If within a movie clip
// movieClipInstanceName.buttonInstanceName.addEventListener(MouseEvent.CLICK, clickTagHandler);
}
function clickTagHandler(e:MouseEvent):void {
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG), "_blank");
<header id="header">
<div class="logo">
<a href="#">
<img src="" alt="" />
</a>
</div>
<nav>
<ul>
<li></li>
</ul>