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
input { | |
stdin { | |
codec => multiline { | |
'negate' => true | |
'pattern' => '^\[' | |
'what' => 'previous' | |
} | |
} | |
} |
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
# in this case there's no way to access arg1 and arg2 as a list | |
def function(arg1, arg2): | |
print arg1, arg2 | |
# alternatively you can do this | |
def function2(*args): | |
print args[0], args[1] | |
# you can also mix and match | |
def function3(arg1, *args): |
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
from __future__ import with_statement | |
from fabric.api import abort, run, cd, env, sudo | |
from time import sleep | |
from contextlib import contextmanager | |
import boto | |
import re | |
import os | |
APP = '/var/www/ERP/Application' | |
LOAD_BALANCER = 'PortalSSL' |
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
var response = prompt("Do you like me?"); | |
if (response === "yes") { | |
console.log("I like you too!"); | |
} |
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
public void getCalculatedQuote(){ | |
Socket serverInteract = null; | |
PrintWriter out = null; | |
BufferedReader in = null; | |
String rslt = ""; | |
try{ | |
serverInteract = new Socket("web7.apl.jhu.edu", 20025); | |
out = new PrintWriter(serverInteract.getOutputStream(), true); | |
in = new BufferedReader(new InputStreamReader(serverInteract.getInputStream())); |
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
=== upstart config file === | |
description "uWSGI Emperor" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
env BINPATH=/usr/bin/uwsgi |
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
booooO! |