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
AutoHotkey 2 mins █████████████████████ 100.0% | |
Dart 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.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
@media (min-width: 1280px) { | |
main#js-repo-pjax-container > div > div:first-child { | |
max-width: 1280px; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
main#js-repo-pjax-container > div > nav > ul { | |
margin-left: calc((100vw - 1280px) / 2 - 8.5px); | |
} |
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
/* Background, tweet background & panels on the right. */ | |
body, .r-kemksi, .r-1igl3o0, .r-9qu9m4 { | |
background-color: rgb(33, 36, 38) !important; | |
} | |
/* Tweet background (hovered). */ | |
.r-1ysxnx4 { | |
background-color: rgb(48, 53, 58) !important; | |
} |
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
{ | |
"title": "beta's Keyboard Bindings", | |
"rules": [ | |
{ | |
"description": "Control + I/J/K/L = Arrows", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "i", |
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
func WriteFile(...) (err error) { | |
... | |
defer func() { | |
if cerr := f.Close(); cerr != nil && err == nil { | |
err = cerr | |
} | |
}() | |
_, err = f.Write(data) | |
return err |
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
temp = set() | |
output = [e for e in input if e not in temp and not temp.add(e)] |
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
squared_gen = (x**2 for x in range(5)) | |
type(squared_gen) # generator |
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
; Disable Caps Lock | |
*CapsLock::Return | |
; Caps + J = Left | |
; Shift + Caps + J = Shift + Left | |
CapsLock & j:: | |
If GetKeyState("LShift", "p") | |
Send, +{Left} | |
Else | |
Send, {Left} |
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
; betaType | |
; https://gist.github.com/beta/8552d043e70cc214e34c68c25151f59c | |
[General] | |
Name=betaType | |
DirectWrite=1 | |
HookChildProcesses=1 | |
HintingMode=1 | |
AntiAliasMode=1 |
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
@Override | |
public void setCancelable(boolean cancelable) { | |
final Dialog dialog = getDialog(); | |
View touchOutsideView = dialog.getWindow().getDecorView().findViewById(android.support.design.R.id.touch_outside); | |
View bottomSheetView = dialog.getWindow().getDecorView().findViewById(android.support.design.R.id.design_bottom_sheet); | |
if (cancelable) { | |
touchOutsideView.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { |
NewerOlder