Skip to content

Instantly share code, notes, and snippets.

View kyleondata's full-sized avatar

Kyle Jennings kyleondata

View GitHub Profile
@kyleondata
kyleondata / triangles.html
Created December 17, 2012 22:28
CSS Triangles
<html>
<head>
<style>
body{
background-color: #eee;
}
.triForce {
height: 50px;
@kyleondata
kyleondata / ThoraxDemo.html
Last active December 14, 2015 16:59
Thorax JS Demo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
</body>
</html>
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
@app.route("/home")
or
@app.route("/home/")
local count = 0
core.register_service("auth", "http", function (applet)
count = count + 1
-- Get X-Auth-Token --
local token = applet.headers['x-auth-token'][0]
local cmd = 'curl -H "X-Auth-Token:'..token..'"'
cmd = cmd..' -sL -w "%{http_code}\\n"'
cmd = cmd..' "https://staging.identity-internal.api.rackspacecloud.com/v2.0/tokens/'..token..'"'
cmd = cmd..' -o /dev/null'