Skip to content

Instantly share code, notes, and snippets.

@anthem001
anthem001 / isGovDown.ps1
Last active December 24, 2015 10:39
Powershell version of Government down checker (original: http://t.co/Jf0LPYfMiU)
$webClient = new-object System.Net.WebClient
$webClient.Headers.Add("user-agent", "Is Govt Down Checker")
$output = ""
$output = $webClient.DownloadString("http://usa.gov")
if ($output -like "*Due to a lapse in funding, the U.S. federal government has shut down*") {
"Government is still down"
@anthem001
anthem001 / gist:6616185
Created September 18, 2013 21:44
Chrome Theme - Take from MNML theme and modified.
/**********************************************/
/*
/* mnml Theme for Chrome DevTools by Michael P. Pfeiffer
/*
/* Based on a Gist by Ben Truyman. Further attr:
/* https://gist.github.com/3040634
/*
/**********************************************/
#-webkit-web-inspector ::selection {
background: #888;
@anthem001
anthem001 / JS: Gruntfile Skeleton
Created April 4, 2013 17:56
Skeleton for Gruntfile
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
});
// Load the plugin that provides the "uglify" task.
//grunt.loadNpmTasks('grunt-contrib-uglify');
@anthem001
anthem001 / JavaScript: boilerplate-backbone.js
Last active December 15, 2015 12:09
Boilerplate Backbone.js
(function () {
window.App = {
Models: {},
Collections: {},
Views: {},
Router: {}
};
@anthem001
anthem001 / JavaScript: dateParser.js
Last active December 14, 2015 09:29
Simple JavaScript date parser
var dateparsed = function(){
this.date = new Date();
};
dateparsed.prototype = function(){
var getFullDateTime = function(){
return this.date;
},
getFullMonth = function(){
var month=new Array();