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 the TorqueBox configuration file. Refer to the TorqueBox | |
# documentation at http://torquebox.org/documentation/current/ | |
# for all configuration options. | |
ruby: | |
version: 1.9 | |
web: | |
context: "/" |
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
#ifdef _MSC_VER | |
#include <boost/config/compiler/visualc.hpp> | |
#endif | |
#include <boost/property_tree/ptree.hpp> | |
#include <boost/property_tree/json_parser.hpp> | |
#include <boost/foreach.hpp> | |
#include <cassert> | |
#include <exception> | |
#include <iostream> | |
#include <sstream> |
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
require 'java' | |
require 'jruby/core_ext' | |
class MyService | |
def hello(who) | |
"Hello #{who}" | |
end | |
end | |
MyService.add_class_annotations( |
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
deb http://packages.linuxmint.com/ maya main upstream import | |
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse | |
deb http://archive.canonical.com/ubuntu/ precise partner | |
deb http://packages.medibuntu.org/ precise free non-free |
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
sudo apt-get install linuxmint-keyring medibuntu-keyring |
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
gpg --keyserver subkeys.pgp.net --recv-key 2EBC26B60C5A2783 | |
gpg --keyserver subkeys.pgp.net --recv-key 3EE67F3D0FF405B2 |
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
require 'java' | |
require 'lib/java/poi/poi-3.9/poi-3.9-20121203.jar' | |
java_import 'org.apache.poi.poifs.filesystem.POIFSFileSystem' | |
java_import 'org.apache.poi.hssf.usermodel.HSSFCell' | |
java_import 'org.apache.poi.hssf.usermodel.HSSFWorkbook' | |
java_import 'org.apache.poi.hssf.usermodel.HSSFCellStyle' | |
java_import 'org.apache.poi.hssf.usermodel.HSSFDataFormat' | |
java_import 'java.io.FileInputStream' | |
java_import 'java.util.Date' |
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 <iostream> | |
#include <string> | |
#include <boost/range/counting_range.hpp> | |
typedef boost::iterator_range<boost::counting_iterator<int> > counting_range_int_t; | |
counting_range_int_t operator "" _ri(char const* wtf, std::size_t len) | |
{ | |
static std::istringstream parse; | |
parse.clear(); |
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 <iostream> | |
#include <string> | |
#include <boost/range/counting_range.hpp> | |
typedef boost::iterator_range<boost::counting_iterator<int> > counting_range_int_t; | |
counting_range_int_t operator "" _ri(char const* wtf, std::size_t len) | |
{ | |
static std::istringstream parse; | |
parse.clear(); |
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 <functional> | |
template <typename T> | |
struct Property | |
{ | |
T value; | |
std::function<T()> getter; | |
std::function<void(T)> setter; | |
operator T(){ return getter(); } | |
void operator= (T wtf){ setter(wtf); } |