Skip to content

Instantly share code, notes, and snippets.

View monokrome's full-sized avatar
😻
meow

Bailey Stoner monokrome

😻
meow
View GitHub Profile
[
{
"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",
# 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"
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
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
var element_color_map = [
{
elements: [],
controller: undefined
}
], _index;
// Set controllers to the element that changes when color changes
// Later on.
import sys
import os
def asset_path(*args):
""" Returns the location of the requested filename within our assets
directory.
"""
path_segments = [
@monokrome
monokrome / double_initialize.py
Created November 14, 2011 05:08
Does this double initialize?
class DoubleInitializeTest(object):
member_variable = None
def __init__(self, member_variable=True):
self.member_variable = member_variable
class Model
constructor: (banana='Yummy') ->
@banana = banana
@something()
something: () ->
console.log @banana
instance = new Model()
something = (test='Okay. ') ->
console.log(test)
something()
something 'This is a neat test.'
@monokrome
monokrome / fabfile.py
Created December 6, 2011 04:21
Using objects for taking care of cleanup in Fabric
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: