Skip to content

Instantly share code, notes, and snippets.

View githubhy's full-sized avatar
💭
I may be slow to respond.

Asher githubhy

💭
I may be slow to respond.
View GitHub Profile
@githubhy
githubhy / toggleiTerm2icon
Last active March 27, 2016 12:43 — forked from lg0/toggleiTerm2icon
show/hide iTerm2 Dock icon
# toggle iTerm Dock icon
# add this to your .bash_profile or .zshrc
function toggleiTerm() {
pb='/usr/libexec/PlistBuddy'
iTerm='/Applications/iTerm.app/Contents/Info.plist'
echo "Do you wish to hide iTerm in Dock?"
select ync in "Hide" "Show" "Cancel"; do
case $ync in
'Hide' )
@githubhy
githubhy / index.jade
Created March 22, 2016 02:55
Microsoft JQuery CDN.
script(src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.1.min.js")
@githubhy
githubhy / split.js
Created March 22, 2016 02:45
Split sentence in HTML
var newText = $( "p" ).text().split( " " ).join( "</span> <span>" );
newText = "<span>" + newText + "</span>";
$( "p" )
.html( newText )
.find( "span" )
.hover(function() {
$( this ).addClass( "hilite" );
}, function() {
$( this ).removeClass( "hilite" );
@githubhy
githubhy / gulpfile.js
Created March 22, 2016 01:53
gulp+express+nodemon+browerSync -- Restart express server followed by liveload
'use strict';
var gulp = require('gulp');
var bs = require('browser-sync');
var nodemon = require('gulp-nodemon');
gulp.task('default', ['browser-sync'], function () {
});