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 python2 | |
| # -*- coding: utf-8 -*- | |
| import Queue | |
| import functools | |
| import itertools | |
| import sys | |
| import threading | |
| import time |
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
| #!/bin/bash | |
| # Usage: | |
| # south2django17 PROJECT_ROOT_WHERE_ALL_THE_APPS_ARE | |
| # This script will: | |
| # 1. Backup all South migration files to /tmp | |
| # 2. Delete these files | |
| # 3. Run manage.py makemigrations | |
| # 4. Run manage.py migrate | |
| # http://is.gd/fbtuPF |
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
| local Proxy = {} | |
| function Proxy:new(wrapped) | |
| local instance = { __wrapped = wrapped } | |
| setmetatable(instance, self) | |
| return instance | |
| end | |
| function Proxy.__index(instance, attrname) | |
| local attr = instance.__wrapped[attrname] |
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 <cstdint> | |
| #include <functional> | |
| #include <iostream> | |
| #include <map> | |
| #include <string> | |
| class Humanizator | |
| { | |
| public: |
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 <functional> | |
| #include <iostream> | |
| #include <typeinfo> | |
| using namespace std; | |
| class Fuck | |
| { | |
| public: | |
| Fuck() {} |
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
| // | |
| // Append element to the end of array. | |
| // | |
| proc append(string $ary[], string $elem) | |
| { | |
| $ary[size($ary)] = $elem; | |
| } | |
| // |
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 -*- | |
| import os | |
| TEMPLATE = r'''LOCAL_PATH := $(call my-dir) | |
| include $(CLEAR_VARS) |
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
| # -*- coding: utf-8 -*- | |
| import cmath | |
| import math | |
| import matplotlib.pyplot as plt | |
| def linear(a, z, n=100): | |
| yield z |
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 print_function | |
| from collections import deque | |
| from collections import namedtuple | |
| from pprint import pprint | |
| Item = namedtuple('Item', 'value weight') |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| # namespace | |
| # { | |
| # void printBinary(const float value) | |
| # { | |
| # char s[33]; |