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
| nnoremap yy "+yy | |
| vnoremap y "+y | |
| nnoremap p "+p | |
| vnoremap p "+p | |
| nnoremap P "+P | |
| vnoremap P "+P |
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/env python | |
| import i3 | |
| def getCurrentScreen(): | |
| workspace = [ws for ws in i3.get_workspaces() if ws['focused']][0] | |
| screen_w =str(workspace['rect']['width']) | |
| screen_h =str(workspace['rect']['height']) | |
| print(screen_w, screen_h); |
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
| let styles: [UIFont.TextStyle] = [ | |
| // iOS 17 | |
| .extraLargeTitle, .extraLargeTitle2, | |
| // iOS 11 | |
| .largeTitle, | |
| // iOS 9 | |
| .title1, .title2, .title3, .callout, | |
| // iOS 7 | |
| .headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
| ] |
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/lua | |
| -- Original script: https://github.com/nileshgr/utilities/blob/master/general/updateip.lua | |
| -- http://nileshgr.com/2015/09/23/cloudflare-dynamic-dns-using-openwrt | |
| -- For use with openwrt since openwrt supports LUA. | |
| -- Prerequisites: | |
| -- luasec | |
| -- luasocket | |
| -- libubus-lua |
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
| [colors] | |
| background = #1d1f2110 | |
| background-alt = #282a2e | |
| foreground = #1d1f21 | |
| foreground-alt = #1d1f21 | |
| [bar/main_bar] | |
| width = 100% | |
| height = 27 | |
| ;offset-x = 1% |
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
| local function Chinese() | |
| -- 简体拼音 | |
| hs.keycodes.currentSourceID("com.apple.inputmethod.SCIM.ITABC") | |
| end | |
| local function English() | |
| -- ABC | |
| hs.keycodes.currentSourceID("com.apple.keylayout.ABC") | |
| end |
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
| /* | |
| * Available context bindings: | |
| * COLUMNS List<DataColumn> | |
| * ROWS Iterable<DataRow> | |
| * OUT { append() } | |
| * FORMATTER { format(row, col); formatValue(Object, col) } | |
| * TRANSPOSED Boolean | |
| * plus ALL_COLUMNS, TABLE, DIALECT | |
| * | |
| * where: |
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
| { | |
| "PD-KB401W": { | |
| "typeNumber": "PD-KB401W", | |
| "layoutType": 1, | |
| "colorType": 0, | |
| "series": 0, | |
| "layoutTypeName": 1, | |
| "postfix": "", | |
| "isKeymapChangeable": true, | |
| "firmTypeNumber": "AHHX01", |
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
| enum class States { | |
| EXPANDED, | |
| COLLAPSED | |
| } | |
| @ExperimentalMaterialApi | |
| @Composable | |
| fun FullHeightBottomSheet( | |
| header: @Composable () -> Unit, | |
| body: @Composable () -> Unit |
OlderNewer