Skip to content

Instantly share code, notes, and snippets.

View jasonmelgoza's full-sized avatar
🏠
Working from home

Jason Melgoza jasonmelgoza

🏠
Working from home
View GitHub Profile
@jasonmelgoza
jasonmelgoza / block.tpl.php
Created August 14, 2012 05:23 — forked from pixelwhip/block.tpl.php
Modular Stylesheets - Design 4 Drupal
<?php
/**
* @file
* Default theme implementation to display a block.
*
* Available variables:
* - $block->subject: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
@jasonmelgoza
jasonmelgoza / resignation.rb
Created July 30, 2012 21:09 — forked from lxfontes/resignation.rb
Resignation Letter
class Resignation
attr_accessor :name,:date,:kind_note,:reason_array,:signoff
def initialize(employee_name,end_date)
@name=employee_name
@date=end_date
@kind_note = "With great sorrow"
end
def random_reasons(reasons)
@reason_array=Array(reasons)
end
/*
Filename
Description of the file and it's contents (sometimes followed by a table of contents)
*/
/* Section heading
-------------------------------------------------- */
/* Sub heading
------------------------- */
/*
Filename
Description of the file and it's contents (sometimes followed by a table of contents)
*/
/* Section heading
-------------------------------------------------- */
/* Sub heading
------------------------- */
@jasonmelgoza
jasonmelgoza / layout.sass
Created March 7, 2012 23:16 — forked from jcroft/layout.sass
How easy responsive design can be with Sass
#content-wrapper
+container
#about
// Default (smallest screens)
+column(100%)
background-color: #ccc
// Respond to other screen widths
@jasonmelgoza
jasonmelgoza / h5bp-twitter-bootstrap
Created January 29, 2012 19:16 — forked from mklabs/bootstrap-plugins.txt
h5bp + twitter bootstrap integration
#!/usr/bin/env bash
src=$PWD
h5bp_remote=git://github.com/h5bp/html5-boilerplate.git
bootstrap_remote=git://github.com/twitter/bootstrap.git
h5bp_branch=master
bootstrap_branch=master
@jasonmelgoza
jasonmelgoza / Makefile
Created January 4, 2012 21:47 — forked from ecarter/Makefile
Makefile - stylus
# Output Directory
OUTPUT = ../lib
all: css
css:
@echo "stylus => css"
@stylus \
-c \
-u nib \
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Nice Buttons</title>
<style>
* { margin: 0; padding: 0; }
ul {
padding: 20px;
width: 80px;
float: left;

download and un-tar

create db directory

mkdir -p /data/db

export mongo bin directory

export MONGO_BIN="/usr/local/mongodb/mongodb-osx-x86_64-1.4.4/bin"

export PATH="$PATH:$MONGO_BIN"

/*
Form Elements
-- Styled to look like native Safari on OS X.
-- Drop-down <select> menus are unaffected.
-- Buttons are unaffected. Native OS style.
*/
::-webkit-input-placeholder {
color: #000;
}