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
/* | |
IR Breakbeam sensor | |
contador hecho por Alejandro y modificado para usar con IR | |
*/ | |
#define LEDPIN1 13 | |
#define LEDPIN2 12 | |
#define SENSORPIN1 4 | |
#define SENSORPIN2 5 |
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
@mixin image-2x($image, $width, $height) { | |
@media (min--moz-device-pixel-ratio: 1.3), | |
(-o-min-device-pixel-ratio: 2.6/2), | |
(-webkit-min-device-pixel-ratio: 1.3), | |
(min-device-pixel-ratio: 1.3), | |
(min-resolution: 1.3dppx) { | |
/* on retina, use image that's scaled by 2 */ | |
background-image: url($image); | |
background-size: $width $height; | |
} |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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 | |
/** | |
* This shortcode will allow you to create a snapshot of a remote website and post it | |
* on your WordPress site. | |
* | |
* [snapshot url="http://www.wordpress.org" alt="WordPress.org" width="400" height="300"] | |
*/ | |
add_shortcode( 'snapshot', function ( $atts ) { | |
$atts = shortcode_atts( array( |
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 create_post_your_post() { | |
register_post_type( 'your_post', | |
array( | |
'labels' => array( | |
'name' => __( 'Your Post' ), | |
), | |
'public' => true, | |
'hierarchical' => true, |
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 | |
/** | |
* Display thumbs generate by Wordpress' service Mshot and write | |
* locally the thumb after generation to have better loading web performance. | |
* | |
* Thx @jd_ma for help :) | |
*/ | |
function show_and_write_thumbnail ($url, $width=200, $height=150) { |
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
<header class="p-2 md:p-3 lg:p-4 xl:p-5 shadow-md z-10 flex flex-row justify-between items-center"> | |
<img src="img/oeg-mainH-RGB.svg" class="h-10 sm:h-12 md:h-14 lg:h-16" alt="Open Education Global"> | |
<nav> | |
<ul class="list-none flex flex-row justify-around sm:justify-end p-0 m-0 bg-red-200"> | |
<li class="p-4">About OE GLOBAL +</li> | |
<li class="p-4">Activities +</li> | |
</ul> | |
</nav> | |
</header> |
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() { | |
List<String> myList = [ | |
'Angela', | |
'James', | |
'Katie', | |
'Jack', | |
]; | |
//print(myList[2]); | |
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
const theme = { | |
colors: | |
{ | |
'blue-100': '#0d1530', | |
'blue-200': '#1c2b5a', | |
'blue-300': '#1f377a', | |
'blue-400': '#1952b3', | |
'blue-500': '#0d59f2', | |
'blue-600': '#3b80f7', | |
'blue-700': '#6ea5f7', |
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 | |
/** | |
* Plugin Name: CPT para academia municipal | |
* Author: Mario Badilla PEM | |
* Version: 1.0.0 | |
*/ | |
function cptui_register_my_cpts() { |
OlderNewer