Skip to content

Instantly share code, notes, and snippets.

View hunterbridges's full-sized avatar

Hunter Bridges hunterbridges

View GitHub Profile
@hunterbridges
hunterbridges / twitch_irc.md
Last active May 1, 2024 11:39
How to connect to Twitch with an IRC client (As of Oct 2015)

HOWTO

Connect to Twitch.tv chat with an IRC client

  1. Visit this website and get an OAuth Token for your Twitch account.
  2. Add a server to your IRC client with this configuration, using your OAuth Token as the server password. Make sure it is not using SSL.
{
  address = "irc.twitch.tv";
chatnet = "Twitch";
@hunterbridges
hunterbridges / README.md
Last active June 21, 2023 18:05
Readme for @ModeAttract
// ==UserScript==
// @name Hide FB Chat button
// @description Hides FB chat button and sidebar
// @include *.facebook.com/*
// @exclude *.facebook.com/ajax/*
// @grant GM_getValue
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
//
document.addEventListener('DOMSubtreeModified', function() {
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct Cell {
int by;
} Cell;
int main(int argc, char *argv[]) {
int row = 5;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct Cell {
int by;
} Cell;
int main(int argc, char *argv[]) {
int row = 5;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct Cell {
int by;
} Cell;
int main(int argc, char *argv[]) {
int row = 5;
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
struct Stack {
int length;
void *members[SHRT_MAX];
};
struct Stack *Stack_create()
<% content_for(:javascripts) do %>
<script type="text/javascript">
$(document).ready(function() {
$("select").selectBox();
});
</script>
<% end %>
<script type="text/javascript">
$(document).ready(function() {
$("select").selectBox();
});
</script>
<!-- Script goes right before your closing body tag -->
</body>
+---------------------+---------------------+----------------+-------+---------------------------------------------------------------------+
| purchased_at | redeemed_at | days_to_redeem | COUNT | bar |
+---------------------+---------------------+----------------+-------+---------------------------------------------------------------------+
| 2011-10-19 21:07:04 | 2011-10-19 21:07:04 | 0 | 268 | ******************************************************************* |
| 2011-12-04 23:28:28 | 2011-12-05 03:07:35 | 1 | 135 | ********************************** |
| 2011-11-20 21:36:23 | 2011-11-22 12:47:39 | 2 | 53 | ************* |
| 2011-11-25 17:42:20 | 2011-11-28 19:16:05 | 3 | 46 | ************ |
| 2011-11-15 04:11:21 | 2011-11-19 18