Skip to content

Instantly share code, notes, and snippets.

Drew Petersen kirbysayshi

Block or report user

Report or block kirbysayshi

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
@kirbysayshi
kirbysayshi / gist:133260
Created Jun 20, 2009
Structured data describing the attributes and physical characteristics of a Colonial Viper MKII from BSG.
View gist:133260
<?xml version="1.0" encoding="iso-8859-1"?>
<ship name="Colonial Viper MkII" short="Viper MkII">
<comments>
physical values are in Meters
firerate is ms between shots per cannon
the number of firepods must match the count
order is the order in which the pods will fire if set to alternate-single fire mode
offsets are where the actual shot is created from, ie: the end of the barre
offsets are from the center middle back of the craft, facing forward, in meters
-x is left, +x is right, -y is up, +y is down, -z is behind, +z is into the screen
View netid.php
<?php
$_SERVER['REMOTE_USER'] = 'yournetidhere';
View PV3DSegmentIntersectDetector.as
package com.kirbySaysHi.collisions
{
import org.papervision3d.core.math.AxisAlignedBoundingBox;
import org.papervision3d.core.math.Number3D;
import org.papervision3d.core.math.Plane3D;
public class PV3DSegmentIntersectDetector
{
private static var _lastIntersect:Number3D = new Number3D();
private static const EPSILON:Number = 0.000001;
View bespinoutput
(bespinclient)RadioFree:bespinclient drew$ paver start
---> pavement.start
---> pavement.start
/Users/drew/HG/bespinclient/lib/python2.6/site-packages/path.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import sys, warnings, os, fnmatch, glob, shutil, codecs, md5
/Users/drew/HG/bespinclient/lib/python2.6/site-packages/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
serving on http://127.0.0.1:8080
SproutCore v1.0.1038 Development Server
Starting server at http://0.0.0.0:4020 in debug mode
View sproutcoreoutput
(bespinclient)RadioFree:bespinclient drew$ paver start
---> pavement.start
---> pavement.start
/Users/drew/HG/bespinclient/lib/python2.6/site-packages/path.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import sys, warnings, os, fnmatch, glob, shutil, codecs, md5
/Users/drew/HG/bespinclient/lib/python2.6/site-packages/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
SproutCore v1.0.1038 Development Server
Starting server at http://0.0.0.0:4020 in debug mode
To quit sc-server, press Control-C
View settings.yml
mockid:
path: /cygdrive/c/dev/walmart/fm/web/sandbox/mockid/css/compressed
custom_css:
ie.css:
# - custom-ie.css
print.css:
# - .css
screen.css:
- ../FMGridControls.css
- ../FMStyles.css
View jquery-lazy-load-discus-comments.js
jQuery(function(){
var ds_loaded = false, top = jQuery("h1:contains(Comments)").offset().top;
function check(){
if ( !ds_loaded && jQuery(window).scrollTop() + jQuery(window).height() > top ) {
jQuery.getScript("http://jquery.disqus.com/disqus.js?v=2.0&slug=add&pname=wordpress&pver=2.12");
ds_loaded = true;
}
}
View fs_cats
<?xml version="1.0" encoding="UTF-8"?>
<categories>
<category>
<fullpathname>Arts &amp; Entertainment</fullpathname>
<nodename>Arts &amp; Entertainment</nodename>
<iconurl>http://foursquare.com/img/categories/arts_entertainment.png</iconurl>
<categories>
<category>
<id>78959</id>
<fullpathname>Arts &amp; Entertainment:Arcade</fullpathname>
View RGA.GraphAnimate.js
new Rga.GraphAnimate({
container: "#graphContainer0"
, animateOnInit: true
, votes: [ 125644, 10000, 183744, 28900, 12000 ]
, voteMaximum: 200000
});
View pngfilter.css
.selector {
#filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='filename.png');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='filename.png')";
}
You can’t perform that action at this time.