Skip to content

Instantly share code, notes, and snippets.

View themightychris's full-sized avatar

Chris Alfano themightychris

View GitHub Profile
<?php
// settings
$slackHook = 'YOUR_SLACK-ISSUED_WEBHOOK_URL_HERE';
$discourseHost = 'YOUR_DISCOURSE_HOSTNAME';
// decode webhook payload
list($post, $topic, $user) = json_decode(file_get_contents('php://input'), true);
@themightychris
themightychris / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@themightychris
themightychris / Goto.cs
Created September 23, 2012 19:00 — forked from TryJSIL/Goto.cs
Goto
using System;
public static class Program {
public static void Main (string[] args) {
int i = 0;
a:
i += 1;
Console.WriteLine("a");
for (; i < 16; i++) {