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
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
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
BOX_NAME=vagrant-build | |
BASE_DIR="`pwd`/machines" | |
BOX_DIR="${BASE_DIR}/${BOX_NAME}" | |
mkdir -p ${BASE_DIR} | |
VBoxManage createvm --name "${BOX_NAME}" --ostype RedHat_64 --basefolder ${BASE_DIR} | |
VBoxManage registervm "${BOX_DIR}/${BOX_NAME}.vbox" | |
mkdir -p tmp |
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
KP = [ | |
[0,0,4,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,0,0,0,0,0,0,4,0,0,0], | |
[0,0,4,0,0,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,0,0,4,0,4,0,4,0], | |
[4,4,4,4,4,0,0,0,0,4,0,0,0,0,4,4,0,0,4,4,0,0,0,4,0,4,0,0], | |
[0,4,4,4,0,0,4,4,0,4,0,0,0,0,4,4,0,0,4,4,0,0,4,4,0,4,4,0], | |
[4,0,4,0,4,0,4,4,0,4,0,0,0,0,4,4,4,4,0,0,0,0,0,0,4,0,0,0], | |
[0,0,4,0,0,0,0,0,4,4,0,0,0,0,4,4,0,0,0,0,0,0,0,0,4,0,0,0], | |
[0,0,4,0,0,0,0,0,0,4,0,0,0,0,4,4,0,0,0,0,0,0,0,0,4,0,0,0]] |
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 |
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
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
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
/** | |
* This is a set of utility functions for character set conversions. | |
* | |
* @public | |
* @name GREUtils.Charset | |
* @namespace GREUtils.Charset | |
*/ | |
GREUtils.define('GREUtils.Charset'); | |
/** |
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
<html> | |
<body> | |
<a href="t:dispatch?controller=Main&command=shutdown"><h1>TEST</h1></a> | |
<body> | |
</html> |
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
PHP_ARG_ENABLE(test1, whether to enable my extension, | |
[ --enable-test1 Enable my extension]) | |
if test "$PHP_TEST1" = "yes"; then | |
AC_DEFINE(HAVE_TEST1, 1, [Whether you have my extension]) | |
PHP_NEW_EXTENSION(test1, test1.c, $ext_shared) | |
PHP_ADD_EXTENSION_DEP(test1, pcre) | |
fi |
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 <string.h> | |
#include "zmq_init.hpp" | |
#include "transient_session.hpp" | |
#include "named_session.hpp" | |
#include "socket_base.hpp" | |
#include "zmq_engine.hpp" | |
#include "io_thread.hpp" | |
#include "session.hpp" | |
#include "uuid.hpp" |
OlderNewer