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; | |
} |
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
<?php | |
function be_megasense_defaults($defaults) | |
{ | |
$defaults['ad_post_align'] = 'left'; | |
$defaults['disquss-name'] = ''; | |
$defaults['facebook-appid'] = ''; | |
$defaults['default-comment'] = 'default'; | |
$default['show_author'] = '1'; |
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
function wpa_alter_cat_links( $termlink, $term, $taxonomy ){ | |
if( 'category' == $taxonomy && 0 == $term->parent ){ | |
return str_replace( '/category', '', $termlink ); | |
} | |
return $termlink; | |
} | |
add_filter( 'term_link', 'wpa_alter_cat_links', 10, 3 ); |
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
// Manages changes in responsive layout | |
var layout = (function() { | |
var callbacks = []; | |
// Container for checking changes in layout width | |
var $container = $('#header .container'); | |
// Container width: screen width | |
var steps = { | |
960: 960, |
NewerOlder