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
[xboxdrv] | |
dpad-as-button=true | |
trigger-as-button=true #If your "Trigger" is a button | |
#evdev = /dev/input/your-device-event | |
evdev-grab=true | |
mimic-xpad=true | |
# Workaround fix to inverted axis from evdev devices emulating X360 gamepads |
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
#!/bin/sh | |
#SCRIPT TO DETECT MULTIPLE CONTROLLERS(BASED ON GREP AT LINE #6) AND PASS TO XBOXDRV | |
############ DO NOT USE THIS WITH A ORIGINAL XBOX GAMEPAD PLUGGED IN, YOU CAN PLUG AFTER RUNNING THE SCRIPT ############ | |
set -e | |
config=/home/yuri/config.xboxdrv | |
joysticks=$(ls /dev/input/by-path/ | grep event-joystick) |
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
URxvt.background: rgb:00/00/00 | |
URxvt.font: xft:monospace:pixelsize=10 | |
URxvt.letterSpace: -1 | |
Xft.antialias: true | |
URxvt.foreground:rgb:A/A/A | |
URxvt.scrollBar:off |
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
#!/bin/bash | |
cd /tmp/ | |
codigo=$1 | |
if [ -z $1 ]; then | |
··echo -e "ERRO: É preciso inserir um código de rastreio\nExemplo: rastreio.sh PR112318237BR" | |
··exit | |
fi |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
//Author: Yuri Santos<yrds96@protonmail.com> | |
//Description this is an example of how to controll gameobjects through the touch controlls | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
enum TouchGesture { | |
Tap, | |
SwipeLeft, | |
SwipeRight, |
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
https://gamepadviewer.com/?p=1&s=5&map={%22mapping%22%3A[{%22targetType%22%3A%22buttons%22%2C%22target%22%3A%222%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22buttons%22%2C%22choice%22%3A%223%22}%2C{%22targetType%22%3A%22buttons%22%2C%22target%22%3A%223%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22buttons%22%2C%22choice%22%3A%222%22}%2C{%22targetType%22%3A%22buttons%22%2C%22target%22%3A%2213%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22axes%22%2C%22choice%22%3A%227%22%2C%22choiceOperand%22%3A%22%2B%22}%2C{%22targetType%22%3A%22buttons%22%2C%22target%22%3A%2214%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22axes%22%2C%22choice%22%3A%226%22%2C%22choiceOperand%22%3A%22-%22}%2C{%22targetType%22%3A%22buttons%22%2C%22target%22%3A%2215%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22axes%22%2C%22choice%22%3A%226%22%2C%22choiceOperand%22%3A%22%2B%22}%2C{%22targetType%22%3A%22axes%22%2C%22target%22%3A%222%22%2C%22disabled%22%3Afalse%2C%22choiceType%22%3A%22%22%2C%22positive%22%3A{%22choice |
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
const vect = [1,2,3,4,5]; | |
const newVect = vect.map(number => number + 1); //Sum all elements by 1 | |
console.log(newVect); // [2,3,4,5,6] |
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
const vect = [1,2,3,4,5]; | |
vect.forEach( vect => console.log(vect)); |
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
const vect = ['h','e','l','l','o',' ','w','o','r','l','d']; | |
const newString = vect.reduce((acc, character) => acc.concat(character)); | |
console.log(newString); //hello world |
OlderNewer