Skip to content

Instantly share code, notes, and snippets.

View furenku's full-sized avatar

furenku furenku

  • punksnotdev
  • Mexico
View GitHub Profile
<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,
$fontXXXS:8px;
$fontXXS:9px;
$fontXS:10px;
$fontS:12px;
$fontM:14px;
$fontL:18px;
$fontXL:28px;
$fontXXL:36px;
$fontXXXL:45px;
// la id llega como símbolo desde OSC
~id = \1;
// convertir a Int
~id = ~id.asInteger;
SynthDef(\test,{
|x=500,y=300,gate=1|
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' ); }
.h_10 {
@extend .h;
height: 10%;
}
.h_20 {
@extend .h;
height: 20%;
}
.h_25 {
<?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() ) :
<?php
class Persona {
// propiedades:
var $nombres, $apellidos, $edad, $ocupacion;
function __construct() {
}
@furenku
furenku / index.html
Last active August 27, 2016 19:05
intro-js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introducción JS</title>
<style>
body,html {
padding: 0;
@furenku
furenku / gist:7c5bcda8dfc156105cc12ac6be87b0a4
Created September 2, 2016 03:48
filter archive title prefix.php
add_filter('get_the_archive_title', function ($title) {
return preg_replace('/^\w+: /', '', $title);
});
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() {