This file contains hidden or 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
inputs.sort { view1, view2 in | |
let view1Frame = view1.convert(CGPoint.zero, to: nil) | |
let view2Frame = view2.convert(CGPoint.zero, to: nil) | |
if view1Frame.y == view2Frame.y { | |
return view1Frame.x < view2Frame.x | |
} | |
return view1Frame.y < view2Frame.y | |
} |
This file contains hidden or 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
private func allInputs(view:UIView) -> [UIView] { | |
var inputs:[UIView] = [] | |
for view in view.subviews { | |
if view is UITextField || view is UITextView { | |
inputs.append(view) | |
} | |
let subInputs = _allInputs(view: view) | |
if subInputs.count > 0 { | |
inputs.append(contentsOf: subInputs) | |
} |
This file contains hidden or 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
static uint8_t mode = 0; | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
if(keycode == 20737) { //fnc key. | |
if(record->event.pressed) { | |
rgb_matrix_set_color_all(110, 50, 100); | |
mode = rgb_matrix_get_mode(); | |
rgb_matrix_mode_noeeprom(1); | |
} else { | |
rgb_matrix_mode(mode); |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/Theme - Phoenix/Color Scheme/Tomorrow-Night.tmTheme", | |
"draw_indent_guides": false, | |
"fold_buttons": false, | |
"font_face": "Monaco", | |
"font_size": 15, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
This file contains hidden or 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/python | |
#original script by Rob Napier <[email protected]> | |
#updates by github.com/gngrwzrd | |
#Script to link in all your old SDKs every time you upgrade Xcode | |
#Create a directory somewhere to store older SDKs in | |
#Under it, put all the platform directories: | |
# MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform | |
#Under those, store the SDKs: |
NewerOlder