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
/* Ctrl+Right Mouse button loops holding down Right Mouse button until either W or S are pressed. | |
Useful with certain boring Minecraft activities that have a person standing still and holding Right Mouse | |
for extended periods. Moving forward or backwards (W or S respectively) will stop the loop. | |
Replacing "RButton" with "LButton" will change Right Mouse held down with Left Mouse. | |
*/ | |
^RButton:: |
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
http://onhub.here/api/v1/status | |
http://onhub.here/api/v1/diagnostic-report | |
http://onhub.here/api/v1/welcome-mat | |
http://onhub.here/api/v1/connected-devices | |
http://onhub.here/api/v1/get-attestation-information | |
http://onhub.here/api/v1/get-endorsement-information |
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# celery beat schedule file | |
celerybeat-schedule |
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
Create the remote repository, and get the URL such as | |
[email protected]:/youruser/somename.git or https://github.com/youruser/somename.git | |
If your local GIT repo is already set up, skips steps 2 and 3 | |
Locally, at the root directory of your source, git init | |
Locally, add and commit what you want in your initial repo |
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
#The MIT License (MIT) | |
# Copyright (c) 2012 Jordan Wright <jordan-wright.github.io> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
F11:: | |
; Decremenet sound by 10. | |
{ | |
SoundSet -10 | |
return | |
} | |
F12:: | |
; Increment sound by 10. | |
{ |
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
/** | |
* @description determine if an array contains one or more items from another array. | |
* @param {array} needle the array providing items to check for in the haystack. | |
* @param {array} haystack the array to search. | |
* @return {boolean} true|false if haystack contains at least one item from arr. | |
*/ | |
var findOne = function (needle, haystack) { | |
return needle.some(function (v) { | |
return haystack.indexOf(v) >= 0; | |
}); |
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
pennyRound(val) | |
{ | |
;Performs penny rounding on inputted float, and | |
;returns calculated amount. | |
sub := SubStr(val, 0, 1) | |
subMult := round((sub * 0.01), 2) | |
if (subMult <= 0.02) { | |
price := round((val - subMult), 2) |
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
print('\n'.join("Fizz" * ( i % 3 == 0) + "Buzz" * ( i % 5 == 0) or str(i) for i in range(1, 101))) |
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
Because PowerMizer settings in NVIDIA X Server Settings doesn't persist across sessions, | |
attempts to overclock can become a nuisance. | |
The following documents the three CLI settings to modify the Preferred Mode as desired: | |
# Auto: | |
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=2 | |
# Adaptive: | |
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0 |
OlderNewer