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
#!/usr/bin/env python | |
print int((( | |
not not not not not not not not not not not | |
not not not not not not not not not not not not | |
not not not not not not not not not not not not | |
not not not not not not not not not not not not | |
not not not not not not not not not not not not | |
not not not not not not not not not not not not | |
not not not not not not not not not not not not |
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> | |
#define color(code, format, ...) printf("\033[1;3"code"m"format"\033[0m", ##__VA_ARGS__) | |
#define gray(fmt, ...) color("0", fmt, ##__VA_ARGS__) | |
#define red(fmt, ...) color("1", fmt, ##__VA_ARGS__) | |
#define green(fmt, ...) color("2", fmt, ##__VA_ARGS__) | |
#define yellow(fmt, ...) color("3", fmt, ##__VA_ARGS__) | |
#define blue(fmt, ...) color("4", fmt, ##__VA_ARGS__) | |
#define purple(fmt, ...) color("5", fmt, ##__VA_ARGS__) | |
#define cyan(fmt, ...) color("6", fmt, ##__VA_ARGS__) |
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 inspect | |
import traceback | |
frame = inspect.stack()[0][0] | |
lines = map(utf8_bytes, traceback.format_stack(frame)) | |
tb = b"\n".join(lines) | |
if not b'/util/tests/helpers.py", line 286' in tb: | |
with open('business_location_save.traceback', 'a') as f: | |
f.write("\n") | |
f.write("=" * 100) | |
f.write("\n") |
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
"\033[1;35m \xe0\xa5\x90\033[0m" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import gevent | |
import requests | |
from gevent.queue import Queue | |
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 <Python.h> | |
#include <string.h> | |
#include <assert.h> | |
#include "greenlet.h" | |
PyGreenlet * | |
ensure_greenlet(PyObject *obj) { | |
char err[128]; | |
if (!PyGreenlet_Check(obj)) { |
A Pen by Stefan Judis on CodePen.
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
________ . | |
,88888PP8ba, 8b d8b d8b' | |
,d8P" "Y8b I8 888 d88b' | |
a8" 'Yd Yb "*" ,ad8" | |
" )8 "8aaaaa8b" | |
,dP """""" | |
,a8" ________ | |
"8gggggg88I ,d88888888b, | |
"8' 'a8b,88" "Y8) | |
"Y8b' d8) |
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 geventhttpclient import HTTPClient | |
from geventhttpclient.url import URL | |
import gevent | |
import gevent.monkey | |
from gevent.queue import Queue | |
gevent.monkey.patch_all() | |
urls_to_download = [ |