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 hashlib | |
| fullhash = "98e86e9c473107b55e707fd4edd9411443e4ded6c39c5ac1c969e096bb733d975a12538f3c4fa1145aa8993b6583731b2eecf68895052d8038dee068317f549d0269c54f1e28606478b15890f6efd2b7e46d969ddf1c5f3b2bd4d4160d354d17" | |
| arr = [fullhash[i:i+32] for i in range(0, len(fullhash), 32)] | |
| string = "1234567890abcdefghijklmnopqrstuvwxyz" | |
| answer = "" | |
| for a in arr: |
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: utf8 -*- | |
| import random | |
| def solve(i): | |
| #int 100보다 작은 수를 제거 | |
| return [a for a in i if a >= 100] | |
| lst = [] | |
| for i in range(100): |
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: utf8 -*- | |
| import re | |
| from subprocess import call | |
| path = "/var/log/mysql/" | |
| log = "error.log" | |
| logContents = "" | |
| excludeText = "localhost ....." |
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: utf8 -*- | |
| import urllib | |
| import urllib2 | |
| import re,time | |
| players = [] | |
| turn = -1 |
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
| #Author: Khoi | |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # items.py should be in the same folder | |
| from items import item_color | |
| from collections import OrderedDict | |
| def are_exclusive(keys, items): |
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
| #Autor: Misol | |
| item_color = {'Ambank': set(['Celadon green', 'Blast-off bronze', 'Dark turquoise', 'Carmine (M&P)', 'Brick red', 'Dark sea green', 'Carmine', 'Atomic tangerine', 'French blue', 'Cyan cobalt blue', 'Donkey brown', 'Air Force blue (RAF)', 'Army green', 'Coquelicot', 'French plum', 'Celadon', 'Eton blue', 'Black bean', 'Bistre brown', 'Debian red', 'Bittersweet', 'Dark liver (horses)', 'Air Force blue (USAF)', 'Baby blue', 'Chocolate (web)', 'Arylide yellow', 'Deep Tuscan red', 'Bondi blue', 'Dark brown', 'Baby powder']), 'Tsingtao': set(['Catalina blue', 'Flavescent', 'Black', 'Burnt sienna', 'Ceil', 'English violet', 'Bisque', 'Azure (web color)', 'Bright pink', 'Cyan cobalt blue', 'Blue (pigment)', 'Charleston green', 'Chrome yellow', 'Amazon', 'Cyan-blue azure', 'Boysenberry', 'Dust storm', 'Desire', 'Dark jungle green', 'Desert sand', 'Antique ruby', 'Coral', 'Fern green', 'Desaturated cyan', 'Chartreuse (traditional)', 'Dim gray', 'Dark cerulean', 'Burnt orange', 'Cadet', 'Air Force blue (U |
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
| <?php | |
| /** | |
| * AutoLink extension | |
| * Turn ordinary words into page links, if the name matches. to match plurals and variations, | |
| * write lots and lots of redirection pages. | |
| * The original version, by [http://www.mediawiki.org/wiki/User:Sanjualone Sanjeev], required | |
| * users to manually enter all the page names they wanted to match. | |
| * [http://www.mediawiki.org/wiki/User:Gelisam] completely rewrote the script (minus the | |
| * boilerplate) to match any page. | |
| * |
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 | |
| # Author : Myeong-Uk ([email protected]) | |
| # Date : 2015. 03. 24 | |
| # Desc : Count alphabetword frequency | |
| # Command : <python wordcount.py filename> e.g. rfc3615.txt | |
| # OUTPUT : filename_word_count.out e.g. rfc3615.txt_word_count.out | |
| import sys,re,string,operator,csv |