Skip to content

Instantly share code, notes, and snippets.

@guyjin
guyjin / disable bin-links
Created June 3, 2014 05:33
Disable bin-links in NPM on Vagrant VM in Windows
.bg {
position: fixed;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
img {
position: absolute;
top: 0;
@guyjin
guyjin / classWeatherHTML
Last active August 29, 2015 14:04
class Weather Widget HTML
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>class weather</title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
@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');
})
@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 / 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>
sudo npm update npm -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
//Found in David Walsh blog http://davidwalsh.name/upgrade-nodejs
@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