Skip to content

Instantly share code, notes, and snippets.

View jrob00's full-sized avatar

Jason Roberts jrob00

  • Simi Valley, CA
View GitHub Profile
@jrob00
jrob00 / Preferences.sublime-settings
Created July 16, 2012 21:25
current sublime 2 settings
{
"auto_indent": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/LAZY.tmTheme",
"drag_text": false,
"find_selected_text": true,
"font_face": "Inconsolata",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
@jrob00
jrob00 / gist:3108519
Created July 14, 2012 00:48
Install Nginx on a dv 3.5
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
yum install nginx
OR build from source (because 3.5 doesn't support --with-file-aio)
* note the 'make' resulted in a number of errors and we abandoned it
groupadd nginx
@jrob00
jrob00 / gist:3106071
Created July 13, 2012 17:15
Installing apache traffic server with yum
// make it available to yum:
echo "### Name: NetDNA RPM Repo
### URL: http://repo.netdna.com
[netdna]
name = NetDNA Repo
baseurl = http://master.repo.netdna.com/netdna/$basearch/
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-netdna
@jrob00
jrob00 / gist:3106060
Created July 13, 2012 17:14
Installing YUM on a (dv)3.5 i386
Install YUM on a dv 3.5
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-4.4.2.3-27.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/popt-1.10.2.3-27.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-libs-4.4.2.3-27.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh --nodeps http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-27.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-8.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
@jrob00
jrob00 / dabblet.css
Created June 20, 2012 22:58
Questions page selected element
/**
* Questions page selected element
*/
body {
background-color: lightgray;
}
.arrow_box {
padding: 40px;
@jrob00
jrob00 / dabblet.css
Created June 1, 2012 16:55
3 column receipt container
/**
* 3 column receipt container
*/
section {
background-color: darkred;
overflow: auto;
width: 636px;
}
@jrob00
jrob00 / dabblet.css
Created May 14, 2012 19:04
Popup with Border & child element
/*
Popup with Border & child element
*/
.arrow_box {
padding: 40px;
width: 280px;
height: 100px;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,0.3);
@jrob00
jrob00 / dabblet.css
Created May 11, 2012 16:28
Popup with Border
/*
Popup with Border
*/
.arrow_box {
padding: 40px;
width: 280px;
height: 100px;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,0.3);
@jrob00
jrob00 / dabblet.css
Created May 11, 2012 16:23 — forked from chriscoyier/dabblet.css
Triangle with Shadow
/*
Triangle with Shadow
*/
.triangle-with-shadow {
width: 100px;
height: 100px;
position: relative;
overflow: hidden;
box-shadow: 0 16px 10px -17px rgba(0,0,0,0.5);
@jrob00
jrob00 / gist:2322998
Created April 6, 2012 21:16
Box2d macros
#define PTM_RATIO 40.0f
#define SCREEN_TO_WORLD(n) ((n) / PTM_RATIO)
#define WORLD_TO_SCREEN(n) ((n) * PTM_RATIO)
#define B2_ANGLE_TO_COCOS_ROTATION(n) (-1 * CC_RADIANS_TO_DEGREES(n))
#define COCOS_ROTATION_TO_B2_ANGLE(n) (CC_DEGREES_TO_RADIANS(-1 * n))