Skip to content

Instantly share code, notes, and snippets.

View karlosgliberal's full-sized avatar

karlos g liberal karlosgliberal

View GitHub Profile

Serie wave La onda del señor Daniel Shiffman #1

Los proyectos estan realizados con p5js @patxangas

Serie Practica Jugando con triangulos y giros #1

Los proyectos estan realizados con p5js @patxangas

Serie Practica Jugando con los vertex #1

Los proyectos estan realizados con p5js @patxangas

Serie Sin sketch Jugando con los sin #1

Los proyectos estan realizados con p5js @patxangas

Serie Luna sketch adaptado de genekogan recursiones de espirales con random gausianos Los proyectos estan realizados con p5js @patxangas

@karlosgliberal
karlosgliberal / ExtensionTwigMenu.php
Last active May 11, 2016 14:53
Extension Twig Menu
<?php
// @file modules/custom/my_module/src/Twig/MyModuleExtension.php
/**
* Provides function to programmatically rendering a menu
*
* @param String $menu_name
* The machine configuration id of the menu to render
*/
public function render_menu(string $menu_name) {
/**
* Provides function to programmatically rendering a menu
*
* @param String $menu_name
* The machine configuration id of the menu to render
*/
public function render_menu(string $menu_name) {
$menu_tree = \Drupal::menuTree();
// Build the typical default set of menu tree parameters.
Verifying that +karlosgliberal is my blockchain ID. https://onename.com/karlosgliberal
@karlosgliberal
karlosgliberal / desktopCapture.js
Last active August 29, 2015 14:14
Uso del desktopCapture en google chrome
document.querySelector('#start').addEventListener('click', function(e) {
pending_request_id = chrome.desktopCapture.chooseDesktopMedia(
["screen", "window"], onAccessApproved);
})
function onAccessApproved(id) {
if (!id) {
console.log("Access rejected.");
return;
@karlosgliberal
karlosgliberal / manifest.json
Last active August 29, 2015 14:14
manifest.json para la aplicación webRTC para la captura de pantalla
{
"name": "Captura y webRTC Etopia",
"description": "Sistema de Captura de ventana y envio mediante webRTC a la fachada de leds del centro @etopia_",
"author": "Desde los laboratorios de http://interzonas.info",
"version": "0.2",
"manifest_version": 2,
"icons": {
"16": "icon_128.png",
"48": "icon_128.png",
"128": "icon_128.png"