Skip to content

Instantly share code, notes, and snippets.

View arsalanses's full-sized avatar
🧠
lets play chess

Arsalan Sefidgar arsalanses

🧠
lets play chess
View GitHub Profile
@behroozam
behroozam / rename.py
Created July 27, 2019 07:20
rename by CSV
#!/usr/bin/env python3
import os
import csv
# Coded by behroozam
# Twitter @b3hroozam
CSV_FILE_LOCATION = "./trim.csv"
PICTURES_SRC = "pictures/"
@amin3mej
amin3mej / GoToEnd.js
Last active May 31, 2021 06:20
go to end
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function run() {
let last;
for (let i = 0; i < 2;) {
await sleep(2000);
if(last == document.body.scrollHeight) i++;
window.scrollTo(0,document.body.scrollHeight);
@bradtraversy
bradtraversy / django_cheat_sheet.md
Last active October 12, 2024 12:00
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
@spaghettiSyntax
spaghettiSyntax / compound.py
Created December 6, 2017 07:15
Tony Gaddis Python: Compound Interest
#ch_2_jrn_4
#Exercise 14
#This program calculates
#Compound Interest
print(' ')
print('Calculate compound interest by inputting values.')
print(' ')
@paulmillr
paulmillr / active.md
Last active November 18, 2024 12:19
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers