- What is Git and Github?
- Usage of git and Github
- Difference between git and Github.
- Setting up Git on different platforms.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import reduce | |
def gcd(a,b): | |
if b%a == 0: | |
return a | |
else: | |
return gcd(b%a, a) | |
def lcm(*args): | |
def lcm(a,b): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# record for 30 seconds | |
# LINUX | |
ffmpeg -f x11grab -t 30 -i :0 -y record.mp4 | |
# WINDOWS | |
ffmpeg -f gdigrab -t 30 -i desktop -y record.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
import getpass | |
me = input("Enter sender email : ") # sender email, must enable LessSecureApps | |
user = me | |
pwd = getpass.getpass("Enter password for {} : ".format(user)) | |
# you == the recipient's email address | |
you = input("Enter receiver email : ") # receiver email | |
msg = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ffmpeg to get images from video | |
# ffmpeg -i input.mp4 -vf fps=30 ~/gif/giffy%03d.bmp | |
# gets 30 images per second | |
# use -ss to skip to time, and -t to set duration | |
# script is better than standalone command, due to behavior when force quitting | |
while true; do for i in ~/gif/*.*; do feh --bg-fill $i; done; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wallgen import * | |
import os | |
from PIL import Image | |
import numpy as np | |
import cv2 | |
import sys | |
if len(sys.argv) < 1: | |
print("Needs file path ") | |
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
from wallgen import * | |
import os | |
from PIL import Image | |
import numpy as np | |
import cv2 | |
import sys | |
ERASE_LINE = '\x1b[2K' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
from wallgen import * | |
import os | |
from PIL import Image | |
import numpy as np | |
import cv2 | |
import sys | |
if len(sys.argv) < 1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageDraw | |
import cv2 | |
import numpy as np | |
import os | |
import sys | |
if len(sys.argv) < 2: | |
print("Needs file path ") | |
sys.exit(1) |
OlderNewer