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
[ | |
{ | |
"stack": "Error: Nodejitsu Error (500): Internal Server Error\n at Request.callback (/usr/local/lib/node_modules/jitsu/lib/jitsu/api/client.js:84:15)\n at Request.<anonymous> (/usr/local/lib/node_modules/jitsu/node_modules/request/main.js:314:21)\n at Request.emit (events.js:64:17)\n at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/jitsu/node_modules/request/main.js:295:19)\n at IncomingMessage.emit (events.js:81:20)\n at HTTPParser.onMessageComplete (http.js:133:23)\n at Socket.ondata (http.js:1231:22)\n at Socket._onReadable (net.js:683:27)\n at IOWatcher.onReadable [as callback] (net.js:177:10)", | |
"message": "Nodejitsu Error (500): Internal Server Error", | |
"statusCode": "500", | |
"result": [ | |
{ | |
"attribute": "type", | |
"property": "domains", | |
"expected": "array", |
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
# Imagine you have a file (app_name.json) in a standard directory. | |
# Prefer will look in your OS default directories (./, ~/.config, ~/, /etc/) | |
# for the requested file. Imagine the following file: | |
# | |
# { | |
# "client": { | |
# "request_address": "127.0.0.1:8080", | |
# }, | |
# "server": { | |
# "bind_address": "127.0.0.1:8080" |
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
express = require 'express' | |
connect = require 'connect' | |
server = express.createServer() | |
server.use (connect.vhost 'google.com', server) | |
server.use (connect.vhost 'kroogs.com', server) | |
server.listen 80 |
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
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 44 | |
model name : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz | |
stepping : 2 | |
cpu MHz : 1600.000 | |
cache size : 12288 KB | |
physical id : 1 | |
siblings : 12 |
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 element_color_map = [ | |
{ | |
elements: [], | |
controller: undefined | |
} | |
], _index; | |
// Set controllers to the element that changes when color changes | |
// Later on. |
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
import sys | |
import os | |
def asset_path(*args): | |
""" Returns the location of the requested filename within our assets | |
directory. | |
""" | |
path_segments = [ |
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
class DoubleInitializeTest(object): | |
member_variable = None | |
def __init__(self, member_variable=True): | |
self.member_variable = member_variable |
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
class Model | |
constructor: (banana='Yummy') -> | |
@banana = banana | |
@something() | |
something: () -> | |
console.log @banana | |
instance = new Model() |
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
something = (test='Okay. ') -> | |
console.log(test) | |
something() | |
something 'This is a neat test.' |
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 fabric.api import local | |
class Compression(object): | |
def __init__(self, cleanup=True): | |
self.cleanup = cleanup | |
local('./manage.py compress --force') | |
def __del__(self): | |
if self.cleanup is True: |