List git gist
This script will print the output in HTML format on stdout. Console command
$ python list_your_gitgist.py > out.html
import os | |
import re | |
import sys | |
import json | |
import tweepy | |
import requests | |
def twitter_authentication(): | |
return tweepy.Client( |
name: Deploy React Application to Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read |
public static boolean isPrime(int number) { | |
if (number < 2) | |
return false; | |
if (number == 2 || number == 3) | |
return true; | |
if(number % 2 == 0 || number % 3 == 0) | |
return false; |
public static boolean isPrime(int number) { | |
if (number < 2) | |
return false; | |
if (number == 2) | |
return true; | |
if(number % 2 == 0) | |
return false; |
MIT License | |
Copyright (c) 2023 Mahbub Zaman | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
public static boolean isPrime(int number) { | |
int factorCount = 0; | |
for (int i = 1; i <= number; i++) { | |
if (number % i == 0) | |
factorCount++; | |
} | |
return factorCount == 2 ? true : false; | |
} |
List git gist
This script will print the output in HTML format on stdout. Console command
$ python list_your_gitgist.py > out.html
# 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
{
"editor.fontFamily": "DroidSansMono Nerd Font",
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,