Skip to content

Instantly share code, notes, and snippets.

View elmissouri16's full-sized avatar
🏠
Working from home

Elmissouri elmissouri16

🏠
Working from home
View GitHub Profile
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
@elmissouri16
elmissouri16 / read-write-file.js
Created January 22, 2018 16:38
Read Write to file with javascript
/// 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();
dfrgrg
@elmissouri16
elmissouri16 / code.js
Last active September 21, 2020 23:47
function alertFunction(){
alert('Wow is working');
}
function returnValue(){
return 45845;
}
window.demo ={
alertFunction,returnValue
}
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))
}
@elmissouri16
elmissouri16 / licences.json
Last active December 3, 2023 20:51
simple license system for my bots
[
{
"username": "Kamranrv",
"active": false
},
{
"username": "Ahmedhussain391",
"active": true
},
{
@elmissouri16
elmissouri16 / polygone.dart
Last active May 9, 2021 22:20
function to check if cordinates inside polygone for dart and flutter framework
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;
@elmissouri16
elmissouri16 / test.py
Created August 19, 2021 18:45
for set_device error
from instagrapi import Client
device = {'android_version': '29',
'android_release': '10.0',
'dpi': '420dpi',
'resolution': '1080x2340',
'manufacturer': 'OnePlus',
'device': 'GM1903',
'model': 'OnePlus7',
'cpu': 'qcom',
@elmissouri16
elmissouri16 / instagram_user_information.py
Created October 4, 2024 18:55 — forked from GONZOsint/instagram_user_information.py
Script to obtain Instagram user informaption
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]