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 sublime | |
| import sublime_plugin | |
| ''' | |
| __ __ __ __ | |
| | \/ |_ _| \/ | | |
| | |\/| | '_| |\/| |_ | |
| |_| |_|_| |_| |_(_) | |
| Project: Examples of using custom dialog and messages in Sublime 2 |
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| component { | |
| env = createObject("java", "java.lang.System").getenv(); | |
| this.name = "heroku-demo-app"; | |
| this.sessionManagement = true; | |
| this.datasources.default = { | |
| class: env.get("DB_DRIVER") | |
| ,connectionString: env.get("DB_URL") |
| { | |
| "Version":"2008-10-17", | |
| "Id":"http referer policy example", | |
| "Statement":[ | |
| { | |
| "Sid":"Allow get requests referred by www.mysite.com and mysite.com", | |
| "Effect":"Allow", | |
| "Principal":"*", | |
| "Action":"s3:GetObject", | |
| "Resource":"arn:aws:s3:::YOUR_S3_BUCKET_NAME/*", |
| // convert 0..255 R,G,B values to binary string | |
| RGBToBin = function(r,g,b){ | |
| var bin = r << 16 | g << 8 | b; | |
| return (function(h){ | |
| return new Array(25-h.length).join("0")+h | |
| })(bin.toString(2)) | |
| } | |
| // convert 0..255 R,G,B values to a hexidecimal color string | |
| RGBToHex = function(r,g,b){ |
| package net.toutantic.jgit; | |
| import static org.junit.Assert.*; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.util.Collection; | |
| import java.util.Iterator; |
| sub, sup { | |
| /* Specified in % so that the sup/sup is the | |
| right size relative to the surrounding text */ | |
| font-size: 75%; | |
| /* Zero out the line-height so that it doesn't | |
| interfere with the positioning that follows */ | |
| line-height: 0; | |
| /* Where the magic happens: makes all browsers position |