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
cd /tmp/stackless-272-export/ | |
./configure --prefix=/opt/stackless --enable-unicode=ucs4 | |
make | |
sudo make install |
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
<route id="report_month_to_date"> | |
<from uri="file:partials" /> | |
<unmarshal><csv/></unmarshal> | |
<to uri="bean:myCsvHandler?method=doHandleCsvData" /> | |
<aggregate strategyRef="serviceStrategy"> | |
<correlationExpression> | |
<simple>${header.month} == ${date:now:yyyyMM}</simple> | |
</correlationExpression> | |
<completionPredicate> | |
<simple>${header.CamelBatchComplete}</simple> |
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
/** | |
* A Camel Java DSL Router | |
*/ | |
public class MyRouteBuilder extends RouteBuilder { | |
private static final ResourceBundle SECRETS = ResourceBundle | |
.getBundle("myproject.secrets"); | |
/** | |
* Let's configure the Camel routing rules using Java code... |
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
public class SomeTest extends CamelTestSupport { | |
@Override | |
protected RouteBuilder createRouteBuilder() throws Exception { | |
return new RouteBuilder() { | |
@Override | |
public void configure() throws Exception { | |
from("direct:findAll") |
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
def twitter_factory(oauth): | |
return oauth.remote_app('twitter', | |
base_url='https://api.twitter.com/1/', | |
request_token_url='https://api.twitter.com/oauth/request_token', | |
access_token_url='https://api.twitter.com/oauth/access_token', | |
authorize_url='https://api.twitter.com/oauth/authenticate', | |
consumer_key='***************MY_KEY****************', | |
consumer_secret='*************MY_SECRET**************' | |
) |
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
#!/usr/bin/env python | |
import sys | |
from wheezy.http import HTTPResponse | |
from wheezy.http import WSGIApplication | |
from wheezy.routing import url | |
from wheezy.web.handlers import BaseHandler | |
from wheezy.web.middleware import bootstrap_defaults | |
from wheezy.web.middleware import path_routing_middleware_factory |
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
#!/usr/bin/env python | |
import sys | |
import web | |
urls = ( | |
'/', 'index' | |
) |
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
#!/usr/bin/env python | |
import sys | |
from kiss.core.application import Application | |
from kiss.views.templates import Response | |
class Controller(object): | |
def get(self, request): | |
return Response("Hello World!") |
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
#!/usr/bin/env python | |
import sys | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello World!" |
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
#!/usr/bin/env python | |
import sys | |
from bottle import route, run, template | |
@route('/') | |
def index(name='World'): | |
return "Hello World!" | |