This file contains hidden or 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
<canvas id="myCanvas" style="width:300px; height:300px;"></canvas> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.25/paper-full.min.js"></script> | |
<script type="text/paperscript" canvas="myCanvas"> | |
// The amount of circles we want to make: | |
var count = 150; | |
// Create a symbol, which we will use to place instances of later: | |
var path = new Path.Circle({ | |
center: [0, 0], | |
radius: 10, |
This file contains hidden or 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
$fontXXXS:8px; | |
$fontXXS:9px; | |
$fontXS:10px; | |
$fontS:12px; | |
$fontM:14px; | |
$fontL:18px; | |
$fontXL:28px; | |
$fontXXL:36px; | |
$fontXXXL:45px; |
This file contains hidden or 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
// la id llega como símbolo desde OSC | |
~id = \1; | |
// convertir a Int | |
~id = ~id.asInteger; | |
SynthDef(\test,{ | |
|x=500,y=300,gate=1| | |
This file contains hidden or 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
add_action( 'after_setup_theme', 'woocommerce_support' ); | |
function woocommerce_support() { | |
add_theme_support( 'woocommerce' ); } |
This file contains hidden or 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
.h_10 { | |
@extend .h; | |
height: 10%; | |
} | |
.h_20 { | |
@extend .h; | |
height: 20%; | |
} | |
.h_25 { |
This file contains hidden or 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 get_header(); ?> | |
<!-- section#titulo-pagina.container --> | |
<section id="titulo-pagina" class="container"> | |
<?php | |
// en el caso de las páginas estáticas, el loop nos trae | |
// el contenido de la página, no todos los posts | |
if( have_posts() ) : |
This file contains hidden or 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 | |
class Persona { | |
// propiedades: | |
var $nombres, $apellidos, $edad, $ocupacion; | |
function __construct() { | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Introducción JS</title> | |
<style> | |
body,html { | |
padding: 0; |
This file contains hidden or 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
add_filter('get_the_archive_title', function ($title) { | |
return preg_replace('/^\w+: /', '', $title); | |
}); |
This file contains hidden or 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 search_excerpt_highlight() { | |
$excerpt = get_the_excerpt(); | |
$keys = implode('|', explode(' ', get_search_query())); | |
$excerpt = preg_replace('/(' . $keys .')/iu', '<strong class="search-highlight">\0</strong>', $excerpt); | |
echo '<p>' . $excerpt . '</p>'; | |
} | |
function search_title_highlight() { |