Skip to content

Instantly share code, notes, and snippets.

@brunops
brunops / snippet.txt
Created November 26, 2012 15:22
create utf8 db
CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;
@brunops
brunops / bashrc_file
Created November 19, 2012 03:12
bashrc
#### GIT && PS1
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
@brunops
brunops / gist:3762714
Created September 21, 2012 17:14
My public gist
Test public gist
@brunops
brunops / Preferences.sublime-settings
Created September 21, 2012 17:05
Sublime: User Settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"default_line_ending": "unix",
//"draw_white_space": "all",
"font_face": "Courier New",
"font_size": 12,
"highlight_line": true,
"ignored_packages":
[
"Vintage",
@brunops
brunops / reset.css
Created September 21, 2012 17:04
CSS: Reset
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
body{margin:10px}h1{font-size:138.5%}h2{font-size:123.1%}h3{font-size:108%}h1,h2,h3{margin:1em 0}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold}optgroup{font-weight:normal}abbr,acronym{border-bottom:1px dotted #000;cursor:help}em{font-style:italic}del{text-decoration:line-through}blockquote,ul,ol,dl{margin:1em}ol,ul,dl{margin-left:2em}ol{list-style:decimal outside}ul{list-style:disc outside}dl dd{margin-left:1em}th,td{border:1px solid #000;padding:.5em}th{font-weight:bold;text-align:center}caption{margin-bottom:.5em;text-align:center}sup{vertical-align:super}sub{vertical-align:sub}p,fieldset,table,pre{margin-bottom:1em}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px}img{-ms-interpolation-mode:bicubic}
@brunops
brunops / gist:3762615
Created September 21, 2012 16:53 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@brunops
brunops / general.js
Created September 21, 2012 16:46
jQuery: Init file
(function($) {
// Execute when page is loaded
$(function() {
});
})(jQuery);