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
| function notifyServerError() { | |
| swal("Server failed"); | |
| }; | |
| function hidePost(id) { | |
| $('div[data-post-id=' + id + ']').hide("slow"); | |
| }; | |
| var update_url = '/news/update_state'; |
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
| # This script will dump your history into out.txt | |
| # Run script, authorize app, get token in url | |
| # Enter token into script | |
| # Enjoy out.txt | |
| import requests | |
| import webbrowser | |
| import json | |
| import datetime |
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
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| ++++++++++++++++++++++++++++++++.> | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> | |
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.> |
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 PIL import Image, ImageFilter, ImageDraw | |
| import random | |
| img = Image.open("1.jpg") | |
| width = img.size[0] | |
| height = img.size[1] | |
| mask = Image.new('L', img.size, 255) | |
| maskd = ImageDraw.Draw(mask) |
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
| command = input("Введите команду") | |
| if command == "exit": | |
| exit() | |
| elif command == "help": | |
| help | |
| elif command == "hello": | |
| print("hello!") | |
| else | |
| print("Нет такой команды") |
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
| command = input("Введите команду") | |
| if command == "exit": | |
| exit() | |
| else: | |
| if command == "help": | |
| help() | |
| else: | |
| if command == "hello": | |
| print("hello!") |
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
| rem no " " in dir name | |
| rem downloads: %UserProfile%\Downloads | |
| rem tmp: %tmp% | |
| set clean_dir=%UserProfile%\Downloads | |
| del /s /q "%clean_dir%\*" | |
| FOR /D %%p IN ("%clean_dir%\*.*") DO rmdir "%%p" /s /q |
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
| numdays = 365 | |
| base = datetime.datetime.today() | |
| date_list = [base - datetime.timedelta(days=x) for x in range(1, numdays)] | |
| file = open("da.html", "w+") | |
| file.write("<html><body><div>") | |
| for day in date_list: | |
| dz = "http://bash.im/abyssbest/{0:04}{1:02}{2:02}".format(day.year, day.month, day.day) |
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
| :point | |
| ping 8.8.8.8 | |
| timeout 30 | |
| goto point |
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 SimpleHTTPServer | |
| import SocketServer | |
| class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(504) | |
| self.send_header("Content-type", "text/html") | |
| self.end_headers() | |
| def do_POST(self): |