Skip to content

Instantly share code, notes, and snippets.

View nickhudkins's full-sized avatar

Nick Hudkins nickhudkins

View GitHub Profile
(function (g) {
var h = function (a) {
var b = a.oop.createProxy(a),
c = [];
b.addMessageListener = function (a, d) {
return this.baseObject.addMessageListener(a, d) ? (c.push({
name: a,
listener: d
}), !0) : !1
};
@nickhudkins
nickhudkins / index.html
Created May 6, 2014 02:21
A Pen by Nick Hudkins.
<div id="contentguy"></div>
@nickhudkins
nickhudkins / 500 :(
Created March 4, 2014 23:05
500 for JIRA folks
{"status-code":500,"stack-trace":"java.lang.NullPointerException
com.atlassian.jira.projectconfig.rest.WorkflowSchemeRestHelper$SimpleWorkflow.<init>(WorkflowSchemeRestHelper.java:401)
com.atlassian.jira.projectconfig.rest.WorkflowSchemeRestHelper$ResponseDataBuilder.addWorkflowData(WorkflowSchemeRestHelper.java:276)
com.atlassian.jira.projectconfig.rest.WorkflowSchemeRestHelper$ResponseDataBuilder.build(WorkflowSchemeRestHelper.java:184)
@nickhudkins
nickhudkins / gist:7140599
Last active December 26, 2015 10:59
JFC.
<script type="text/javascript">
$(function() {
var langCode;
// Add lang button if it exist
if ('en' == 'es') {
langCode = 'es_MX';
var url = window.location.href.replace('cuidadodesalud.gov','healthcare.gov').replace('/es/','/');
$('.span1 a.btn-mini.btn-lang, #header .lang').removeClass('nodisplay').attr('href', url);
}
@nickhudkins
nickhudkins / gist:5292702
Last active December 15, 2015 16:59
Flask -> Django Regex
Movin those static files over. (SUBLIME FRIENDLY)
===============================
search: "{{ url_for('static', filename='([\w\/.-_]+)') }}"
replace: "{% static '$1' %}"
@nickhudkins
nickhudkins / silly_goose
Created July 19, 2012 04:43
Gist Kidding...
Hello This is my post
@nickhudkins
nickhudkins / Modal!
Created October 21, 2011 19:49
Lots of borders
div.modal{
width:400px;
height:700px;
background: rgba(255,255,255,0.2);
margin:100px auto;
border-radius:10px;
border:1px solid rgba(255,255,255,.4);
position:relative;
}
@nickhudkins
nickhudkins / create_env.sh
Created September 6, 2011 06:14
Create Env!
#!/bin/sh
USERNAME="shl"
USER_FULL_NAME="Deployment User"
PROJECT_NAME="shl"
DOMAIN_NAME="shl.gramophone.com"
clear
#edit sudoers
if [ -z "$1" ]; then