I hereby claim:
- I am philipnrmn on github.
- I am philipnrmn (https://keybase.io/philipnrmn) on keybase.
- I have a public key ASDiSTp2dK4h1OVB0iMrLwQgCKWWQ-0_tYJn-PcrqBeCDwo
To claim this, I am signing this object:
#!/usr/local/bin/python3 | |
# -*- coding: utf-8 -*- | |
from flask import Flask, redirect, url_for | |
from os import environ | |
''' | |
Usage: | |
$ pip3 install flask | |
$ PORT=8001 python3 malinger.py |
(function($) { | |
// The bigger the step, the jerkier the animation | |
var step = 0.11, | |
lastStep = 0; | |
$.easing.jerky = function(t) { | |
if (t < step) | |
lastStep = 0; | |
if (t > lastStep + step) | |
lastStep += step; |
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 80; | |
listen 443 ssl; | |
server_name localhost; | |
ssl_certificate /etc/nginx/ssl/nginx.crt; | |
ssl_certificate_key /etc/nginx/ssl/nginx.key; | |
#charset koi8-r; | |
#access_log /var/log/nginx/log/host.access.log main; |
{ | |
"id": "/philip/mesos-https", | |
"instances": 1, | |
"cpus": 0.1, | |
"mem": 128, | |
"disk": 0, | |
"gpus": 0, | |
"fetch": [ | |
{ | |
"uri": "https://gist.githubusercontent.com/philipnrmn/1c37364baf3157f51567401c51373f5c/raw/00f435020499104b06f06fdf6caed4b435b0acf8/default.conf", |
# Exercise: sort the words in an arbitrary string in place. | |
# For the purposes of this exercise, assume the string is | |
# lowercase and no two words start with the same character. | |
def take_word(sentence): | |
"""Generator; yields all words in a sentence""" | |
word = '' | |
for c in sentence: | |
if c == ' ': | |
yield word |
(ns elements.six-seventeen) | |
(def sample [[ 1 2 3 4 5] | |
[ 6 7 8 9 10] | |
[11 12 13 14 15] | |
[16 17 18 19 20] | |
[21 22 23 24 25]]) | |
(defn top | |
[matrix] |
{ | |
"id": "/malinger", | |
"cmd": "cd $MESOS_SANDBOX && pip install flask && python malinger.py", | |
"cpus": 0.1, | |
"mem": 128, | |
"disk": 0, | |
"instances": 1, | |
"container": { | |
"type": "DOCKER", | |
"docker": { |
{ | |
"id": "/statsd-emitter-ucr", | |
"cmd": "/opt/mesosphere/bin/statsd-emitter", | |
"container": { | |
"type": "MESOS", | |
"volumes": [] | |
}, | |
"cpus": 0.001, | |
"disk": 0, | |
"instances": 1, |
{ | |
"id": "/statsd-emitter-docker", | |
"cmd": "/bin/statsd-emitter", | |
"container": { | |
"type": "DOCKER", | |
"volumes": [ | |
{ | |
"containerPath": "/bin/statsd-emitter", | |
"hostPath": "/opt/mesosphere/bin/statsd-emitter", | |
"mode": "RO" |