Skip to content

Instantly share code, notes, and snippets.

View mfks17's full-sized avatar

mfks17 mfks17

View GitHub Profile
#!/bin/sh
VAR1=`xcodebuild -version | head -1`
VAR2=`echo $VAR1 | sed -e "s/ /-/"`
VAR3=`echo $VAR2 | sed -e "s/$/.app/"`
VAR4=`defaults read /Applications/$VAR3/Contents/Info DVTPlugInCompatibilityUUID`
echo $VAR1 : $VAR4
[branchname]
# ==== Emojis ====
# โœ๏ธ :pencil2: Writing docs
# ๐Ÿ› :bug: Fix bugs
# ๐Ÿ‘ :+1: Feature improvements
# โœจ :sparkles: Additional partial feature
# ๐ŸŽ‰ :tada: Grand major features added to celebrate
# โ™ป๏ธ :recycle :Refactoring
# ๐Ÿšฟ :shower: Removal of obsolete functions or features.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
FIRApp.configure()
let types: UIUserNotificationType = [UIUserNotificationType.Badge, UIUserNotificationType.Alert, UIUserNotificationType.Sound]
let settings: UIUserNotificationSettings = UIUserNotificationSettings( forTypes: types, categories: nil )
application.registerUserNotificationSettings( settings )
application.registerForRemoteNotifications()
return true
}
@mfks17
mfks17 / init.lua
Created January 5, 2018 22:16
My Hammerspoon init script ๐Ÿ”จ
local function keyCode(key, modifiers)
modifiers = modifiers or {}
return function()
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), true):post()
hs.timer.usleep(1000)
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), false):post()
end
end
local function remapKey(modifiers, key, keyCode)
  • ใ€œใงใใŸใ‚‰ใ„ใ„ใญ
    • I would like to ~
  • ๏ผˆๆบ–ๅ‚™ใงใใŸใ‚‰๏ผ‰ๅฃฐใ‹ใ‘ใฆใญ
    • Tell me something when youโ€™re ready.
  • ใƒกใƒขใ‚’ใจใ‚‹
    • take a note
  • ็ถšใใ‚’ใ—ใ‚ˆใ†
    • Let's continue.
  • ใใฎ่ฉฑใฏ็ฝฎใ„ใจใ„ใฆใ€
  • Putting that aside...