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
fun main() { | |
val ferrary = SportCar.Ferrary() | |
val lamborgini = SportCar.Lamborgini() | |
val mustang = SportCar.Mustang() | |
val ferrary2 = SportCarEnum.Ferrary | |
// Drive the selected car | |
playGame(ferrary) |
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
{ | |
"runtimes": { | |
"nvidia": { | |
"path": "nvidia-container-runtime", | |
"runtimeArgs": [] | |
} | |
}, | |
"insecure-registries": [ | |
"docker_registry_hostname:5005" | |
] |
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
sudo curl -SL https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-$(uname -s)-$(uname -m) -o ~/docker-compose | |
sudo chmod +x ~/docker-compose | |
sudo mv ~/docker-compose /usr/bin/ |
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
package com.aldajo92.notesapp | |
import android.content.SharedPreferences | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.viewModels | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column |
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
package com.example.composeapplication | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.material.Button |
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
package com.mcuhq.simplebluetooth; | |
import android.bluetooth.BluetoothSocket; | |
import android.os.Handler; | |
import android.os.SystemClock; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; |
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
clear | |
I = imread("imagen.jpg"); | |
G = rgb2gray(I); | |
GD = im2double(G); | |
[ni,mi] = size(G) | |
A = zeros(size(G)); | |
for n=1:50 |
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
void main() { | |
int gasolina1 = 100; | |
String marca1 = "Mazda"; | |
bool prendido1 = false; | |
Car carro1 = new Car(100, "Mazda", false); | |
// carro1.imprimaDatos(); | |
Camioneta camioneta = new Camioneta(200, "Toyota Paraca", true, true); | |
// camioneta.imprimaDatos(); |
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
clc; clear; close all | |
format SHORTG | |
%% Parametros | |
% Cs0 = 64; | |
% mu_M = 0.3; | |
% K_M = 22.84; | |
% Yxs = 0.66; | |
% F = 60; | |
% V = 1000; |
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
#include <ZumoShield.h> | |
// format: | |
// <vel_l>;<vel_r> | |
// input example: | |
// 100;100 | |
ZumoMotors motors; | |
String inputString = ""; |
NewerOlder