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 | |
| ext=""; | |
| ands=""; | |
| ors=""; | |
| function find_folder_and() { | |
| for i in "$1"/*;do | |
| if [ -d "$i" ] |
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
| #euclid recurtion | |
| def ebob(a, b): | |
| if b == 0: | |
| return a | |
| else: | |
| return ebob(b, a % b) | |
| print ebob(120, 54) |
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 <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int **board; | |
| int rows; | |
| int columns; |
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
| transpose = [] | |
| matris = [] | |
| son = [] | |
| satir = int(raw_input("satir sayisi: ")) | |
| sutun = int(raw_input("sutun sayisi: ")) | |
| for i in range(satir): | |
| transpose.append([0] * sutun) | |
| matris.append([i + 1] * sutun ) |
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
| roman = ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I'] | |
| values = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1] | |
| romanDict = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} | |
| def int_to_roman(strnumber): | |
| result = "" | |
| number = int(strnumber) | |
| for i, v in enumerate(values): | |
| while (number >= v): |