This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) { |