Skip to content

Instantly share code, notes, and snippets.

View hym3242's full-sized avatar
💭
still lovin' TIOCSTI

hym3242 hym3242

💭
still lovin' TIOCSTI
View GitHub Profile
@usagimaru
usagimaru / NSSplitView-toggle-pane.swift
Last active June 15, 2024 19:19
Toggling NSSplitView’s pane with animation.
@objc func toggleMainView(_ sender: Any) {
let splitViewItem: NSSplitViewItem = self.splitViewItems[0]
splitViewItem.animator().isCollapsed = !splitViewItem.isCollapsed
}
@objc func toggleInspector(_ sender: Any) {
let splitViewItem: NSSplitViewItem = self.splitViewItems[1]
splitViewItem.animator().isCollapsed = !splitViewItem.isCollapsed
}
@vividvilla
vividvilla / osxtweaks
Created January 8, 2020 10:45 — forked from webdevbrian/osxtweaks
Brian's List of OSX Tweaks for web developers
#OSX Tweaks:
===========
- Most need reboot to show changes
- Most of these tweaks are just for speed, but some are specific for development
- All of these are to be ran in terminal. The commands to be copy and pasted start after the less-than sign.
- I'm not responsible for any adverse effects to your computer, at all.
##Increase the speed of OS X dialogs boxes:
@j8
j8 / disable all macos animations
Last active June 14, 2024 15:40
disable all macos animations for high performance
defaults write -g NSScrollViewRubberbanding -int 0
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -bool false
defaults write -g NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write -g NSScrollViewRubberbanding -bool false
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
// Place your key bindings in this file to overwrite the defaults
// https://code.visualstudio.com/docs/customization/keybindings
[
//---- 他の方のを流用 ----
// http://tonbi.jp/Web/Diary/030/
// ↑up
{ "key": "ctrl+e", "command": "cursorUp",
"when": "editorTextFocus" },
{ "key": "shift+ctrl+e", "command": "cursorUpSelect",
"when": "editorTextFocus" },
@webdevbrian
webdevbrian / osxtweaks
Last active June 14, 2024 08:28
Brian's List of OSX Tweaks for web developers
#OSX Tweaks:
===========
- Most need reboot to show changes
- Most of these tweaks are just for speed, but some are specific for development
- All of these are to be ran in terminal. The commands to be copy and pasted start after the less-than sign.
- I'm not responsible for any adverse effects to your computer, at all.
##Increase the speed of OS X dialogs boxes:
@mmcbrear
mmcbrear / gist:4664333
Last active May 17, 2024 00:27
XCode5 Custom Key Bindings/ Delete Current Line/ Duplicate Line/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Cancellation</key>
<dict>
<key>Cancel</key>
<string>cancelOperation:</string>
</dict>
<key>Case Changes</key>