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 pandas as pd | |
| import numpy as np | |
| from tqdm import tqdm | |
| class SemenovEncoding(object): | |
| def __init__(self, C=10): | |
| self.C = C | |
| def fit(self, data, y, features='all'): |
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
| pragma solidity ^0.4.11; | |
| ///////// КОПИПАСТ | |
| // queue https://github.com/chriseth/solidity-examples/blob/master/queue.sol | |
| contract queue { | |
| struct Queue { | |
| uint[] data; | |
| uint front; | |
| uint back; | |
| } |
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
| pip install -U tensorflow | |
| pip install moviepy imageio | |
| python -c 'import imageio; imageio.plugins.ffmpeg.download()' | |
| git clone https://github.com/lengstrom/fast-style-transfer | |
| cd fast-style-transfer; ./setup.sh | |
| mkdir ../checkpoint |
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 os | |
| import time | |
| import requests | |
| GITHUB_USERNAME = os.getenv("GITHUB_USERNAME") | |
| GITHUB_TOKEN = os.getenv("GITHUB_TOKEN") | |
| REPOSITORY = os.getenv("REPOSITORY") | |
| USERNAME = os.getenv("USERNAME") | |
| def check_if_user_starred(username, repository): |
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
| GITHUB_TOKEN='token_with_public_or_private_repo_rights' | |
| # you can create your token here: | |
| # https://github.com/settings/tokens/new | |
| DATA='{ | |
| "name":"b2", | |
| "description":"Block 2", | |
| "homepage":"https://morejust.store/", | |
| "private":false, | |
| "has_issues":false, |
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 json | |
| import hmac | |
| import hashlib | |
| import requests | |
| import uuid as uuid_library | |
| import six.moves.urllib as urllib |
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
| USERNAME, PASSWORD = 'your_instagram_login', 'your_instagram_password' | |
| LOGIN_URL = 'https://i.instagram.com/api/v1/accounts/login/' | |
| REQUEST_HEADERS = { 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8' } | |
| IG_SIG_KEY = '99e16edcca71d7c1f3fd74d447f6281bd5253a623000a55ed0b60014467a53b1' | |
| # I have more devices here: | |
| # https://github.com/instagrambot/instabot/blob/72d10447986db39ac95f3d0980936d9c08428b02/instabot/api/devices.py | |
| # idk which to use, let's for now use this one, because it is just works |
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
| USERNAME, PASSWORD = 'your_instagram_login', 'your_instagram_password' | |
| LOGIN_URL = 'https://i.instagram.com/api/v1/accounts/login/' | |
| REQUEST_HEADERS = { 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8' } | |
| IG_SIG_KEY = '99e16edcca71d7c1f3fd74d447f6281bd5253a623000a55ed0b60014467a53b1' | |
| # I have more devices here: | |
| # https://github.com/instagrambot/instabot/blob/72d10447986db39ac95f3d0980936d9c08428b02/instabot/api/devices.py | |
| # idk which to use, let's for now use this one, because it is just works |
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 uuid as uuid_library | |
| import hmac | |
| import json | |
| import hashlib | |
| import requests | |
| import six.moves.urllib as urllib | |
| def hex_digest(*args): | |
| m = hashlib.md5() | |
| m.update(b''.join([arg.encode('utf-8') for arg in args])) |
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
| phone_id = generate_uuid() | |
| uuid = generate_uuid() | |
| device_id = generate_device_id(hex_digest(USERNAME, USERNAME)) | |
| data = json.dumps({ | |
| 'phone_id': phone_id, | |
| 'device_id': device_id, | |
| 'guid': uuid, | |
| 'username': USERNAME, | |
| 'password': PASSWORD, |
OlderNewer