Skip to content

Instantly share code, notes, and snippets.

View supermario's full-sized avatar
✌️

Mario Rogic supermario

✌️
View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@supermario
supermario / index.html
Last active August 29, 2015 14:13
SoundCloud React POC!
<!DOCTYPE html>
<html>
<head>
<title>Hello React</title>
<script src="http://fb.me/react-0.12.1.js"></script>
<script src="http://fb.me/JSXTransformer-0.12.1.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/jsx">

Keybase proof

I hereby claim:

  • I am supermario on github.
  • I am realmario (https://keybase.io/realmario) on keybase.
  • I have a public key whose fingerprint is 637E B6D2 434F 1B97 0910 7B41 0A6D D1E1 398F F347

To claim this, I am signing this object:

@supermario
supermario / build.sh
Last active August 29, 2015 14:12
Opalrb 0.6.3 to_n issue.
# Running this to get compiled opalrb js
opal -c test.rb > build/test.rb.js
@supermario
supermario / gist:5a3b4bac62e92e9c49a3
Created November 10, 2014 01:26
Sublime AlignTab Shortcut: Right align on first word (or first whitespace if no word found)
// Sublime Package: AlignTab
// Feature spec alignment
{
"keys": ["command+shift+a"], "command": "align_tab",
"args" : {"user_input" : "^\\s+[\\w]*/rrl"}
}
https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2
char *pStrings[1];
pStrings[0] = (char*)malloc(100);
pStrings[0][0] = "a";
// MarioRogic, mrog212
// Wed15-Bugle
// 29/07/09
// Lab02: analyse dna sequences
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int getLineCount(FILE * pFile);