Skip to content

Instantly share code, notes, and snippets.

View glennhefley's full-sized avatar
💭
I may be slow to respond.

Glenn Hefley glennhefley

💭
I may be slow to respond.
View GitHub Profile
@glennhefley
glennhefley / ExportAllCSVinOneSpreadsheet.gs
Created July 14, 2020 19:58 — forked from simongcc/ExportAllCSVinOneSpreadsheet.gs
Google script to export all csv in one spreadsheet
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet
* Note: This script uses the DocsList.createFile() method, which is only available for Google Apps accounts.
* author: Michael Derazon
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
@glennhefley
glennhefley / nav_concept_index.html
Last active January 9, 2022 10:11
Navigation Awesome
<html>
<head>
<meta charset="utf-8">
<title>The Page with No Name</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.3/gsap.min.js"></script>
@glennhefley
glennhefley / blob.py (perfect size)
Created February 21, 2022 07:38
NLTK passage into with TextBlob.py
#!python
'''
In a nut shell textBlob fits all my needs. This little gem took less than thirty minutues from discovery to completion. Prototyping will now be a simple matter, and proofs of concepts down to the improv level of setup requirments.
'''
import re
from textblob import TextBlob
px = 'VB?' # search for later
@glennhefley
glennhefley / animated-tab-bar.markdown
Created November 18, 2022 17:48
Animated Tab Bar
@glennhefley
glennhefley / concat.py
Created January 3, 2024 11:51
A ConCat in Python
#I need a python script that will cat
#all of the *.html files in a single level directory
# into one file: newfile.html
import glob
import shutil
html_files = glob.glob('*.html')
with open('newfile.html', 'wb') as outfile:
@glennhefley
glennhefley / README.md
Created April 11, 2024 07:16 — forked from TheOnlyWayUp/README.md
Wattpad: VoteAllParts.js

This script votes for all the parts in a Wattpad Story at once.

How to use:

  • Visit the URL of a Story (Ensure this is the page which has a table of contents, the story's tags, ...)
  • Press ctrl + shift + j. This opens the Developer Console.
  • Copy the script in this gist (below, and in script.js. Copy from whatever's convenient.)
  • Paste the code into the Developer Console on the Wattpad Tab, hit enter.
  • Great, you're done!

Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.

"0o", "0s", "3a", "3b", "3d", "6b", "6o", "a", "a1", "a2", "a3", "a4", "ab", "able", "about", "above", "abst", "ac", "accordance", "according", "accordingly", "across", "act", "actually", "ad", "added", "adj", "ae", "af", "affected", "affecting", "affects", "after", "afterwards", "ag", "again", "against", "ah", "ain", "ain't", "aj", "al", "all", "allow", "allows", "almost", "alone", "along", "already", "also", "although", "always", "am", "among", "amongst", "amoungst", "amount", "an", "and", "announce", "another", "any", "anybody", "anyhow", "anymore", "anyone", "anything", "anyway", "anyways", "anywhere", "ao", "ap", "apart", "apparently", "appear", "appreciate", "appropriate", "approximately", "ar", "are", "aren", "arent", "aren't", "arise", "around", "as", "a's", "aside", "ask", "asking", "associated", "at", "au", "auth", "av", "available", "aw", "away", "awfully", "ax", "ay", "az", "b", "b1", "b2", "b3", "ba", "back", "bc", "bd", "be", "became", "because", "become", "becomes", "becoming", "been", "before"
<style type="text/css">
h1,h2,h3,h4,h5,h6{color:#efefef; font-weight:100; font-family:Julius Sans One, serif;}
div,span, p{font-family:'Noto Sans', serif; font-size:18px;line-height:28px; font-weight:100px;text-indent:10px;}
li{padding-bottom:14px; font-size:16px; color:#fef7e8;}
a{color: #d0e0e3; font-family: Quicksand;}
a:hoover{color:#caf5f3;}
b, strong{color:#e8f3fe;}
.chat{
border-radius: 15px; width:100%; padding-bottom:23px;padding-left:16px; background-color: #087f5b; border-bottom:1px solid;
}
// ==UserScript==
// @name Compteur de mots et caractères Notion
// @name:en Notion word and caracters count
// @namespace https://github.com/paulverbeke
// @version 1.2
// @downloadURL https://gist.github.com/paulverbeke/092fbc514267b2fa56af6ffe43141119/raw/Compteur%2520de%2520mots%2520et%2520caract%25C3%25A8res%2520Notion.user.js
// @updateURL https://gist.github.com/paulverbeke/092fbc514267b2fa56af6ffe43141119/raw/Compteur%2520de%2520mots%2520et%2520caract%25C3%25A8res%2520Notion.user.js
// @description Affiche un simple compteur de mots et caractères dans Notion
// @description:en Displays a simple word and caracters count in Notion
// @author paulv
@glennhefley
glennhefley / pgn-dev.py
Last active June 27, 2024 18:43
Here's a Python script that provides the functionality to discover PGN files in the current directory, list them, combine them into a single PGN file, delete the original files, and exit the program based on user prompts:
'''
Here's a Python script that provides the functionality to discover PGN files in the current directory, list them, combine them into a single PGN file, delete the original files, and exit the program based on user prompts:
Explanation:
discover_pgn_files(): This function lists all files in the current directory that have the .pgn extension.
list_pgn_files(pgn_files): This function prints the list of discovered PGN files.
combine_pgn_files(pgn_files, output_file='combined.pgn'): This function combines all the discovered PGN files into a single output file named combined.pgn by default.
delete_pgn_files(pgn_files): This function deletes the PGN files listed in the pgn_files list.
main(): The main function that provides a menu for the user to choose options: combine PGN files, delete original PGN files, or exit the program.