Skip to content

Instantly share code, notes, and snippets.

View lifeparticle's full-sized avatar
🥥
0, 1, 2, 3…

Mahbub Zaman lifeparticle

🥥
0, 1, 2, 3…
View GitHub Profile
name: Deploy React Application to Pages
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
# https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/NeoKey_Trinkey/CircuitPython_HID_Cap_Touch_Example/code.py
import time
import board
import neopixel
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.keycode import Keycode # pylint: disable=unused-import
from digitalio import DigitalInOut, Pull
#!/bin/bash
# <bitbar.title>Sunrise and sunset time</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>S Mahbub-Uz Zaman</bitbar.author>
# <bitbar.author.github>lifeparticle</bitbar.author.github>
# <bitbar.desc>Sunrise and sunset time</bitbar.desc>
# <bitbar.image></bitbar.image>
# <bitbar.dependencies></bitbar.dependencies>
# <bitbar.abouturl></bitbar.abouturl>
  • ctrl + shift + p -> Windows cmd + shift + p -> macOS
  • Type open settings
  • Select Open Settings (JSON)
{
	"editor.fontFamily": "DroidSansMono Nerd Font",
	"editor.formatOnSave": true,
	"files.trimTrailingWhitespace": true,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.container {
import dash
from dash import dcc
from dash import html
import plotly.express as px
import pandas as pd
app = dash.Dash(__name__)
server = app.server
df = pd.read_csv("netflix_titles.csv")
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
show_id,type,title,director,cast,country,date_added,release_year,rating,duration,listed_in,description
s1,Movie,Dick Johnson Is Dead,Kirsten Johnson,,United States,"September 25, 2021",2020,PG-13,90 min,Documentaries,"As her father nears the end of his life, filmmaker Kirsten Johnson stages his death in inventive and comical ways to help them both face the inevitable."
s2,TV Show,Blood & Water,,"Ama Qamata, Khosi Ngema, Gail Mabalane, Thabang Molaba, Dillon Windvogel, Natasha Thahane, Arno Greeff, Xolile Tshabalala, Getmore Sithole, Cindy Mahlangu, Ryle De Morny, Greteli Fincham, Sello Maake Ka-Ncube, Odwa Gwanya, Mekaila Mathys, Sandi Schultz, Duane Williams, Shamilla Miller, Patrick Mofokeng",South Africa,"September 24, 2021",2021,TV-MA,2 Seasons,"International TV Shows, TV Dramas, TV Mysteries","After crossing paths at a party, a Cape Town teen sets out to prove whether a private-school swimming star is her sister who was abducted at birth."
s3,TV Show,Ganglands,Julien Leclercq,"Sami Bouajila, Tracy Gotoas
from selenium import webdriver
from urllib.parse import urljoin
from selenium.webdriver.chrome.options import Options
def navigate(driver, url, page_no):
driver.get(urljoin(url, str(page_no)))
def get_data(driver, class_name):
return driver.find_elements_by_class_name(class_name)
require "selenium-webdriver"
require 'uri'
def init_selenium_webdriver
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless')
return Selenium::WebDriver.for :chrome, options: options
end
def navigate(driver, url, page_no)
public class Main {
public static void main (String args[]) {
insertionSort(new int [] {1, 4, 7, 10, 2});
}
public static void insertionSort(int[] arr) {
int tmp, j;
for (int i = 1; i < arr.length; ++i) {
j = i;
while(j > 0 && arr[j] < arr[j-1]) {