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 requests | |
import re | |
import sys | |
import json | |
def obtain_ids(user): | |
response = requests.get('https://www.instagram.com/' + user) | |
appid = re.search('appId":"(\d*)', response.text)[1] | |
serverid = re.search('server_revision":(\d*)', response.text)[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
from instagrapi import Client | |
device = {'android_version': '29', | |
'android_release': '10.0', | |
'dpi': '420dpi', | |
'resolution': '1080x2340', | |
'manufacturer': 'OnePlus', | |
'device': 'GM1903', | |
'model': 'OnePlus7', | |
'cpu': 'qcom', |
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 'dart:math'; | |
// function to check if cordinates inside polygone | |
bool polygoneContains(List<LatLng> points, num lat, num lng) { | |
List<Point<num>> _points = | |
points.map((e) => Point<num>(e.latitude, e.longitude)).toList(); | |
num ax = 0; | |
num ay = 0; | |
num bx = _points[points.length - 1].x - lat; | |
num by = _points[points.length - 1].y - lng; | |
int depth = 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
[ | |
{ | |
"username": "Kamranrv", | |
"active": false | |
}, | |
{ | |
"username": "Ahmedhussain391", | |
"active": true | |
}, | |
{ |
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 delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
(async () => { | |
for (let index = 0; index < 10; index++) { | |
await delay(2000).then(() => console.log(index)) | |
} |
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 alertFunction(){ | |
alert('Wow is working'); | |
} | |
function returnValue(){ | |
return 45845; | |
} | |
window.demo ={ | |
alertFunction,returnValue | |
} |
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
dfrgrg |
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
/// write to file | |
var txtFile = "c:/test.txt"; | |
var file = new File(txtFile); | |
var str = "My string of text"; | |
file.open("w"); // open file with write access | |
file.writeln("First line of text"); | |
file.writeln("Second line of text " + str); | |
file.write(str); | |
file.close(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace test_manual_reset_event | |
{ | |
internal class Program |