This file contains hidden or 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, session, escape, request, redirect, url_for | |
| from os import urandom | |
| app = Flask(__name__) | |
| app.debug = True | |
| app.secret_key = urandom(24) | |
| @app.route('/') |
This file contains hidden or 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
| if ('0') { // Prints 'true'. | |
| console.log('true'); | |
| } else { | |
| console.log('false'); | |
| } |
This file contains hidden or 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
| String.prototype.format = function () { | |
| var g = this.toString(); | |
| if (!arguments.length) return g; | |
| var c = "string" == typeof arguments[0] ? arguments : arguments[0], | |
| e; | |
| for (e in c) g = g.replace(RegExp("\\{" + e + "\\}", "gi"), c[e]); | |
| return g | |
| }; |
This file contains hidden or 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
| <?php | |
| class Conf { | |
| private $_storage = array(); | |
| function load($name) { | |
| $this->_storage = require $name.'.php'; |
This file contains hidden or 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:void(function(){var jsCode=document.createElement('script');jsCode.setAttribute('src','http://example.com/script.js');document.body.appendChild(jsCode);}()); |
This file contains hidden or 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
| import sys, re | |
| if len(sys.argv) == 1: | |
| exit() | |
| with open(sys.argv[1]) as f: | |
| content = f.read() | |
| chunks = re.findall(r'\w+', content) | |
| print('Count:', len(chunks)) |
This file contains hidden or 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
| for (var i = 10; i > 0; --i) { | |
| console.log('Hello, world!'); | |
| } |
This file contains hidden or 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
| #include <stdio.h> | |
| int main(int argc, char *argv[]) { | |
| char foo = 'C'; | |
| char bar = 'A'; | |
| puts(foo - bar); | |
| return 0; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>HTML5 Boilerplate</title> | |
| <!--<link rel="stylesheet" href="common.css" />--> |
This file contains hidden or 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
| -12:00 | |
| -11:00 | |
| -10:00 | |
| -09:30 | |
| -09:00 | |
| -08:00 | |
| -07:00 | |
| -06:00 | |
| -05:00 | |
| -04:30 |