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
#search .searchfield {
border-color:#C4C4C4 #E9E9E9 #E9E9E9 #C4C4C4;
border-style:solid;
border-width:1px;
color:#333333;
float:left;
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
font-size:11px;
margin-right:6px;
padding:4px 5px;
<div class="span-14 content-wrapper">
<& /mi/pubsys/section/highlights,
first_line=>'<div id="lead">
<ul id="gallery">',
include_groups=>'TopAll',
last_line=>'</ul>
</div><!--/lead-->' &>
<hr class="space">
# Settings local devel server
import os
ROOT_PATH = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# CACHE_BACKEND="locmem:///"
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'election_data'
DATABASE_USER = 'root'
DATABASE_PASSWORD = 'sniggle'
@jasonmelgoza
jasonmelgoza / twitter.html
Created July 30, 2010 23:12
Twitter search setup for later use
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
div.wrap { width: 300px }
</style>
</head>
<body>
<div class="wrap">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
/*
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;
}
@jasonmelgoza
jasonmelgoza / typography.css
Created August 2, 2010 17:14
default type setup
/*text*/
body {
background-color: #fff;
font: normal 16px/1.5em "Helvetica Neue", helvetica, arial, sans-serif;
color: rgb(51, 57, 64);
}
a:focus {
outline: none;

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"

<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;
/**
* Twitter - http://www.twitter.com
* Copyright (C) 2010 Twitter
* Author: Dustin Diaz ([email protected])
*
* V 2.2.2 Twitter search/profile/faves/list widget
* http://twitter.com/widgets
*/
if(!"console" in window){window.console={log:function(){}}}TWTR=window.TWTR||{};if(!Array.forEach){Array.prototype.forEach=function(D,E){var C=E||window;for(var B=0,A=this.length;B<A;++B){D.call(C,this[B],B,this)}};Array.prototype.filter=function(E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C<B;++C){if(!E.call(D,this[C],C,this)){continue}A.push(this[C])}return A};Array.prototype.indexOf=function(B,C){var C=C||0;for(var A=0;A<this.length;++A){if(this[A]===B){return A}}return -1}}(function(){if(TWTR&&TWTR.Widget){return }function A(B,D,C){this.el=B;this.prop=D;this.from=C.from;this.to=C.to;this.time=C.time;this.callback=C.callback;this.animDiff=this.to-this.from}A.canTransition=function(){var B=document.createElement("twitter");B.style.cssText="-webkit-transition: all .5s linear;";return !!B.style.web