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 / dabblet.css
Created February 17, 2012 00:06
Containing Box Design Pattern
/**
* Containing Box Design Pattern
*/
/* basic body styling - not neccessary for this class */
body {
margin: 60px 20px;
font-family: "Lucida Grande", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #454545;
@jrob00
jrob00 / dabblet.css
Created February 24, 2012 19:16
Box Shadows
/**
* Box Shadows
*/
/* basic body styling - not neccessary for this class */
body {
margin: 60px 20px;
font-family: Helvetica, Arial, sans-serif;
color: #454545;
background-color: #f6f6f6;
@jrob00
jrob00 / caveatPatchor.js
Created March 1, 2012 23:28 — forked from protocool/caveatPatchor.js
Sample Propane caveatPatchor.js // with current hacks
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@jrob00
jrob00 / gist:2026705
Created March 13, 2012 04:21
Steps to renaming a project in xcode
Steps to renaming a project in xcode
- slowly double click the project name on the far left to rename it
- rename the folder directly beneath that
- duplicate the data directory in finder and name it as your new name
- click on that folder and click the icon on the far right under "Location" point the path to the new data directory
- go through build settings and rename any old project references that you see (2, I think)
- find and replace all the instances of project name in your new data directory with the new name (updating header info here)
- click on the scheme button to the right of the stop button and rename the scheme under 'manage the scheme'
- delete the old data directory; build and run to test
@jrob00
jrob00 / gist:2142863
Created March 21, 2012 00:12
.profile
Jasons-iMac:~ jason$ cat .profile
# This loads RVM into a shell session.
[[ -s "/Users/jason/.rvm/scripts/rvm" ]] && source "/Users/jason/.rvm/scripts/rvm"
#export PATH=$PATH:/Applications/MAMP/Library/bin
# aliases
httpd() {
@jrob00
jrob00 / gist:2306939
Created April 5, 2012 00:43
local clover hosts file
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
@jrob00
jrob00 / gist:2306944
Created April 5, 2012 00:44
local clover virtualhosts file
NameVirtualHost *:80
NameVirtualHost *:443
#DocumentRoot "/var/www/html"
<Directory />
Options -Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
@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))
@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 / 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);