This file contains 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
syntax on | |
set number | |
set tabstop=4 | |
set autoindent | |
set softtabstop=4 | |
set list | |
set listchars=eol:$,nbsp:_,tab:>-,trail:~,extends:>,precedes:<,space:· | |
set clipboard=unnamedplus |
This file contains 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 socket | |
import base64 | |
import select | |
import ssl | |
import json | |
import argparse | |
import os | |
import shutil | |
from email.parser import Parser |
This file contains 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 socket | |
import select | |
import argparse | |
import multiprocessing as mp | |
import errno | |
import os | |
import threading | |
import struct | |
import threading | |
import time |
This file contains 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 json | |
import argparse | |
import requests | |
import subprocess | |
import re | |
IP_REGEXP = re.compile('(?:[0-9]{1,3}\\.){3}[0-9]{1,3}') | |
RESOLVER = 'https://ipinfo.io/{}/json' | |
def parse_args(): |
This file contains 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
# Pretty prompt in bash, cmder style | |
# better use with Twilight Dark terminal color scheme | |
GREEN=`tput setaf 2` | |
RED=`tput setaf 196` | |
GRAY=`tput setaf 239` | |
RESET=`tput sgr0` | |
BOLD=`tput bold` | |
WHITE=`tput setaf 15` | |
LAMBDA_8=`printf '\xce\xbb'` |
This file contains 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
answer_20 = 378158756814587 | |
def is_num_right(num): | |
if num < 100: | |
return sum(map(int, str(num))) <= 9 | |
for i in range(len(str(num)) - 2): | |
if sum(map(int, str(num)[i:i+3])) > 9: | |
return False | |
return True |
This file contains 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 python3 | |
from enum import Enum | |
from html.parser import HTMLParser | |
class Sex(Enum): | |
MALE = 1 | |
FEMALE = 2 | |
def __hash__(self): |
This file contains 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
using System; | |
using System.Collections.Generic; | |
namespace BaconsChipher | |
{ | |
class EntryPoint | |
{ | |
//public static int Module = 1000000009; | |
//public static int Module = 1073676287; | |
//public static int Module = 2147483647; |
This file contains 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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
namespace Clones | |
{ | |
public class FastStackNode<T> | |
{ | |
public FastStackNode<T> Prev; | |
public T Value; |
This file contains 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 | |
if [ "$1" = "-h" -o "$1" = "--help" ]; then | |
echo "This is script for adding text at the rigth corner" | |
echo "Usage: ./addtext.sh <input_directory> <text> <output_directory>" | |
exit 0 | |
fi | |
if ! [ "$1" ] || ! [ "$2" ] || ! [ "$3" ]; then | |
echo "Error: expected parameters (see -h or --help for more)" |
NewerOlder