This file contains hidden or 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
(function() { | |
// Pt. I - Put this near the top of the head to append JQuery (In case you need doc.ready or whatnot). | |
var pageDepth = 0, relPath; | |
for (var path = location.pathname, len = path.length, c = 0; c < len; ++c) | |
if (path[c] === '/') | |
pageDepth += 1; |
This file contains hidden or 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
Show hidden characters
{ | |
"cmd": ["cc -std=c11 -Wall ${file} && ./a.out"], | |
// Tells Sublime to only trigger for C files, | |
// since it wants to use g++ for C for some reason... | |
"selector": "source.c", | |
"working_dir": "${file_path}", | |
"shell": true | |
} |
This file contains hidden or 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
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement | |
function makeTable(data, exclude) { | |
var tbl = document.createElement('table'), | |
thead = tbl.createTHead(), | |
thead_row = thead.insertRow(), | |
exclude = exclude || []; | |
if (Array.isArray(data) && data.length >= 1) { |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include "mysql.h" | |
// sudo gcc -Wall -std=c11 -I/usr/include/mysql -shared word_uc.c -o /usr/lib/mysql/plugin/word_uc.so -fPIC | |
my_bool word_uc_init(UDF_INIT *initid, UDF_ARGS *args, char *message) | |
{ |
This file contains hidden or 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
package main | |
import ( | |
"os" | |
"os/exec" | |
"log" | |
"fmt" | |
) | |
func main() { |
This file contains hidden or 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
#[link(name = "wdsutil_boot_prog", vers = "0.0.0")]; | |
fn main() { | |
use std::{io, os, run}; | |
let argv : ~[~str] = os::args(); | |
let argc : uint = argv.len(); | |
let stderr : @io::Writer = io::stderr(); |
This file contains hidden or 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
// Tested on Rust 0.8 on OS X. | |
fn main() { | |
use std::*; | |
// This include is for the POSIX dirent style methods like "is_dir()". | |
use std::rt::io::file::*; | |
// Returns a "Path" struct (kind of like the var name, OMG!) |
This file contains hidden or 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
####################################### | |
# https://github.com/github/gitignore # | |
####################################### | |
#----------# | |
# Archives # | |
#----------# | |
# It's better to unpack these files and commit the raw source because | |
# git has its own built in compression methods. |
This file contains hidden or 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
#include <cstdlib> // printf | |
#include <iostream> | |
#include <string> | |
#include <boost/filesystem.hpp> | |
#include <boost/system/error_code.hpp> | |
// Included due to the MinGW bug which inhibits std::to_string() from being invoked. | |
// e.g. lexical_cast<string>(example_numeric_var) | |
#include <boost/lexical_cast.hpp> |
This file contains hidden or 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 | |
class StdOut | |
{ | |
public static function write() | |
{ | |
$argv = func_get_args(); | |
$dest = ''; | |
foreach ($argv as $arg) { |
OlderNewer