Skip to content

Instantly share code, notes, and snippets.

View AhsanSN's full-sized avatar
💭
Making Spaghetti since 2013 👨‍💻

Ahsan Ahmed AhsanSN

💭
Making Spaghetti since 2013 👨‍💻
View GitHub Profile
@AhsanSN
AhsanSN / myfirstgist.txt
Created July 11, 2018 13:12
my first gist
hey! this is my first gist! bye!
> library(dplyr)
> library(ggplot2)
> library(statsr)
> data(nycflights)
//ggplot
> ggplot(data = nycflights, aes(x= dep_delay)) +geom_histogram()
//mean
> nycflights %>% summarise(mean_dd = mean(dep_delay))
@AhsanSN
AhsanSN / ut
Last active November 7, 2019 06:23
import subprocess as sp
import time
for i in range (0, 500):
for j in range (0, 500):
child = sp.Popen('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito' % "https://www.youtube.com/watch?v=SmVy3iPm-_g&feature=youtu.be")
time.sleep(48)
child.terminate()
child = sp.Popen('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito' % "https://www.youtube.com/watch?v=trRLkiMpYAo&feature=youtu.be")
time.sleep(50)
DECLARE @i int = 0
WHILE @i < 50
BEGIN
SET @i = @i + 1
insert into Fuel (Fuel_type, price, Data_modified) values ('High-Octane',(FLOOR(RAND()*(200-50+1)+50)), CONCAT((FLOOR(RAND()*(12-1+1)+1)),'/', (FLOOR(RAND()*(30-1+1)+1)), '/', (FLOOR(RAND()*(2019-2000+1)+2000))))
END
/**
import requests
import json, os
from threading import Timer
currentBookingInfo = "";
currentLocation = [1,1];
def getNextBookingDetails(currentBookingId):
URL = "http://ventoms.com/anomoz/swift/post/read_new_booking.php?currentBookingId="+str(currentBookingId)
r = requests.get(url = URL)
723425973:AAHrDLj-bFxSoy2ncAwGSkq22iuFMjT6sO8
r = requests.get(url = "https://api.telegram.org/bot723425973:AAHrDLj-bFxSoy2ncAwGSkq22iuFMjT6sO8/sendMessage?chat_id=@osama_channel&text="+message)