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
#8C1AFF,#6212B3,#FFFFFF,#8C1AFF,#6212B3,#FFFFFF,#29CC6D,#FF6040 |
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
In Terminal | |
=========== | |
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
-or?- | |
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
window.addEventListener("gc.analog.start", function(event) { | |
console.log(event.detail); | |
}, false); | |
>> AnalogStick { | |
>> controllerIndex: 0, | |
>> time: 4526.165, | |
>> name: "LEFT_ANALOG_STICK", | |
>> position: { x: 0, y: 0 }, | |
>> angle: { degrees: NaN, radians: NaN } |
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
<html> | |
<head></head> | |
<body> | |
<!-- your wonderful markup --> | |
<script src="js/Controller.min.js"></script> | |
<script src="js/app.js"></script> | |
</body> | |
</html> |
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
Controller.search(); | |
window.addEventListener("gc.controller.found", function(event) { | |
var controller = event.detail.controller; | |
console.log("Controller found at index %s.", controller.index); | |
console.log("'%s' is ready!", controller.name); | |
}, false); | |
>> "Controller found at index 0." | |
>> "'Wireless Controller' is ready!" |
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
window.addEventListener("gc.button.press", updateButton, false); | |
window.addEventListener("gc.button.release", updateButton, false); | |
window.addEventListener("gc.analog.change", updateAnalog, false); | |
function updateButton(event) { | |
var message = detail.pressed ? "pressed" : "not pressed"; | |
console.log("%s: %s", detail.name, message); | |
} | |
function updateAnalog(event) { |
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
Controller.search() | |
Controller.globalSettings.useAnalogAsDpad = "left"; | |
window.addEventListener("gc.button.press", function(event) { | |
// Pressing the left analog stick in any of the 4 cardinal | |
// directions will fire this event as if it were the | |
// appropriate d-pad button, i.e. DPAD_UP, DPAD_LEFT, etc. | |
}, false); |
OlderNewer