Skip to content

Instantly share code, notes, and snippets.

View 1024jp's full-sized avatar
👻
boo

1024jp 1024jp

👻
boo
View GitHub Profile
@1024jp
1024jp / Insert new line above current line.applescript
Last active August 29, 2015 14:10
Insert new line above current line
(*
Insert new line above current line
[version] 1.0.0
[release] 2014-11-22
[author] 1024jp <http://wolfrosch.com/>
[licence] MIT License
*)
@1024jp
1024jp / Insert new line below current line.applescript
Created November 22, 2014 09:53
Insert new line below current line
(*
Insert new line below current line
[version] 1.0.0
[release] 2014-11-22
[author] 1024jp <http://wolfrosch.com/>
[licence] MIT License
*)
@1024jp
1024jp / .gitignore
Last active October 7, 2019 16:23
Documents for CotEditor prerelease
# macOS
.DS_Store
@1024jp
1024jp / swedischRound.c
Created December 30, 2015 17:30
round to the nearest 0.5
double swedishRound(double number) { return round(2.0 * number) / 2.0; }
@1024jp
1024jp / symbolizing_osx_crash_logs.md
Created October 16, 2016 12:40 — forked from bmatcuk/symbolizing_osx_crash_logs.md
How to symbolize OSX crash logs

How to Symbolize OSX Crash Logs

Unfortunately, xcode does not yet have support for importing OSX crash logs and symbolizing them. Therefore, you must use the command line and a little bit of manual work.

  1. Find your dSYM file.
    1. Assuming you are using xcode's archive functionality, open the Organizer window from the Window menu.
    2. Click the Archives tab.
    3. Right click on the appropriate build and select Show in Finder.
    4. When Finder opens, right click on the selected archive and select Show Package Contents.
    5. Navigate to the dSYM directory and copy the appropriate dSYM file to a temporary directory.
  2. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.
@1024jp
1024jp / Extract Presenter Notes.applescript
Last active September 3, 2021 09:35
Extract Presenter Notes
(*
Extract presenter notes of the front most Keynote document and save to Desktop as Markdown file.
Created by 1024jp on 2019-03-16.
© 2019 1024jp
*)
-- collect presenter notes
tell front document of application "Keynote"
set thePresentationTitle to name
//
// AppDelegate.swift
// Moof
//
// Created by 1024jp on 2019-10-10.
// © 1024jp
//
import Cocoa
@1024jp
1024jp / SetAnimationTest.svg
Created January 31, 2020 08:24
Test SVG file to check set element behavior with class toggling.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1024jp
1024jp / CastTimingComparison.swift
Last active February 28, 2020 08:40
Swift String cast timing comparison
protocol Foo {
var string: String
}
protocol Bar {
var string: NSString
}
class FooManager: Manager, Foo {
var string: String { self.attributedString().string }
}

Unicode General Category “Format” (Cf)

2020-04-29 Unicode 13.0.0

List of All characters in Format category

code point Qty Name block flag note