Skip to content

Instantly share code, notes, and snippets.

View c0bra's full-sized avatar

Brian Hann c0bra

View GitHub Profile
@lotterfriends
lotterfriends / platform-service.js
Created September 21, 2016 12:43
ionic view issue 29
'use strict';
(function() {
angular.module('app.services').service('platformService', [
function() {
var IONIC_APP_ID = 'xxx00xxx';
this.isIonicWebView = function() {
return window.location.href.indexOf('com.ionic.viewapp') > -1 || window.location.href.indexOf(IONIC_APP_ID) > -1;
@cjwfuller
cjwfuller / gist:5524942
Last active May 17, 2016 16:44
Get external IP address in Node.js
var ipModule = (function() {
// Private stuff
var my = {};
var options = {
hostname: 'jsonip.com'
};
// Get the external IP address of this server using the JSON IP server
my.getIP = function(cb) {
@crmckenzie
crmckenzie / gist:4004375
Last active October 12, 2015 09:08
Powershell script to ilmerge a project. Useful in TeamCity
<#
.SYNOPSIS
IlMerges an assembly with its dependencies. Depends on nuget being installed in the PATH.
.PARAMETER targetProject
The name of the project to be ilmerged
.PARAMETER outputAssembly
The name of the ilmerged assembly when it is created
@c0bra
c0bra / autoagegate.user.js
Created March 15, 2012 16:14
Greasemonkey script to auto-bypass brewing company website age gates
// ==UserScript==//
// @name Brewing Company Site Auto Age Gate
// @namespace https://gist.github.com/2045030
// @description Automatically bypass brewing company website age gates
// @include http://*newbelgium.com*
// @include http://*stonebrew.com*
// @include http://*boulevard.com*
// @include http://*sierranevada.com*
// @include http://*samueladams.com*
// @include http://*lagunitas.com*