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
# A simple Makefile alternative to using Grunt for your static asset compilation
#
## Usage
#
# $ npm install
#
# And then you can run various commands:
#
# $ make # compile files that need compiling
# $ make clean all # remove target files and recompile from scratch
@mixin disable-text-selection() {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@jasonmelgoza
jasonmelgoza / ready.html
Last active December 10, 2015 06:08
Get Ready
<script>
$(document).ready(function() {
});
</script>
@jasonmelgoza
jasonmelgoza / global.scss
Created October 3, 2012 23:56 — forked from jgillman/global.scss
My Reusable Sass Mixins
@mixin truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@mixin prefixify($style, $params) {
-webkit-#{$style}: $params;
-moz-#{$style}: $params;
-ms-#{$style}: $params;
@jasonmelgoza
jasonmelgoza / _960.scss
Created October 3, 2012 16:37
SASS adaptation of 960 GS
// SASS adaptation of 960 GS
// IMPORTANT: This adaption does not use Global Variables and thus requires that in the file you are importing these mixins into, you must first declare a function called grid_vars in which you define all your parameters. This allows us pass different starting variables to the mixins here and generate different layouts for different device sizes.
$separator:"-";
$container_width : grid_vars("container_width");
$col_count : grid_vars("col_count");
$col_gutter : grid_vars("col_gutter");
$col_width : ( $container_width / $col_count ) - $col_gutter;
@jasonmelgoza
jasonmelgoza / gist:3801280
Created September 28, 2012 17:58 — forked from tanepiper/gist:2039373
SASS mixins for roundcorners
// Example of a whole load of mixins to make round corners
// (including individual corners) easy to remember in SASS
@mixin roundcorners($radius) {
-moz-border-radius: $radius; // firefox
-webkit-border-radius: $radius; // safari/chrome
border-radius: $radius; // CSS3, works in IE9
}
@mixin roundcorner1($radius, $corner: "top-left") {
-moz-border-#{$corner}-radius: $radius ; // firefox
@jasonmelgoza
jasonmelgoza / General CSS formatting
Created August 22, 2012 19:22
General CSS and SCSS Comment formatting
# Normal CSS
/*
Filename
Description of the file and it's contents (sometimes followed by a table of contents)
*/
/* Section heading
-------------------------------------------------- */
@jasonmelgoza
jasonmelgoza / Rename Active Document.scpt
Created August 22, 2012 17:54 — forked from gruber/Rename Active Document.scpt
Rename Active BBEdit Document
tell application "BBEdit"
activate
set old_name to name of text window 1
set dialog_result to display dialog "" default answer (old_name) ¬
buttons {"Cancel", "Rename"} default button 2 ¬
with icon note ¬
with title "Rename Active Document"
if button returned of dialog_result = "Rename" then
set new_name to text returned of dialog_result
set d to active document of text window 1