Skip to content

Instantly share code, notes, and snippets.

View 1024jp's full-sized avatar
👻
boo

1024jp 1024jp

👻
boo
View GitHub Profile
@1024jp
1024jp / Go to Folder in Terminal.applescript
Last active December 18, 2023 19:45
open Terminal at the identical directory of the current document in CotEditor
(*
Go to Folder in Terminal Script for CotEditor
[description]
Open Terminal at the identical directory of current document in CotEditor.
[version] 1.1
[release] 2012-02-27
[lastmod] 2014-10-16
@1024jp
1024jp / New Document with Selection.applescript
Created February 29, 2012 00:37
New Document with Selection for CotEditor
(*
New Document with Selection
by 1024jp 2012-02-29
[description]
open selection in new document on CotEditor
*)
@1024jp
1024jp / Upload on Transmit.applescript
Last active October 1, 2015 12:57
upload current document on CotEditor with Transmit
(*
Upload on Transmit
[description]
Upload current document on CotEditor via Transmit.
Required to enable DockSend service on Transmit.
[version] 1.1
@1024jp
1024jp / Select Lines.@$a.applescript
Created March 8, 2012 18:53
Select Whole Current Lines on CotEditor
(*
Select Whole Current Lines
[description]
select whole lines of the cursor position or the selection
[version] 1.0
[release] 2012-03-08
(*
insert base64 encoded image
[description]
encode selected image to base64 and insert it
at caret position in current document on CotEditor
[version] 1.0
@1024jp
1024jp / Check PEP8.py
Last active December 10, 2015 05:08
PEP8 check script for CotEditor
#!/usr/bin/env python
"""PEP8 check script for CotEditor
Check Python source code of the current document on CotEditor with pep8.
This is a CotEditor script.
"""
__version__ = '1.1'
__date__ = '2014-12-02'
@1024jp
1024jp / Toggle Indent Style.py
Last active December 16, 2015 07:29
Toggle Indent between Tabs and Spaces on Front Document of CotEditor
#!/usr/bin/env python
"""Toggle Indent between Tabs and Spaces on Front Document of CotEditor.
This is a CotEditor script.
%%%{CotEditorXInput=Selection}%%%
%%%{CotEditorXOutput=ReplaceSelection}%%%
"""
@1024jp
1024jp / Count Characters without Tags.py
Last active December 16, 2015 16:20
Count number of characters without HTML tags on CotEditor
#!/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 / gear.svg
Last active December 17, 2015 03:59
simple gear shape
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1024jp
1024jp / MyCenteringClipView.h
Created December 19, 2013 00:22
NSScrollViewの内容センタリング ref: http://qiita.com/1024jp/items/f3cd7bc7765cf090fa31
#import <Cocoa/Cocoa.h>
@interface MyCenteringClipView : NSClipView
@end