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
@nathansmith
nathansmith / detect_full_screen.html
Created May 18, 2011 15:42
Detect full-screen mode for desktop browsers.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Detect Full-Screen</title>
<style>
* {
font-family: sans-serif;
line-height: 1.5;
@schleg
schleg / 01. Gemfile
Created May 26, 2011 17:26
Setup for Devise + Omniauth
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'
@maxpert
maxpert / clearfix.css
Created May 30, 2011 11:04
Minimal clearfix
/* For modern browsers */
.cf:before,
.cf:after {
content:"";
display:block;
}
.cf:after {
clear:both;
}
anonymous
anonymous / bootstrap.sh
Created June 2, 2011 17:19
Django on Heroku with Celery and Sentry
virtualenv --no-site-packages .
source bin/activate
bin/pip install Django psycopg2 django-sentry
bin/pip freeze > requirements.txt
bin/django-admin.py startproject mysite
cat >.gitignore <<EOF
bin/
include/
lib/
EOF
@vojtajina
vojtajina / angular-bind-title.html
Created June 13, 2011 12:56
Angular - binding title example
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org" ng:controller="Main">
<head>
<title ng:bind-template="Prefix: {{pageTitle}}"></title>
<script type="text/javascript" src="build/angular.js" ng:autobind></script>
<script type="text/javascript">
function Main(){}
function Child(){}
</script>
@jasonmelgoza
jasonmelgoza / nodes.css
Created June 28, 2011 18:14
UCM SLU 1 Drupal css setup
.node a,
.node a:visited {
color: #C60;
text-decoration: none;
border-bottom: 1px dotted #C60;
}
.node a:hover {
color: #C60;
text-decoration: none;
border-bottom: 1px dotted #C60;
@jasonmelgoza
jasonmelgoza / pseudo.css
Created July 5, 2011 16:03
pseudo before and after css
a::before {
content: "[";
}
a::after {
content: "]";
}
@jasonmelgoza
jasonmelgoza / bootsrap.less
Created July 12, 2011 18:10
Bootstrap less mixin
// Links
@link-color: #4C7CB2;
@link-hover-color: #F9A029;
// Grays
@white: #fff;
@gray-lighter: #ccc;
@gray-light: #777;
@gray: #555;
@gray-dark: #333;
@teamon
teamon / guide.sh
Created July 28, 2011 19:11
Pow + nginx configuration aka give me back my 80 port!
# Install pow
$ curl get.pow.cx | sh
# Install powder
$ gem install powder
# See that firewall is fucked
$ sudo ipfw show
00100 0 0 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in <- THIS ONE!!!
65535 81005 28684067 allow ip from any to any
@bclennox
bclennox / Text•UnComment Selection.scpt
Created September 13, 2011 18:34
BBEdit Menu Script to act like TextMate's commenter
on menuselect(menuName, itemName)
tell application "BBEdit"
if (length of (selection of text window 1) > 0) then
return false
else
set documentMode to source language of text document 1
if (documentMode is "Ruby" or documentMode is "Unix Shell Script") then
set commentDelimiter to "# "
else
set commentDelimiter to "// "