I hereby claim:
- I am r4vi on github.
- I am r4vi (https://keybase.io/r4vi) on keybase.
- I have a public key whose fingerprint is F8E4 91B4 4765 9C8C A11C 09A8 A48B 120F E8C8 1295
To claim this, I am signing this object:
| const express = require('express'); | |
| const app = express(); | |
| const port = 3000; | |
| // Quick response route | |
| app.get('/', (req, res) => { | |
| res.send('Hello World! This route responds quickly.'); | |
| }); | |
| // CPU intensive route - WARNING: This will block all other requests! |
| from django.test.runner import DiscoverRunner | |
| from django.conf import settings | |
| class NoDbTestRunner(DiscoverRunner): | |
| """ A test runner to test without database creation """ | |
| def __init__(self, *args, **kwargs): | |
| kwargs['top_level'] = settings.APPS_ROOT | |
| super(NoDbTestRunner, self).__init__(*args, **kwargs) |
| [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| export GITAWAREPROMPT=~/opt/git-aware-prompt | |
| source $GITAWAREPROMPT/main.sh | |
| export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
| export SUDO_PS1="\[$bakred\]\u@\h\[$txtrst\] \w\$ " | |
| export EDITOR='emacsclient -t' |
| a.maia-button.maia-button-secondary.ga-product-cta { | |
| font-size: 12rem; | |
| } | |
| div.ga-hero img { | |
| display: none; | |
| } |
| <!--[if lte IE 9]> | |
| <div class="legacy-browser"> | |
| <h1>:(</h1> | |
| <p>This service is <strong>not</strong> designed to support your browser.</p> | |
| <p>Please <a href="http://browsehappy.com/">upgrade</a> to the latest version of Chrome, Firefox, Safari or Internet Explorer 11 and above.</p> | |
| </div> | |
| <![endif]--> |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| import threading | |
| import time | |
| class Sleepy(threading.Thread): | |
| def run(self): | |
| time.sleep(5) |
| #!/bin/sh | |
| # script for optimizing images in a directory (recursive) | |
| # pngcrush & jpegtran settings from: | |
| # http://developer.yahoo.com/performance/rules.html#opt_images | |
| # pngcrush | |
| find $1 -iname "*.png" | while read png | |
| do | |
| echo "crushing $png ..." |