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 / 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: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: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: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 / 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 / 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 / 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 16, 2012 23:52
Donation Center Color Pattern Library
/**
* Donation Center Color Pattern Library
*/
body {
background-color: #FBFBFB;
color: #7B7B7B;
}
ul {
list-style: none;
@jrob00
jrob00 / dabblet.css
Created February 3, 2012 00:25
Donation Center Pattern Library
/**
* Donation Center Pattern Library
*/
ul {
list-style: none;
overflow: auto;
}
li {
@jrob00
jrob00 / gist:1556003
Created January 3, 2012 17:40
Using MSSQL to strtodate date ranges
DECLARE @StartDate DATETIME, @EndDate DATETIME
SELECT
@StartDate =
CASE WHEN 'Today' THEN CAST(FLOOR(CAST(GetDate() AS FLOAT)) AS DATETIME)
CASE WHEN 'This Week' THEN DATEADD(dd, -1 * (DATEPART(dw, GETDATE()) - 1), CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME))
CASE WHEN 'ThisMonth' THEN DATEADD(dd, -1 * (DATEPART(d, GETDATE()) - 1), CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME))
ELSE '1/1/1900'
END