Skip to content

Instantly share code, notes, and snippets.

View TexRx's full-sized avatar
🏠
Working from home

Bobbie Tables TexRx

🏠
Working from home
  • Austin, TX
View GitHub Profile
@TexRx
TexRx / prompt_paradox_setup
Created June 5, 2015 07:21
Paradox prompt for zprezto
# Load dependencies.
pmodload 'helper'
CURRENT_BG='NONE'
SEGMENT_SEPARATOR='⮀'
# Begin a segment
# Takes two arguments, background and foreground. Both can be omitted,
# rendering default background/foreground.
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
* Source: https://github.com/wycats/handlebars.js/issues/82
/**
* BrowserSync config: serve static assets, and proxy the HTML
*
* Let's say we have the codebase for the front-end of a website,
* and we want to develop CSS/JS or debug against the HTML of
* a remote development, staging or production server.
*
* Using BrowserSync (2.4 needed), we want to serve to our browser(s):
* - the distant HTML pages and content images from the server
* - local static assets (including or changes)
@TexRx
TexRx / SassMeister-input-HTML.html
Last active August 29, 2015 14:21
Generated by SassMeister.com.
<header class="header" role="banner">
<div class="header-wrapper">
<h1 class="brand">One|North</h1>
</div>
</header>
<div class="container">
<input class="nav-toggle" type="checkbox" id="thebox" />
<label class="nav-toggle__label" for="thebox">click to change state</label>
<div class="dashboard is-shifted">
@TexRx
TexRx / SassMeister-input-HTML.html
Last active August 29, 2015 14:21
Generated by SassMeister.com.
<header class="header" role="banner">
<div class="header-wrapper">
<h1 class="brand">One|North</h1>
</div>
</header>
<div class="container">
<div class="dashboard is-shifted">
@TexRx
TexRx / SassMeister-input.scss
Created April 26, 2015 00:35
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// Modified version of Harry Roberts' width mixin.
// https://github.com/csswizardry/discovr/blob/master/css/_trumps.widths.scss
// A mixin to spit out our width classes. Pass in the total number of columns
// we want to have, and an optional suffix for responsive widths. The widths are
@TexRx
TexRx / GoogleAnalytics-Universal-Script-Example.md
Created April 24, 2015 18:15
Update Google Analytics (Universal) async script example

Latest updated version:

<script>
  ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
  ga('create','UA-XXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
@TexRx
TexRx / osx-setup.md
Last active August 29, 2015 14:16 — forked from zenorocha/.hyper.js

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

@TexRx
TexRx / lazypipe.js
Last active August 29, 2015 14:16 — forked from OverZealous/lazypipe.js
var combine = require('stream-combiner');
function lazypipe() {
var createPipeline = function(tasks) {
var build = function() {
return combine.apply(null, tasks.map(function(t) {
return t.task.apply(null, t.args);
}));
};
build.pipe = function(task) {
//<editor-fold desc="Node Requires, gulp, etc">
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
csso = require('gulp-csso'),
debug = require('gulp-debug'),
footer = require('gulp-footer'),
gutil = require('gulp-util'),
gzip = require('gulp-gzip'),