Skip to content

Instantly share code, notes, and snippets.

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

Bobbie Tables TexRx

🏠
Working from home
View GitHub Profile
@TexRx
TexRx / SassMeister-input.scss
Created December 16, 2016 18:05
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var libs = ["underscore", "jquery"];
gulp.task("vendor", function () {
var b = browserify();
libs.forEach(function (lib) {
@TexRx
TexRx / SassMeister-input-HTML.html
Created December 14, 2015 22:51
Generated by SassMeister.com.
<div>
<button class="button" type="button">My Button</button>
</div>
@TexRx
TexRx / gulpfile.js
Last active August 29, 2015 14:26 — forked from PiiXiieeS/gulpfile.js
expressjs-nodemon-browsersync
'use strict';
var gulp = require('gulp'),
browserSync = require('browser-sync'),
nodemon = require('gulp-nodemon');
// we'd need a slight delay to reload browsers
// connected to browser-sync after restarting nodemon
var BROWSER_SYNC_RELOAD_DELAY = 500;
@TexRx
TexRx / resize.sh
Created June 25, 2015 06:20
use sips to resize images in folder - bash func
resize () {
local ext="${1:?Usage: resize-all <png|jpg|jpeg|gif> 800}"
local size="${2:-800}"
for f in *.$ext ; do sips -Z $size $f ; done
}
@TexRx
TexRx / iconset.sh
Created June 25, 2015 04:42
quick and dirty icon set creation
i use `sips` for quick-and-dirty iconset creation with Xcode (new high-resolution icons from a PNG):
#!/bin/bash
i=0
sizes=(512 256 128 64 32 16)
iconset="${1%.*}".iconset
@TexRx
TexRx / obj-extend-recursive.js
Last active August 29, 2015 14:22
Recursive Object Extend
var extend = function(output) {
output = output || {};
// no args so just return output
if ( arguments.length < 2) return output;
// loop over arguments and recurse if prop is an object
for (var i = 1, len = arguments.length; i < len; i++) {
var obj = arguments[i];
@TexRx
TexRx / gist.md
Last active August 29, 2015 14:22 — forked from benbalter/gist.md

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.

@TexRx
TexRx / wifi-spark-alias.bash
Last active February 3, 2017 15:26
Wifi strength (with spark) in the console
# objective:
# type wifi in the console and get a pretty little graph of your current wifi strength
# usage:
# > wifi
# output:
# ▁▃▅█ 59
# first install spark
brew install spark
@TexRx
TexRx / prompt_peepcode_setup
Created June 5, 2015 07:24
Peepcode zprezto prompt
#
# A simple theme from PeepCode.
# http://peepcode.com/blog/2012/my-command-line-prompt
#
# Authors:
# Geoffrey Grosenbach <boss@topfunky.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Screenshots:
# http://i.imgur.com/LhgmW.png