日時: | 2018-08-05 |
---|---|
作: | 時雨堂 |
バージョン: | 18.08.0 |
url: | https://shiguredo.jp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install Git Large File Storage (LFS) | |
brew install git-lfs | |
git lfs install | |
# Download & Install Llama | |
git clone https://github.com/ggerganov/llama.cpp | |
cd llama.cpp | |
LLAMA_METAL=1 make -j # build with Metal support for (M-series) Apple Silicon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds the ALT_TAB keycode to a QMK keymap. | |
// Based on https://www.reddit.com/r/MechanicalKeyboards/comments/mrnxrj/better_super_alttab/ | |
// Functionality is the following (basically the same thing as a normal Alt + Tab but without having | |
// to leave Alt pressed): | |
// - On pressing ALT_TAB, the window switch menu pops up. | |
// - While the menu is visible, it's possible to cycle through the selection by pressing ALT_TAB | |
// again, or Shift + ALT_TAB, or the arrow keys. | |
// - The selected window can be brought up by pressing Enter, which also closes the menu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* In your config.h define a new variable RGBLIGHT_TIMEOUT and give it a value in milliseconds */ | |
#define RGBLIGHT_SLEEP // allows us to use rgblight_suspend() and rgblight_wakeup() in keymap.c | |
#define RGBLIGHT_TIMEOUT 30000 // 30 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fonts included with macOS Catalina | |
macOS Catalina comes with many built-in or downloadable typefaces. | |
The following fonts are installed and enabled automatically by macOS Catalina. Additional fonts are available for download or as needed by your document or app. New or updated fonts may be added over time. This list is current as of 24 April 2020. | |
Al Bayan Bold 13.0d1e6 | |
Al Bayan Plain 13.0d1e6 | |
Al Nile 13.0d2e2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100 --cellularMode active |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
let keyEvent = Event() | |
lazy var statusItem: NSStatusItem = { | |
return NSStatusBar.system.statusItem(withLength: NSStatusItem.squareLength) | |
}() | |
func applicationDidFinishLaunching(_ aNotification: Notification) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CTFontGetGlyphsForCharacters(_:_:_:_:) | |
// [UniChar] → [CGGlyph] | |
import Foundation | |
func makeUnichars(from str: NSString) -> [UInt16] { | |
let range = NSRange(location:0, length: str.length) | |
let encoding = String.Encoding.utf16.rawValue | |
let maxLength = str.maximumLengthOfBytes(using: encoding) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<66EC(XRGB)Ble> | |
<PredefinedCombo> | |
<List SizeOfView="6" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/> | |
</PredefinedCombo> | |
<PredefinedMacro> | |
<List SizeOfView="9" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/> | |
</PredefinedMacro> | |
<PredefinedEmu> | |
<List SizeOfView="9" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ScreenCapture.swift | |
// Screenotate | |
// | |
// Created by Omar Rizwan on 7/6/17. | |
// Copyright © 2017 Omar Rizwan. All rights reserved. | |
// | |
import Foundation | |
import Cocoa |
NewerOlder