This file contains 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
" vim: fdm=marker: | |
" Recommended for vim >= 7; no guarantee of compatibility with earlier versions | |
" Lucas Oman <[email protected]> | |
" --enable-rubyinterp --prefix=/usr --enable-ruby | |
" Get latest from: http://github.com/lucasoman/Conf/raw/master/.vimrc | |
" load pathogen | |
call pathogen#runtime_append_all_bundles() | |
filetype off | |
syntax on |
This file contains 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
#define MAX_BUFERROR 255 | |
#define COMMAND_ERROR printf | |
#define NEWEXCEPTION(mess, code) { \ | |
char err[MAX_BUFERROR]; \ | |
sprintf(err,mess". CODE: %d.\n", code);\ | |
COMMAND_ERROR (err);\ | |
fflush(NULL);\ | |
} |
This file contains 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
char* Machine::User2System(int virtAddr, int limit) | |
{ | |
int i; | |
int ch; | |
char* kernelBuf = NULL; | |
kernelBuf = new char[limit+1]; | |
if (kernelBuf == NULL) | |
{ | |
return kernelBuf; | |
} |
This file contains 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
/* * * * * * * * * * * * * * * * * * * * | |
* System and Standard Library header file | |
* Author: DangKhoaSDC. | |
* * * * * * * * * * * * * * * * * * * * / | |
#ifndef _STANDARDLIBS | |
#define _STANDARDLIBS | |
#ifndef __cplusplus | |
#error "Must use C++ compiler!!" |
This file contains 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
#!/usr/bin/env bash | |
# Things to do after install ArchLinux (2012.12.01) | |
pacman --noconfirm -S sudo | |
# Enabled archlinuxfr repo | |
arch=$(uname -m) | |
sudo cp /etc/pacman.conf /etc/pacman.conf.bak | |
echo "" >> /etc/pacman.conf | |
echo "[archlinuxfr]" >> /etc/pacman.conf |
This file contains 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 "opencv2/core/core.hpp" | |
#include "opencv2/features2d/features2d.hpp" | |
#include "opencv2/highgui/highgui.hpp" | |
#include "opencv2/nonfree/nonfree.hpp" | |
using namespace cv; | |
static void help() | |
{ |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.
This file contains 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
jQuery('.question-rankings').each(function(){ var choices = $(this).find('input'); | |
var index = Math.floor(Math.random() * 3 + 1) + 1; | |
choices.get(index).checked = true; | |
}); | |
jQuery('.question-answers').each(function(){ | |
var choices = $(this).find('input'); | |
var index = Math.floor(Math.random() * 2 + 2); | |
choices.get(index).checked = true; | |
}); |
OlderNewer