Skip to content

Instantly share code, notes, and snippets.

View killerbytes's full-sized avatar

Joel Carlos killerbytes

  • SMILEUPPS-EEAA4883DF
  • SMILEUPPS-EEAA4883DF
View GitHub Profile
@killerbytes
killerbytes / gist:2027288
Created March 13, 2012 06:41
JS: console.js
var con = function(obj){
var wrapper,logger,ul;
if($('#console-logger').length !=0){
wrapper = $('#console-logger');
}else{
wrapper = $('<div>',{'id':'console-logger', 'style':'text-align:center;padding:5px;cursor:move;position:absolute;top:0;left:0;background-color:#FFF;border:1px solid #999'}).append('CONSOLE');
logger = $('<div>',{'style':'text-align:left;border:1px solid #d9d9d9;font-size:10px;font-family:"Arial";overflow:auto;height:100px;width:200px '});
@killerbytes
killerbytes / style.scss
Created March 13, 2012 06:35
CSS: HTML5 Boilerplate
/*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
@killerbytes
killerbytes / elements.scss
Created March 13, 2012 06:34
SASS: Elements
@mixin block{
display: block;
margin: 0;
padding: 0;
&>li{
display: block;
margin: 0;
padding: 0;
list-style-type: none;
}
@killerbytes
killerbytes / gist:2027272
Created March 13, 2012 06:38
HTML: default
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="css/reset.css" media="all">
<link rel="stylesheet" type="text/css" href="css/default.css" media="all">
</head>
<body>
</body>
@killerbytes
killerbytes / gist:2894501
Created June 8, 2012 08:38
Javascript: jQuery 1.7.2
/*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j
@killerbytes
killerbytes / gist:2894489
Created June 8, 2012 08:34
JavaScript: Validation
/**
* jQuery Validation Plugin 1.9.0
*
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://docs.jquery.com/Plugins/Validation
*
* Copyright (c) 2006 - 2011 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
@killerbytes
killerbytes / reset.css
Created June 15, 2012 04:08 — forked from terkel/reset.css
CSS: Reset
/*!
* CSS Reset 2011-12-25
* https://gist.github.com/gists/1360380
*
* Author: Takeru Suzuki, http://terkel.jp/
* License: Public domain
*
* Inspired by Normalize.css: http://necolas.github.com/normalize.css/
*/
@killerbytes
killerbytes / gist:3050623
Created July 5, 2012 02:14
Javascript: delay
var delay = (function() {
var timer = 0;
return function(callback, ms) {
clearTimeout(timer);
timer = setTimeout(callback, ms);
};
})();
@killerbytes
killerbytes / gist:3280922
Created August 7, 2012 02:49
CSS: Image Replacement
//image replacement
.ir {
font: 0/0 "image replace";
position: relative;
display: inline-block;
background-repeat: none;
}
@killerbytes
killerbytes / gist:3485284
Created August 27, 2012 03:30 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt