Skip to content

Instantly share code, notes, and snippets.

View marbaque's full-sized avatar

marbaque

View GitHub Profile
@marbaque
marbaque / ir_sensor_contador.ino
Created March 16, 2018 20:10
código para contar personas con sensores infrarrojos
/*
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
@marbaque
marbaque / Retina Mixin
Created April 29, 2018 15:54 — forked from dallasbpeters/Retina Mixin
A Sass Mixin for retina images.
@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;
}
@marbaque
marbaque / .gitignore
Created July 22, 2018 22:12 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@marbaque
marbaque / wp-snapshot-shortcode.php
Created March 21, 2019 00:27 — forked from wpscholar/wp-snapshot-shortcode.php
Shortcode displays snapshots of remote sites on your WordPress site.
<?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(
@marbaque
marbaque / functions.php
Created July 11, 2019 15:14 — forked from taniarascia/functions.php
Inlcuding custom fields and uploads in a WordPress post
<?php
function create_post_your_post() {
register_post_type( 'your_post',
array(
'labels' => array(
'name' => __( 'Your Post' ),
),
'public' => true,
'hierarchical' => true,
@marbaque
marbaque / show_and_write_thumbnail_functions.php
Created September 23, 2019 16:18 — forked from siddartha/show_and_write_thumbnail_functions.php
Function to show and/or write thumbnails generated by Mshots from WP.org
<?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) {
<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>
@marbaque
marbaque / list.dart
Last active March 18, 2020 14:28 — forked from angelabauer/list.dart
void main() {
List<String> myList = [
'Angela',
'James',
'Katie',
'Jack',
];
//print(myList[2]);
@marbaque
marbaque / gist:5216436524ba72a5626ae07fc7d66b15
Last active October 21, 2020 02:20
oeglobal-theme-colors
const theme = {
colors:
{
'blue-100': '#0d1530',
'blue-200': '#1c2b5a',
'blue-300': '#1f377a',
'blue-400': '#1952b3',
'blue-500': '#0d59f2',
'blue-600': '#3b80f7',
'blue-700': '#6ea5f7',
<?php
/**
* Plugin Name: CPT para academia municipal
* Author: Mario Badilla PEM
* Version: 1.0.0
*/
function cptui_register_my_cpts() {