Skip to content

Instantly share code, notes, and snippets.

@guyjin
guyjin / gulpfile.js
Last active May 17, 2017 18:59
simple gulp setup
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var cssimport = require("gulp-cssimport");
var url = require("url");
var sass = require('gulp-sass');
var gutil = require('gulp-util');
var wait = require('gulp-wait');
// Static Server + watching scss/html files
gulp.task('serve', function() {
@guyjin
guyjin / gist:2d4f02aee09958279b05
Created March 24, 2016 16:26
git ignore rules for pruning down node_modules
node_modules/**/spec
node_modules/**/test
node_modules/**/tests
node_modules/**/example
node_modules/**/examples
node_modules/**/demo
node_modules/**/docs
node_modules/**/bench
@guyjin
guyjin / doskey.md
Created March 18, 2016 13:43 — forked from vladikoff/doskey.md
Setup Persistent Aliases & Macros in Windows Command Prompt (cmd.exe) using DOSKey

Setup Persistent Aliases & Macros in Windows Command Prompt (cmd.exe) using DOSKey

Saved from Archive.org, Date: May 14, 2010 Author: Jesse Webb

http://web.archive.org/web/20140330024520/http://devblog.point2.com/2010/05/14/setup-persistent-aliases-macros-in-windows-command-prompt-cmd-exe-using-doskey/

Our development machines here at Point2 are not standardized; we have a mixture of Windows XP, 7, and Mac OSX/Unix computers. I find myself constantly switching back and forth between command prompt interfaces when pair programming. As a result, I catch myself using “ls” to list a directories contents regardless of what system I am on. I am currently using a Windows XP machine for my developer box and I wanted to setup an alias to the “ls” command to actually perform a “dir”. Here is how I accomplished it…

There is a command available in a Window’s shell that let’s you “alias” command to whatever you please: DOSKey. It allows you to create “macros” to execute one or more other commands with a custom nam

@guyjin
guyjin / gist:5ae68040bb1704410872
Created March 30, 2015 16:42
delete files in Win7 with filenames/paths that are to long.
mkdir empty_dir
robocopy empty_dir the_dir_to_delete /s /mir
rmdir empty_dir
rmdir the_dir_to_delete
taken from:
http://superuser.com/a/467814
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
//Found in David Walsh blog http://davidwalsh.name/upgrade-nodejs
sudo npm update npm -g
@guyjin
guyjin / index.html
Created August 13, 2014 19:09
A Pen by Ben Vaughan.
<div class="container">
<div class="menu">
<div class="trigger">
<span class="hamburger">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="title">menu</span>
</span>
</div>
@guyjin
guyjin / gist:22fc65513b96f518b7ee
Last active August 29, 2015 14:04
css for classWeather widget
body {
overflow-y: scroll;
}
.panel {
margin-top: 3em;
-webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
-o-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
@guyjin
guyjin / gist:e559319f2a516612e705
Last active August 29, 2015 14:04
js for classWeather Widget
$(function() {
$('.col-md-4').draggable();
$('.panel-heading').on('mousedown',function(){
$('.panel').css('cursor','move');
});
$('.panel').on('mouseup', function() {
$(this).css('cursor','default');
})