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/sh | |
| SHORTCUT="[Desktop Entry] | |
| Name=Sublime Text 3 | |
| Comment=Edit text files | |
| Exec=/usr/local/sublime-text-3/sublime_text | |
| Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png | |
| Terminal=false | |
| Type=Application | |
| Encoding=UTF-8 | |
| Categories=Utility;TextEditor;" |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #define BLOCK_SIZE 4096 | |
| int main(int argc, char *argv[]) | |
| { | |
| char *buf, *tmp; | |
| char ch; | |
| size_t len=0; |
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
| Byebye, World! |
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.7 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| img2pdf - Image(s) to pdf converter | |
| Usage: | |
| img2pdf.py <images_dir> [<pdf_name>] | |
| """ |
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 datetime | |
| import os | |
| import time | |
| import github | |
| import irc.bot | |
| import schedule |
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 -*- | |
| # Tested on z3 4.4.0, Python 2.7.9 | |
| # | |
| # $ time python sudoku.py | |
| # 5 3 4 6 7 8 9 1 2 | |
| # 6 7 2 1 9 5 3 4 8 | |
| # 1 9 8 3 4 2 5 6 7 | |
| # 8 5 9 7 6 1 4 2 3 | |
| # 4 2 6 8 5 3 7 9 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
| # -*- coding: utf-8 -*- | |
| # | |
| # Slack file downloader from export archive | |
| # | |
| # Requirements: | |
| # Python 2 (or Python3 if you can use six) | |
| # | |
| # How to use: | |
| # 1. Log in as admin, export your chat logs, and download archive. | |
| # 2. Unarchive archive to directory (ex. TeamName export Apr 24 2016) |
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 show_me_the_hand(records): | |
| try: | |
| class AF(str): # for p2 | |
| def __eq__(self, *args, **kwarg): | |
| return False | |
| def __ne__(self, *args, **kwarg): | |
| return True | |
| class OTF(str): # for p1 |
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
| # Tested on Windows 7~, Python 2.7 and 3.6. | |
| # | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| import operator | |
| res = subprocess.check_output(['tasklist']) | |
| res = res.split(b'\r\n')[2:] |
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 codecs | |
| from bs4 import BeautifulSoup | |
| import requests | |
| html = requests.get('https://slackmojis.com/').text | |
| soup = BeautifulSoup(html, 'html.parser') |
OlderNewer