This file contains hidden or 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
| # ============================================ | |
| # PowerShell Profile - Colorful & Informative | |
| # ============================================ | |
| # --- INSTALL THESE ONCE (if not already) --- | |
| # Install-Module -Name Terminal-Icons -Repository PSGallery -Force | |
| # Install-Module -Name PSReadLine -Force -SkipPublisherCheck | |
| # winget install JanDeDobbeleer.OhMyPosh -s winget | |
| # ============================= |
This file contains hidden or 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 requests | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.service import Service | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| from bs4 import BeautifulSoup | |
| import time | |
| import os | |
| Visited_pages = set() |
This file contains hidden or 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
| weatherSvgs = { | |
| "1000":"color/clear_day.svg", | |
| "1000":"color/clear_night.svg", | |
| "1001":"color/cloudy.svg", | |
| "4000":"color/drizzle.svg", | |
| "5001":"color/flurries.svg", | |
| "2100":"color/fog_light.svg", | |
| "2000":"color/fog.svg", | |
| "6000":"color/freezing_drizzle.svg", | |
| "6201":"color/freezing_rain_heavy.svg", |
This file contains hidden or 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 java.util.Scanner; | |
| public class Mains { | |
| public static void main(String[] args) { | |
| print("What is your name ? :"); | |
| String input = input(); | |
| print("your name is : " + input); |
This file contains hidden or 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
| <?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
| class Event extends MY_Controller{ | |
| function __construct() | |
| { | |
| parent::__construct(); | |
| } | |
| //$file is the file name from form input | |
| //example is <input type="file" name="my_image" > |
This file contains hidden or 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
| def fib(n): | |
| if n<=0: | |
| print("invalid input") | |
| elif n==1: | |
| return 0 | |
| elif n==2: | |
| return 1 | |
| else: | |
| return fib(n-1)+fib(n-2) |
This file contains hidden or 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 sqlite3 | |
| from faker import Faker | |
| from random import randrange | |
| fake = Faker() | |
| conn = sqlite3.connect('users.sqlite3') | |
| cursor = conn.cursor() |
This file contains hidden or 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
| var btn = document.getElementsByTagName('button'); | |
| for(let i=0; i<btn.length; i++){ | |
| btn[i].click(); | |
| console.log(i); | |
| } | |
| //open https://m.facebook.com/friends/center/requests/ | |
| // open consoe | |
| // copy your console | |
| // run | |
| // happy hacking !! |
This file contains hidden or 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
| /** | |
| * | |
| * @author ruiyot | |
| */ | |
| public class Fibonacci { | |
| /** | |
| * @param args the command line arguments | |
| */ | |
| public static void main(String[] args) { |
This file contains hidden or 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
| #! /bin/sh | |
| for file in *.mp4 *.mov *.mkv *.flv *.avi *.webm *.wmv; do | |
| mv -- "$file" /home/$USER/Videos | |
| done | |
| for file in *.jpg *.png *.webp *.svg *.jp*g *.JPG *.gif; do | |
| mv -- "$file" /home/$USER/Pictures | |
| done | |
| for file in *.mp3 *.mpeg *.m4a *.aac *.wma; do |
NewerOlder