Skip to content

Instantly share code, notes, and snippets.

View benwaffle's full-sized avatar
🍝
best spaghetti in town

Ben Iofel benwaffle

🍝
best spaghetti in town
View GitHub Profile
@benwaffle
benwaffle / accel.vala
Created June 14, 2016 04:08 — forked from SkyzohKey/accel.vala
This sample code permits to make application-wide keyboard shortcuts using AccelGroup and Action Signals in Vala.
[Signal (action = true)]
private signal void change_chat_up ();
[Signal (action = true)]
private signal void change_chat_down ();
public MainWindow () {
this.init_keyboard_shortcuts ();
}
private void init_keyboard_shortcuts () {
@benwaffle
benwaffle / prob_benchmark.h
Last active August 29, 2015 14:07 — forked from Prince781/prob_benchmark.h
benchmark flip() and flop()
#ifndef _PROB_BENCHMARK_H_
#define _PROB_BENCHMARK_H_
#define _GNU_SOURCE
#include <stdio.h>
#include <time.h>
#define KNRM "\x1B[0m" // normal console color
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
@benwaffle
benwaffle / HSH_IRC.md
Last active August 29, 2015 14:00 — forked from kjpark/HSH_IRC.md

For those of you HS hackers familiar with IRC, go and join the conversation at #hshackers on freenode

##What is this IRC you speak of? Internet Relay Chat is an slightly older form of communication, but it is still widely used today. Many developer communities use these channels to quickly get help and/or discuss projects.

##Why join the convo? Because the HSH community is a group of brilliant individuals that needs answers and feedback - lots of it, and fast!

##How to get in on the convo The first thing that you will need is an IRC client, it'll connect you to all the networks and whatnot. A few popular clients: