Skip to content

Instantly share code, notes, and snippets.

View nmussy's full-sized avatar

Jimmy Gaussen nmussy

View GitHub Profile
@nmussy
nmussy / twitchplayspokemon-controller.js
Last active August 29, 2015 13:56
Just a quick set of keyboard shortcuts used for http://www.twitch.tv/twitchplayspokemon
var a = {
"37": "left",
"38": "up",
"39": "right",
"40": "down",
"65": "a",
"66": "b"
};
$(document).on('keypress', function(e) {
if(a[e.which])
@nmussy
nmussy / bubble.c
Last active December 27, 2015 19:19
int nbelem = cptelemlist(list);
Element * temp = list->head;
for(int i = 0; i < nbelem; ++i) {
for(int j = 0; j < nbelem - 1; j++) {
if(compare (list,temp, getmotnext(temp)))
swap(list,temp,getmotnext(temp));
temp = getmotnext(temp);
}
Element * temp = list->head;
}
#!/bin/bash
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
$('#torturial-example-foreground').torturial([
{
steps: [
{
popovers: [
{
text: [
"See that highlighted thing? ",
"I'd click that if I were you."
].join(''),
$('#torturial-example-advanced-changeOn').torturial([
{
steps: [
{
popovers: [
{
id: 'changeOn-popover',
text: [
"You can click me,<br />",
"but you can't kill me."
$('#torturial-example-delay').torturial([
{
steps: [
{
popovers: [
{
text: [
"Wait a few seconds. ",
"Five, to be precise."
].join(''),
$('#torturial-example-changeOn').torturial([
{
steps: [
{
popovers: [
{
id: 'changeOn-popover',
text: [
"<p>So let's start with a small one.</p>",
"<p>Just click me to close.</p>"