Skip to content

Instantly share code, notes, and snippets.

View fish2000's full-sized avatar
👉
MINUTE CONCERN, EXTRAORDINARY CONFLAGRATION

Alexander Böhn fish2000

👉
MINUTE CONCERN, EXTRAORDINARY CONFLAGRATION
  • Objects in Space and Time, LLC
  • Baltimore, MD
  • X @fish2000
View GitHub Profile
@fish2000
fish2000 / textmate-crash-0.log
Last active April 22, 2020 07:33
Textmate 2.0.8 crashes
Process: TextMate [14735]
Path: /Applications/TextMate.app/Contents/MacOS/TextMate
Identifier: com.macromates.TextMate
Version: 2.0.8 (9800)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: TextMate [14735]
User ID: 501
Date/Time: 2020-04-22 03:03:00.060 -0400
@fish2000
fish2000 / method-attributes.py
Created March 31, 2020 13:59
Not much just oh you know inspecting __closure__ attributes, what about you?
# -*- coding: utf-8 -*-
from pprint import pprint
WIDTH = 100
outside = 'varible defined outside'
class YoDogg(object):
def meth2(self):
@fish2000
fish2000 / CODEPOINTS-PLUS-PLUS.txt
Created March 11, 2020 12:13
You want codepoints, I got some codepoints
øº¶®§•†¶¥•øç•≈£¢≈ç¶∞ƒ∆÷ø…¥˚¶•…ØÓˆÚ؈ÓÔÚ˝Ø°Áˆ¨˙ø˙ˆ; 7
98¬
“øºø¨¥ø¶•§•¥¨∆øπ˜µø√ç≈ƒç©√˙∫˜¬µ…≤ˆø†®†¢´¢¢£∑∞´ß®∂†¥≈ç≈˙Ω®„¸®ßÁ‹›´Å͡›‹fi„fl´fi‡fl‰”
¶åœ£¢∑ç…π•ø∞§∂´•§ˆ∞¶©®ª˙¶πª§ˆ∂´µ©˙ƒ©˙≥¨®•§™∑£´∞fl‡°fl˝‰Óˇ°fiÓı˜Î˝ˆ´fiÎÒ—±·‚°·‡fl°fi‡›fl‡‹fiflfl’∏”Ò’ÆÚ¯˘˘¿¯ÂÔ¿ÒÚÁfl›Áfi€‹‹Œ„fifl›ÍfiÁ‹´˛Ç‰›“››‘
º–ˆø“ºˆ”
≥æ…¬“π≠ºˆ–º—‚”∏Ø·‚ˆ«‘“»’∏”Ø‚∏Ò‘’»‘‘”–º¶ª•ºªπ¥¶§ºª‚؈—‚‘‘
`¡™£¢∞§¶•ªºº––≠œ∑´®®†¥¨¨ˆøπ“‘«»’”åß∂ƒ©˙∆˚¬…ææΩ≈ç√∫˜µ≤≥÷
`⁄€‹››fiflfl‡°·‚‘——±Œ„“´‰ˇÁ¨ˆØ∏”’»ÅÍνÓÔÒÚÆƸ˛Ç◊ı˜˜Â¯˘¿
⌘♾⚠︎〒⏤⏣⏉⍯⍰⍚⌰⌽⎇⌫⇧⎋⏏︎⌥→⌕⌀⎈❂◉⦿▶︎◀︎►◆❖Ω☂︎
🔜🔛🔚🔙➖➕⚫️⬛️⚠️🔞🚫☢️❌🌈⚡️
@fish2000
fish2000 / HelloJNI.cc
Created March 4, 2020 15:04
JNI Method Signatures
2
3
4
5
6
7
8
9
10
@fish2000
fish2000 / CppCoreGuidelines.md
Last active November 20, 2023 12:03
C++ Core Guidelines, by the ineffable BJ Stroustrup and Herbal Sutter the Most High
@fish2000
fish2000 / Compile to C++.tmCommand.rb
Last active February 26, 2020 00:19
TextMate® Cap‘n’Proto™ bundle commands – not pretty but also thus far not unreliable
#!/usr/bin/env ruby
#
# The estutely aware will of course immediately recognize this hackjob as
# a copypasta from assorted TextMate Ruby bundle sources – I am in no way
# a Ruby programmer so feel free to completely rewrite all of it in a single
# terse statement, or derisively mock it or ignore it completely – don’t ever
# say I never gave you options doggie
#
# • Scope Selector = ‘source.capnp’
# • Semantic Class = ‘process.run.capnp’
@fish2000
fish2000 / dialog.sh
Last active February 1, 2020 04:02
All the help for all the options for TextMate 2’s “Dialog2” command
#!/usr/bin/env bash
DIALOG="/Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2"
$DIALOG help
# usage: "$DIALOG" [--version] <command> [<args>]
# 10 commands registered:
# alert: Show an alert box.
# defaults: Register default values for user settings.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>author</key>
<string>Alexander Böhn</string>
@fish2000
fish2000 / sigbytes.py
Last active May 10, 2019 01:25
Python CLT to print out the first eight bytes – aka the “signature” – of one or more files
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# sigbytes.py
#
# Read and print the first 8 or so bytes of a file,
# For, like, tests and stuff
# (c) 2015 Alexander Bohn, All Rights Reserved
#
u"""
@fish2000
fish2000 / django-string-signing.js
Last active April 24, 2019 21:02
Django string signing in JavaScript (using String object prototypes)
/// Makes use of “hashes.js” -- q.v. https://git.io/fjsmQ
(function (hashes, undefined) {
var SIGNATURE_LENGTH = 27,
SIGNATURE_SALT = 'django.core.signing.Signer',
SIGNATURE_SECRET = 'YO DOGG',
SIGNATURE_SEPARATOR = ':',
SIGNATURE_DJANGO_SALT = 'signer';