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 telebot | |
from telebot import apihelper | |
import socket | |
import socks | |
import pyowm | |
import math | |
ip = '95.216.224.183' # change your proxy's ip | |
port = 1080 # change your proxy's port |
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
curl https://mainnet.infura.io \ | |
-X POST \ | |
-H "Content-Type: application/json" \ | |
-d '[{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x85BA036e91B291cd044724a866C3B9533Ab29Fa9", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x80834943d07B98C2690AD94C9125Bd2974569C7c", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xDcc5be8B710052D489C504fe6Fbc29A1c671247b", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xB98c31Ed522FD4c05f2eb729F665901dF8508C34", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x8a0041d8f932F2e51fC48672648D0516353925f1", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xE745a99e0DfCAb8C5F1731a32Be57C311f53774d", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x6c40Dc4e0255215478Ed6E8C8De6AC21106fD20f", "latest"],"id":2},{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x308b0d941883252bc631Bb5fd45EAdC6CcbFc007", |
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 | |
/** | |
* @param string $happyWords Happy Words!!! | |
* @return string Unhappy Words 😢😢😢 | |
*/ | |
function stealingSmiles(string $happyWords): string | |
{ | |
return preg_replace('/(\){2,})/', ')', $happyWords); | |
} |
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 | |
class Knapsack | |
{ | |
/** | |
* @var Thing[] | |
*/ | |
protected $things = []; | |
/** |
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 | |
/** | |
* Сказ о том как хипстеры смузи делили | |
* | |
* @param int $m Общее кол-во смузи | |
* @param int $n Кол-во хипстеров | |
* @return int | |
* @throws TrueStoryException | |
*/ | |
function distributeSmoothies(int $m, int $n) |
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
<template> | |
<div class="mt-4" v-if="pagination.total_pages > 1"> | |
<nav aria-label="Page navigation example"> | |
<ul class="pagination"> | |
<li class="page-item" | |
@click="onPaginate(pagination.current_page - 1)" | |
> | |
<a class="page-link" href="#" aria-label="Previous" | |
:class="{'disabled-pagination-link': pagination.current_page === 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
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1495324348292", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1495324341274", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::evgeniy.marthenov/attachments/*" |
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 | |
$mapReplaces = [ | |
'ORDER_ID' => 'MARGO' | |
]; | |
$text | |
= '<?xml version="1.0" encoding="utf-8"?> | |
<ShipOrderDocument xmlns="http://schemas.quietlogistics.com/V2/ShipmentOrder.xsd" > | |
<ClientID>SKITHEEAST</ClientID> |
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
_get(endpoint, options = {}) { | |
return get(`${this.baseURL}${endpoint}`) | |
.query(options) | |
.set('auth', this.token) | |
.then(res => { | |
this.ratelimit = { | |
'x-ratelimit-limit': res.headers['x-ratelimit-limit'], | |
'x-ratelimit-remaining': res.headers['x-ratelimit-remaining'], | |
'x-ratelimit-reset': res.headers['x-ratelimit-reset'], | |
} |
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
[ | |
'id' => 3, | |
'teams' => [ | |
[ | |
'players' => [ | |
235235233, | |
763435235 | |
], | |
'winner' => true |
NewerOlder