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
import board | |
import digitalio | |
import time | |
# Configurar los pines | |
sdo_pin = digitalio.DigitalInOut(board.GP19) | |
sdo_pin.direction = digitalio.Direction.INPUT | |
sdo_pin.pull = digitalio.Pull.UP | |
scl_pin = digitalio.DigitalInOut(board.GP18) |
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
import board, time | |
import busio | |
import usb_midi | |
from simpleio import map_range | |
from analogio import AnalogIn | |
import adafruit_midi | |
from adafruit_midi.note_off import NoteOff | |
from adafruit_midi.note_on import NoteOn | |
from adafruit_midi.polyphonic_key_pressure import PolyphonicKeyPressure |
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
import gradio as gr | |
import os | |
import tempfile | |
import torch | |
import torchaudio | |
from pathlib import Path | |
from TTS.tts.configs.xtts_config import XttsConfig | |
from TTS.tts.models.xtts import Xtts | |
XTTS_MODEL = None |
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
""" | |
Receive messages from muiltiple input port and print them out. | |
""" | |
import sys | |
#from mido.ports import MultiPort | |
from mido import open_input, get_input_names | |
ports = get_input_names() |
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 <Arduino.h> | |
#include <Wire.h> | |
// Prueba Multitarea(Hilos)RTOS en Diferente Nucleo ESP32 by: elprofegarcia.com | |
TaskHandle_t Tarea0; // Tarea0 parpadeo LED 0,3 segundos | |
TaskHandle_t Tarea1; // Tarea1 parpadeo LED 1 Segundo | |
// Declaraciones previas | |
void loop0(void *parameter); | |
void loop1(void *parameter); |
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
import 'package:firebase_admob/firebase_admob.dart'; | |
import '../services/globals.dart'; | |
class Ads { | |
InterstitialAd myInterstitial; | |
MobileAdTargetingInfo targetingInfo = new MobileAdTargetingInfo( | |
testDevices: TEST_DEVICES, | |
); |
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
body: new Stack( | |
children: <Widget>[ | |
new Container( | |
decoration: _recursos.backgroundImageComun(), | |
), | |
new Column( | |
children: <Widget>[ | |
new Container( | |
height: 196.0, | |
child: new Stack( |
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
import 'package:firebase_admob/firebase_admob.dart'; | |
import '../services/globals.dart'; | |
class Ads { | |
InterstitialAd myInterstitial; | |
MobileAdTargetingInfo targetingInfo = new MobileAdTargetingInfo( | |
testDevices: TEST_DEVICES, | |
/* keywords: <String>[ | |
"tarot", |
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
Container seleccionBlock(double rotacion, double margin, int contador) { | |
return Container( | |
margin: EdgeInsets.only(top: margin), | |
child: Transform.rotate( | |
angle: rotacion, | |
child: Container( | |
width: 110.0, | |
height: 196.0, | |
// padding: const EdgeInsets.all(4.0), |
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
//if the post is category "uncategorized" or child of "uncategorized" as the main category, change the permalink rule of "/%category%/%postname%" to "/%postname%" | |
function my_pre_post_link($permalink, $post, $leavename) | |
{ | |
if ($post->post_type != 'post') { | |
return $permalink; | |
} | |
$cats = get_the_category($post->ID); | |
if (!count($cats)) { | |
return $permalink; | |
} |
NewerOlder