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
// Define NeedsTimingInfo as true at the global scope to enable GetTimingInfo() | |
var NeedsTimingInfo = true; | |
/////////////////////// | |
// ProcessMIDI Functions | |
// NOTE: ProcessMIDI() can be used as the main event loop in an application. | |
// It will be called repeatedly and events will be generated according to the TiminInfo | |
/* |
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
Homebrew build logs for mit-scheme on macOS 12 | |
Build date: 2022-12-22 00:32:52 |
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
""" | |
Configuration example for ``ptpython``. | |
Copy this file to ~/.ptpython/config.py | |
""" | |
from __future__ import unicode_literals | |
from prompt_toolkit.filters import ViInsertMode | |
from prompt_toolkit.key_binding.input_processor import KeyPress | |
from prompt_toolkit.keys import Keys | |
from pygments.token import Token |
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
-- 1) Install Postgres.app, seriously (Before doing this I was wrestling with a socket error connecting to the DB that many people have on StackOverflow etc. but multiple remedies didn't work. Feel free to waste time on this but I stopped wasting time on it this way.) | |
-- 2) Append path to Postgres.app bin directory to end of $PATH in .bash_profile | |
-- 3) At this point running py scripts that include psycopg2 will work, but import | |
-- in the (Anaconda, (YMMV with other Py shells)) Python shell will not, so ... | |
-- 4) $ sudo ln -s /Applications/Postgres.app/Contents/Versions/9.3/lib/libssl.1.0.0.dylib /opt/local/lib/libssl.1.0.0.dylib | |
-- 5) $ sudo ln -s /Applications/Postgres.app/Contents/Versions/9.3/lib/libcrypto.1.0.0.dylib /opt/local/lib/libcrypto.1.0.0.dylib | |
-- (Anaconda, (YMMV with other Py shells)) Psycopg2 in Python shell can't find and link to these dylibs that | |
-- are part of Postgres distro unless there are sym links in the fs under the same user | |
-- that launches the Python shell | |
-- 6) Use the defaul |
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/python | |
from glob import glob | |
import json | |
import sys | |
def main(path): | |
files = glob(path) | |
for file in files: |
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
#!/bin/bash | |
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
sudo rm -rf /var/db/receipts/com.mysql.* | |
sudo rm /etc/my.conf | |
sudo vi /etc/hostconfig # (Remove line MYSQLCOM=-YES) | |
sudo rm -rf /Library/Reciepts/mysql* | |
sudo rm -rf /Library/Reciepts/MySQL* |
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
#include <stdio.h> | |
/* Introduction | |
Code for "Beautiful Code" Chapter 10, "The Quest for an Accelerated | |
Population Count" by Henry Warren. | |
The function pop*() counts the number of 1 bits in a word | |
Used in set operations represented as bit arrays (e.g. DB bit indexes) | |
among other uses discussed in the book. | |
This code just makes working versions of the examples, so one can step |
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
# Convert a line of a block to textile | |
def make_textile(line) | |
j = 0 | |
prefix = '' | |
while line[j] == 32 | |
prefix.concat " " | |
j += 1 | |
end | |
line = line.strip | |
if line.length > 0 |