sudo pacman -Sy
sudo pacman -S glibc lib32-glibc
sudo pacman -S yay
yay -S anydesk-bin
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
ast.exe: ast.c | |
gcc -Werror -Wswitch -Wimplicit-fallthrough ast.c -o ast.exe | |
clean: | |
rm -f *.o *.exe *.s a.out | |
test.s: ast.exe | |
./ast.exe > test.s |
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
# Select the i2c bus | |
i2c dev <bus> | |
i2c dev 0 | |
# Probe the device | |
i2c probe <chip> | |
i2c probe 0x60 | |
# Read from the device | |
i2c read <chip> <chip address> <length> <memory address> |
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
#include <iostream> | |
#include <chrono> | |
#include <ctime> | |
#include <cmath> | |
class Timer | |
{ | |
public: | |
void start() | |
{ |
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
#!/usr/bin/env python3 | |
import random | |
cs = "BCDFGHJKLMNPQRSTVWXZY" | |
vs = "AEIOU" | |
def generate_name(n=3): | |
result = "" | |
for i in range(n): |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <strings.h> | |
#define ELEM_HASH 100 | |
/* Esta es nuestra estructura que representa | |
* a una hash table */ | |
typedef struct HashTable { | |
int num_elements; /* Número de elementos que podemos almacenar */ |