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 cherrypy | |
import subprocess | |
import os | |
git_cmd = "/usr/local/git/bin/git" | |
jekyll_cmd = "/opt/local/bin/jekyll" | |
swift_cmd = "/usr/local/bin/swift" | |
site_dir = "_site" #/Users/steve/Documents/git/tjdett/uberdojo-cms/ | |
swift_container = "steve-dojo" | |
os_auth_url = "http://keystone.rc.nectar.org.au:5000/v2.0/" |
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
Getting distribution for 'zc.recipe.egg'. | |
Got zc.recipe.egg 2.0.0a3. | |
Getting distribution for 'pyparsing'. | |
An error occurred when trying to install pyparsing 2.0.0. Look above this message for any errors that were output by easy_install. | |
STDERR: Traceback (most recent call last): | |
File "setup.py", line 2, in <module> | |
from setuptools import setup, find_packages | |
ImportError: No module named setuptools | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> |
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 | |
# -*- coding: utf-8 -*- | |
# Proof of concept that produces a virtual FUSE-mountable | |
# file/directory structure from a python dictionary | |
# By Steve Androulakis <http://github.com/steveandroulakis> | |
# Requires FUSE (linux: use package manager to install) | |
# Requires python-fuse pip install fuse-python | |
# USE: | |
# Mount: ./dict-fuse.py mnt -f | |
# Unmount: fusermount -u -z mnt |
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="../tag-it/js/tag-it.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/flick/jquery-ui.css"> | |
<link href="../tag-it/css/jquery.tagit.css" rel="stylesheet" type="text/css"> | |
<script type="text/javascript"> | |
$(document).ready(function() { |
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
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript" src="http://vera183.its.monash.edu.au/static/js/lib/jquery-1.7.1.min.ddb84c158728.js"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
var jsonData = $.ajax({ |
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
// pre-req, msconvert.exe in PATH smsdm.cpl | |
// terminal | |
var http = require('http'); | |
// Configure our HTTP server to respond with Hello World to all requests. | |
var server = http.createServer(function (request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
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 express = require('express'); | |
var app = express(); | |
var redis = require("redis"), | |
db = redis.createClient(); | |
var StringDecoder = require('string_decoder').StringDecoder; | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(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
var express = require('express'); | |
var app = express(); | |
var redis = require("redis"), | |
db = redis.createClient(); | |
var StringDecoder = require('string_decoder').StringDecoder; | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(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
var http = require('http'); | |
var fs = require('fs'); | |
var request = http.get("http://118.138.241.34/api/v1/dataset_file/3116/?format=json", function(response) { | |
var result = ''; | |
response.on('data', function(data) { | |
result += data.toString(); | |
}) | |
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 express = require('express'); | |
var http = require('http'); | |
var app = express(); | |
var fs = require('fs'); | |
var redis = require("redis"), | |
db = redis.createClient(); | |
var StringDecoder = require('string_decoder').StringDecoder; | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) |
OlderNewer