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 ruby | |
require 'sinatra' | |
require 'redis' | |
configure do | |
REDIS = Redis.new | |
end | |
get '/' do |
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
XML NAMESPACES | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | |
<!--Bean declarations go here--> |
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 | |
$HOME/google_appengine/dev_appserver.py \ | |
--address=0.0.0.0 \ | |
--high_replication \ | |
--use_sqlite \ | |
$* |
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
tab.size=4 | |
indent.size=4 | |
use.tabs=0 | |
tab.indents=1 | |
backspace.unindents=1 |
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 python | |
import random | |
from bottle import route, run, request, install | |
from bottle_redis import RedisPlugin | |
install(RedisPlugin()) | |
@route('/ask') |
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
# Modify Bottle application as follows: | |
# import sys | |
# ... | |
# run(port=sys.argv[1], debug=True) | |
# | |
# Then run | |
# python app.py 8081 | |
# python app.py 8082 | |
# nginx -p . -c nginx.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
@echo off | |
REM Enable by running the following command: | |
REM reg add "HKCU\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d ^%USERPROFILE^%\.profile.cmd /f | |
set HOME=%USERPROFILE% | |
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_01 | |
set PATH=%JAVA_HOME%\bin;%PATH% | |
set ANT_HOME=C:\apache-ant-1.9.2 |
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
Question from fishygut: | |
What are the main differences between Java EE 7 and Java EE 6 ? | |
4 Answers | |
puffstone: Support for JSON | |
barkingcustard: GlassFish v4 | |
puffstone: Improved Bean Validation | |
barkingcustard: WebSocket support |
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
<artifact:dependencies pathId="dependency.classpath"> | |
<remoteRepository id="objectdb" url="http://m2.objectdb.com" /> | |
<dependency groupId="com.objectdb" artifactId="objectdb" version="2.5.3_02" /> | |
</artifact:dependencies> |
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
// Client-side code | |
/* jshint browser: true, jquery: true, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, nonew: true, quotmark: double, undef: true, unused: true, strict: true, trailing: true */ | |
// Server-side code | |
/* jshint node: true, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, nonew: true, quotmark: double, undef: true, unused: true, strict: true, trailing: true */ |