Based on https://gist.github.com/vijay-prema/cfcf8cc4085663b7bb48f34172c10629
- Install NVIDIA drivers
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
| #!/usr/bin/env bash | |
| GFX=$(supergfxctl -g) | |
| STATE=$(supergfxctl -S) | |
| PROF=$(asusctl profile -a) | |
| BATT=$(cat /etc/asusd/asusd.conf | tr -dc '0-9') | |
| echo "| iconName=profile-performance" | |
| echo "---" | |
| echo "GPU:\t\t ${GFX^} ($STATE) | iconName=nvidia" |
Based on https://gist.github.com/vijay-prema/cfcf8cc4085663b7bb48f34172c10629
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
| function palabraToLower(palabra) { | |
| var arr = palabra.split(''); | |
| for(var i=0; i<arr.length; i++){ | |
| var ascii = arr[i].charCodeAt(0) | |
| if (ascii >= 65 && ascii <= 90) { | |
| arr[i] = ascii+32 | |
| arr[i] = String.fromCharCode(arr[i]) | |
| } |
| class Vehicle { | |
| constructor(model, color) { | |
| this.model = model | |
| this.color = color | |
| } | |
| drive() { | |
| console.log('Soy un vehiculo ' + this.model + ' de color ' + this.color) | |
| } | |
| } |
| class Cafetera { | |
| constructor(peso) { | |
| this.peso = peso; | |
| } | |
| makeCoffee() { | |
| console.log('Estoy haciendo cafe'); | |
| } | |
| }; |