Skip to content

Instantly share code, notes, and snippets.

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

Muhammadhussein Ammari xmha97

🏠
Working from home
View GitHub Profile
@ahbanavi
ahbanavi / amozeshyar_bypass_igap.user.js
Created February 20, 2021 11:05
Bypass Amozeshyar iGap code
// ==UserScript==
// @name Amozeshyar Bypass iGap
// @version 1
// @description Bypass Amozeshyar iGap code
// @author Yedoost
// @match http://stdn.iau.ac.ir/Student/captchaProcess
// @match http://stdn.iau.ac.ir/Student/manageAccount
// @grant none
// ==/UserScript==
@ebraminio
ebraminio / time-calculator.html
Last active February 8, 2022 12:35
dead simple calculator for time
<textarea id=input style="width: 50%; height: 5em; white-space: pre" oninput="result.innerText = calculate(this.value)"></textarea>
<div id=result></div>
<script>
window.onload = () => {
input.value = '1d 2h 3m 4s + 4h 5s - 2030s + 28h';
input.dispatchEvent(new Event('input'))
};
function calculate(input) {
const units = Object.entries({ d: 86400, h: 3600, m: 60, s: 1 });
const seconds = eval(
@SalehDehqanpour
SalehDehqanpour / InterviewQuestion.md
Last active November 18, 2023 12:06
Netbox Interview Question

Netbox Interview Question

Solve only one of these problems and send its problem number and your solution via email. Earlier problems are a bit more challenging and hence appreciated. So first try to solve problem 1, and only if you could not solve it gracefully, proceed to the next problem.

In addition to a correct response, follow practices of clean code and refactor it neatly. The quality of your solution is of paramount importance.

Problem #1

We need a scrapy project to crawl filmnet.ir. The desired solution should be able to crawl movies from this service. (Only crawl the latest ~100 movies or so)