This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title></title> | |
<style type="text/css" media="all"> | |
/* Mobile-specific Styles */ | |
@media only screen and (max-width: 480px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('.checkall').on('click', function () { | |
$(this).closest('fieldset').find(':checkbox').prop('checked', this.checked); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
caffeinate -t 3600 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmset -g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// amount to offset | |
var offset = 80; | |
// offsets the anchor link by the desired amount from the top of the browser | |
$('.navbar li a').click(function(event) { | |
event.preventDefault(); | |
$($(this).attr('href'))[0].scrollIntoView(); | |
scrollBy(0, -offset); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -h --max-depth=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getDate() Returns the day of the month (from 1-31) | |
getDay() Returns the day of the week (from 0-6) | |
getFullYear() Returns the year (four digits) | |
getHours() Returns the hour (from 0-23) | |
getMilliseconds() Returns the milliseconds (from 0-999) | |
getMinutes() Returns the minutes (from 0-59) | |
getMonth() Returns the month (from 0-11) | |
getSeconds() Returns the seconds (from 0-59) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h2:before { | |
display: block; | |
content: " "; | |
margin-top: -285px; | |
height: 285px; | |
visibility: hidden; | |
} |