Skip to content

Instantly share code, notes, and snippets.

@100ideas
100ideas / brew-lsbrews
Last active March 17, 2022 04:11
lsfuncs.fish: Print user-defined Fish functions (including any executable files in first path of `$fish_user_paths`)
#!/usr/bin/env bash
#
#!/usr/bin/env bash
#: Usage: brew lsbrews [OPTION]
#:
#: list name: description of all instealled "leaf" formulae
#:
# disables logging the script's contents to .bash_history
set +o history
@100ideas
100ideas / README.md
Last active December 3, 2023 17:37 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.

how to extract subtitles or closed caption from youtube url

Hello, I personally was looking for a simple minimal script that performed just this function: parsing vtt, discarding timecodes, merging chronologically close lines into a larger block, and outputting the result in a human-readable txt file. Just wanted to say that in my use case I prefer the way it merges multiple lines into a less-fine-grained time code.

@glasslion, thanks a lot for sharing this script!

vtt2text.py is a nice little script by glasslion I just found that seems to do what I am looking for - convert subtitle file, even closed-captioning "roll-up" style webvtt formats like what I have, into human-friendly full-page transcript.

@100ideas
100ideas / delete-all-ds_store.command
Created March 26, 2020 19:46
recursively finds "hidden" .DS_store files then prompts to delete
#!/bin/bash
# delete-all-ds_store.command
#####################################################################
# @100ideas - 26 mar 2020 - MIT LICENSE
#
# recursively finds "hidden" .DS_store files under the directory
# from which this command is run, then offers delete prompt
#
# if you have just downloaded this file, open iterm.app, drag
@100ideas
100ideas / mobx_store.ts
Created October 18, 2019 05:59 — forked from faiyaz26/mobx_store.ts
MobX depedency tree
import {action, computed, observable, runInAction} from 'mobx';
import Loadable from './loadable';
export default class Loadable<T> {
// our state entity class
public static create<T>(val?: T) {
return new Loadable<T>(val);
}
@100ideas
100ideas / esnextbin.md
Created June 28, 2019 07:00
esnextbin sketch
@100ideas
100ideas / TextBlockEditor.jsx
Last active March 27, 2019 12:13
playing around w/ remirror editor react component
// remirror.js hellow world example code
//
// src
// https://github.com/ifiokjr/remirror/blob/master/docs/examples/document-model.tsx
//
// discussion
// https://discuss.prosemirror.net/t/using-with-react/904/14
import React, { FunctionComponent, MouseEventHandler, useState } from 'react';
@100ideas
100ideas / FileSystemProgrammingGuide.book.json
Last active June 8, 2021 16:41
Kapeli Dash.app docset request - 45 Guides ("books") from apple developer archive library
{
"version": "4.4.6",
"needsAdditionalLinksSeparator": false,
"type": "Conceptual Flow",
"relatedBooks": [],
"technology": "Data Management: File Management",
"title": "File System Programming Guide",
"assignments": [
"Type/Guide",
"Topic/Data Management/File Management"
@100ideas
100ideas / lsfuncs.fish
Last active October 16, 2018 21:52
fish shell script to print list of user-defined Fish functions (including any executable files in first path of $fish_user_paths)
# author @100ideas
# latest revision 2018-10-16
function lsfuncs --description 'Print user-defined Fish functions (including any executable files in first path of $fish_user_paths).'
# NOT CURRENTLY USED
# eventually would be handy to return info on single command glob if provided via fish_opt & argparse
# i.e. `apropos` mode
# http://fishshell.com/docs/current/commands.html#fish_opt
set -l options (fish_opt -s a -l all)
@100ideas
100ideas / del-node-modules.sh
Last active December 23, 2020 20:38
recursively Spotlight-ignore or delete node_modules folders
#!/bin/bash
# delete node_modules folder recursively from a specified path using command line
# taken from https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
@100ideas
100ideas / ReadingListCatcher.ipynb
Last active March 21, 2018 08:04 — forked from ttscoff/ReadingListCatcher.py
A script for exporting Safari Reading List items to Markdown files and Pinboard bookmarks - with jupyter notebook playground version (look for python3 comment toggles)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.