Skip to content

Instantly share code, notes, and snippets.

View shiftregister-vg's full-sized avatar
🙃
Crunching bits

The Dev Formerly Known as Steve Good shiftregister-vg

🙃
Crunching bits
  • Universal Music Group | Corp IT
View GitHub Profile
@shiftregister-vg
shiftregister-vg / index.html
Created July 3, 2014 18:24
A simple shout box application written with Angular.js and Firebase (AngularFire)
<!DOCTYPE html>
<html ng-app="myapp">
<head lang="en">
<meta charset="UTF-8">
<title>AngularFire Demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="https://cdn.firebase.com/js/client/1.0.17/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.7.1/angularfire.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://www.firebase.com/css/example.css">
</head>
@shiftregister-vg
shiftregister-vg / edit.html
Created July 8, 2014 22:06
A Simple CMS written in Go that uses flat files as storage
<h1>{{.Title}}</h1>
<form action="/save/{{.Title}}" method="POST">
<div>
<textarea name="body" rows="20" cols="80">{{printf "%s" .Body}}</textarea>
</div>
<div>
<input type="submit" value="Save" />
</div>
</form>
@shiftregister-vg
shiftregister-vg / gist:683f387561dbcca3ce17
Last active August 29, 2015 14:11
mysql php connection
<?php
$mysql_host = 'localhost';
$mysql_user = 'root';
$mysql_pass = '';
$mysql_db = 'accounts';
$conn = mysql_connect ($mysql_host, $mysql_user, $mysql_pass);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace DothBot
{
static class NowPlaying
var mods = "buhrock, moobot, rodrigo_noopy, anarchyao, guinness123, fireryhawk, iliekmudkipss, nightbot, imbadude, befbo, cbenni, bajheera, deadlyabyss, eoindee, redserpant, amdy985, nfsbloody, glassen75, happypenguin, kashbryant, drkepper, highskore, fatezau, spideylover890, viyro, krackleff, nitro86sp, peillach1, dman2008, perpetualhero, katattack2, swilson14, azrael618, ryanhy, aszunna, bestfomert, sidgriff, jdmmiyaku, dewblackio2, wift3, klemez, zlegal, uskdara, tetris_chemist, cohih, fullcrackdown, narcoze, jlabonne, xanbot, synisterfx, magnusdarkforce, xxcompaqxx, collosi, tokoh, t174n, keyzam, aiiightlol, lolpowerhenk, noodlesandco, gamej06, littlebigbaby, glactusdcactus, drew_von_doom, doompoke, rethan2, glaricion, sovietcrash, iamthemann, partyboy81, youngbulker, idafreddy, seldric, mashjdw, teyon, 273paine, abel473, obi124, izl, shadow1pirst, xfallendevilx, thedoctor27, georges45, hibarikyoyaz, neville62, 13lacklegion, donkaypunch, mannysnook, loominos, tenthirtytwo, lucciuw, sasabo, mamatea00, tuxe
@shiftregister-vg
shiftregister-vg / gist:42a6c159bdeebf01bd8c
Last active August 29, 2015 14:19
In browser script to unmod a list of mods
var mods = "buhrock, moobot, rodrigo_noopy, anarchyao, guinness123, fireryhawk, iliekmudkipss, nightbot, imbadude, befbo, cbenni, bajheera, deadlyabyss, eoindee, redserpant, amdy985, nfsbloody, glassen75, happypenguin, kashbryant, drkepper, highskore, fatezau, spideylover890, viyro, krackleff, nitro86sp, peillach1, dman2008, perpetualhero, katattack2, swilson14, azrael618, ryanhy, aszunna, bestfomert, sidgriff, jdmmiyaku, dewblackio2, wift3, klemez, zlegal, uskdara, tetris_chemist, cohih, fullcrackdown, narcoze, jlabonne, xanbot, synisterfx, magnusdarkforce, xxcompaqxx, collosi, tokoh, t174n, keyzam, aiiightlol, lolpowerhenk, noodlesandco, gamej06, littlebigbaby, glactusdcactus, drew_von_doom, doompoke, rethan2, glaricion, sovietcrash, iamthemann, partyboy81, youngbulker, idafreddy, seldric, mashjdw, teyon, 273paine, abel473, obi124, izl, shadow1pirst, xfallendevilx, thedoctor27, georges45, hibarikyoyaz, neville62, 13lacklegion, donkaypunch, mannysnook, loominos, tenthirtytwo, lucciuw, sasabo, mamatea00, tuxe
@shiftregister-vg
shiftregister-vg / feels-good.js
Last active September 2, 2015 20:55
Static properties in ES6 (read only)
export default class MyClass {
static get someProperty() {
return { ... };
}
doSomething() {
...
}
}
package com.lintpanzer.managers
{
import com.asfusion.mate.events.Dispatcher;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
public class ManagerBase extends EventDispatcher
{
<g:if test="${ grails.util.GrailsUtil.getEnvironment().equals(org.codehaus.groovy.grails.commons.GrailsApplication.ENV_PRODUCTION) }">
<!-- Markup to include ONLY when in production -->
</g:if>
<g:if env="production">
<!-- Markup to include ONLY when in production -->
</g:if>