This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:[].forEach.call(document.querySelectorAll('.story'),function(n){if(!n.querySelector('.owner')){console.info(n);n.style.color='#f00'}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var offset = 0; | |
var decodeChar = function (char, on) { | |
var code = char.charCodeAt() - 64; | |
var out = ''; | |
while (code-- > 0) { | |
out += offset++ % 80 === 0 ? '\n' : (on ? '!' : ' '); | |
} | |
return out; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from flask import Flask, render_template, request, make_response | |
from argparse import ArgumentParser | |
app = Flask(__name__) | |
DEFAULT_HOST = 'example.com' | |
app.config['HOST'] = DEFAULT_HOST | |
@app.route('/cookies') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
white-space: pre; | |
font-family: monospace; | |
background-color: rgb(45, 45, 100); | |
color: rgb(200, 150, 100); | |
} | |
.property { | |
font-weight: bold; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, make_response | |
app = Flask(__name__) | |
@app.route('/no-space') | |
def no(): | |
return make_response(('Hello', 200, {'Content-Disposition': 'attachment; filename=hello.txt'})) | |