Skip to content

Instantly share code, notes, and snippets.

👻
boo

1024jp 1024jp

👻
boo
Block or report user

Report or block 1024jp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Extract Presenter Notes.applescript
(*
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"
View symbolizing_osx_crash_logs.md

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.
    6. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.
@1024jp
1024jp / swedischRound.c
Created Dec 30, 2015
round to the nearest 0.5
View swedischRound.c
double swedishRound(double number) { return round(2.0 * number) / 2.0; }
@1024jp
1024jp / .gitignore
Last active Jan 6, 2019
Documents for CotEditor prerelease
View .gitignore
# macOS
.DS_Store
View Insert new line below current line.applescript
(*
Insert new line below current line
[version] 1.0.0
[release] 2014-11-22
[author] 1024jp <http://wolfrosch.com/>
[licence] MIT License
*)
@1024jp
1024jp / Insert new line above current line.applescript
Last active Aug 29, 2015
Insert new line above current line
View Insert new line above current line.applescript
(*
Insert new line above current line
[version] 1.0.0
[release] 2014-11-22
[author] 1024jp <http://wolfrosch.com/>
[licence] MIT License
*)
View MyCenteringClipView.h
#import <Cocoa/Cocoa.h>
@interface MyCenteringClipView : NSClipView
@end
@1024jp
1024jp / gear.svg
Last active Dec 17, 2015
simple gear shape
View gear.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1024jp
1024jp / Count Characters without Tags.py
Last active Dec 16, 2015
Count number of characters without HTML tags on CotEditor
View Count Characters without Tags.py
#!/usr/bin/env python
"""Count Characters w/o Tags for CotEditor
Count number of characters without HTML tags on CotEditor
and display it in an alert window.
This is a CotEditor script.
%%%{CotEditorXInput=Selection}%%%
"""
@1024jp
1024jp / Toggle Indent Style.py
Last active Dec 16, 2015
Toggle Indent between Tabs and Spaces on Front Document of CotEditor
View Toggle Indent Style.py
#!/usr/bin/env python
"""Toggle Indent between Tabs and Spaces on Front Document of CotEditor.
This is a CotEditor script.
%%%{CotEditorXInput=Selection}%%%
%%%{CotEditorXOutput=ReplaceSelection}%%%
"""
You can’t perform that action at this time.