View code_search.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View argparsetest.py
This file contains 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
#!/usr/bin/env python3 | |
"""Tests/examples for the argparse module. | |
Run "python3 argparsetest.py -h" for help. | |
""" | |
from argparse import ArgumentParser | |
def main(): |
View Makefile
This file contains 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
# Makefile for Mermaid files in this directory | |
# | |
# `make all` - build all targets | |
# `make png` - build PNGs for all source files | |
# `make svg` - build SVGs for all source files | |
# `make pdf` - build PDFs for all source files | |
# `make clean` - delete all targets | |
# `make listsources` - print list of all files to be processed | |
# `make listtargets` - print list of all output files |
View dirs_to_markdown.py
This file contains 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
#!/usr/bin/env python3 | |
# Walks a directory tree, creating a Markdown representation of it. | |
# | |
# First command line argumaent is root directory. Defaults to current directory. | |
import os | |
import sys | |
if len(sys.argv) > 1: |
View Makefile
This file contains 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
# Makefile for GraphViz files in this directory | |
# | |
# `make all` - build all targets | |
# `make clean` - delete all targets | |
# `make listtargets` - print list of all targets | |
# `brew install graphviz`, or download from <http://graphviz.org/download/> | |
# to get the `dot` utility. | |
DOT?=dot |
View Play White Noise.applescript
This file contains 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
-- Choose a white noise generator and play. | |
-- | |
-- Requires installation of SoX <http://sox.sourceforge.net> | |
-- With Homebrew: brew install sox | |
-- | |
-- Starts a background process. Kill it with command "killall play" or by running the "Stop Playing" script. | |
set theSynth to ¬ | |
choose from list {"pinknoise", "whitenoise", "brownnoise"} ¬ | |
with prompt ¬ |
View FontsView.swift
This file contains 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 SwiftUI | |
import UIKit | |
/// Displays all available fonts in a vertically scrolling view. | |
struct FontsView: View { | |
private static let fontNames: [String] = { | |
var names = [String]() | |
for familyName in UIFont.familyNames { | |
names.append(contentsOf: UIFont.fontNames(forFamilyName: familyName)) | |
} |
View DecodeGlass.swift
This file contains 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 Foundation | |
let codes: [UInt8] = [ | |
0b01101001, | |
0b01101100, | |
0b01101111, | |
0b01110110, | |
0b01100101, | |
0b01111001, | |
0b01101111, |
View Set Terminal Background Colors.applescript
This file contains 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
-- Set background colors of terminal windows to different colors, for easier identification | |
tell application "Terminal" | |
set window_colors to {¬ | |
{8192, 0, 0}, ¬ | |
{0, 8192, 0}, ¬ | |
{0, 0, 8192}, ¬ | |
{4096, 4096, 0}, ¬ | |
{0, 4096, 4096}, ¬ | |
{4096, 0, 4096}, ¬ |
View Hello.applescript
This file contains 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
tell application "SpeechRecognitionServer" | |
set possibleResponses to {¬ | |
"hello", ¬ | |
"good bye", ¬ | |
"good morning", ¬ | |
"good afternoon", ¬ | |
"good night", ¬ | |
"nice to meet you", ¬ | |
"pleased to meet you", ¬ | |
"how are you", ¬ |
NewerOlder