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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
headers = [ | |
{"Content-Type", "application/x-www-form-urlencoded"}, | |
{"Accept", "text/html"} | |
] | |
encoded_text = URI.encode_www_form(text) | |
body = "text=#{encoded_text}" | |
case HTTPoison.post(url, body, headers) do | |
{:ok, %HTTPoison.Response{status_code: 200, body: body}} -> |
module Printf | |
%default total | |
data Format = FInt Format -- %d | |
| FString Format -- %s | |
| FOther Char Format -- [a-zA-Z0-9] | |
| FEnd -- | |
format : List Char -> Format |
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
<html ng-app="MyApplication"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script> | |
<script src="timeago-angular.js" type="text/javascript"></script> | |
<script src="my-app.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div ng-controller="myController"> | |
<span class="time-ago" title="{{ myTime }}"></span> | |
</div> |