Skip to content

Instantly share code, notes, and snippets.

Mauvis Ledford krunkosaurus

  • San Francisco, CA
Block or report user

Report or block krunkosaurus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am krunkosaurus on github.
  • I am krunkosaurus ( on keybase.
  • I have a public key ASBAVSysEP2TPa9nladLOQG-k7xjyLySMV4553-vXXlHIwo

To claim this, I am signing this object:

View hasleapyear.js
function hasLeapYear(year){
if (year % 400 === 0){
return true;
}else if (year % 100 === 0){
return false;
}else if (year % 4 === 0){
return true;
return false;
krunkosaurus / getdaysofmonth.js
Created Sep 6, 2012
Get days of a month of a year.
View getdaysofmonth.js
// Arguments are NOT 0-based.
function getDaysOfMonth(yearInt, monthInt){
return new Date(yearInt, monthInt, 0).getDate();
// Days of month for February 2011
getDaysOfMonth(2011, 2);
// 28
// Days of month for February 2012
View gist:799393
<div id="full-body">
<div id="main-body">
<div class="side"></div>
<div class="main"></div>
<div id="footer-body">
<div class="side"></div>
<div class="main"></div>
View emacs window check
;; load these only if using GUI emacs
(if (eq window-system 'x)
;; disables scrollbar
(scroll-bar-mode -1)
(menu-bar-mode -1)
;; disable the top toolbar
(tool-bar-mode -1)
(display-battery-mode 1))
You can’t perform that action at this time.