Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import static ch.qos.logback.classic.Level.ALL; | |
import static org.slf4j.Logger.ROOT_LOGGER_NAME; | |
import java.io.ByteArrayOutputStream; | |
import java.io.OutputStream; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.Charset; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; |
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebView; | |
/** | |
* A syntax highlighting code editor for JavaFX created by wrapping a | |
* CodeMirror code editor in a WebView. | |
* | |
* See http://codemirror.net for more information on using the codemirror editor. | |
*/ | |
public class CodeEditor extends StackPane { |
/*! ****************************** | |
Handlebars helpers | |
*******************************/ | |
// debug helper | |
// usage: {{debug}} or {{debug someValue}} | |
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); |
redirect: 34f08d5e11952a80609169b7917d4172 |
<!-- | |
The MIT License (MIT) | |
Copyright (c) 2013 [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
# the admin password for all of the IE VMs is “Password1″ without the quotes, it's also used for the password hints | |
1) Install VirtuaBox on your mac | |
http://download.virtualbox.org/virtualbox/4.1.10/VirtualBox-4.1.10-76795-OSX.dmg | |
2) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM’s, which may take a while so keep that in mind. Select the text below and copy it: | |
# Install ALL versions of Internet Explorer: IE 7, IE 8, and IE 9 (for now this script will also pull down a IE 6 vm with windows xp) |
#! /usr/bin/env python | |
import subprocess | |
import re | |
# Settings | |
diskPath = '/dev/sda' | |
mountPath = '/media/drobo' | |
# Get status | |
command = "/usr/sbin/drobom status" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
var dummyData = [ | |
["2013/05/20","00:00","322.2","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:05","322.2","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:10","322.1","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:15","322.1","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:20","321.8","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:25","322.1","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:30","322.1","35.4","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:35","322.1","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], | |
["2013/05/20","00:40","322.1","35.3","21.4","67","East","6","0","63","87%","30.05","+","0.00","1.40"], |
license: gpl-3.0 |