Skip to content

Instantly share code, notes, and snippets.

View heckctor's full-sized avatar

Hektor Peña heckctor

View GitHub Profile
@heckctor
heckctor / bulmatoscss_gulpfile.js
Created October 10, 2017 00:41 — forked from kritollm/bulmatoscss_gulpfile.js
Converts Bulma CSS framework from SASS to SCSS
// Bulma to scss gulp script
// In your terminal
// 1. npm install -D sass-convert gulp bulma gulp-sass gulp-replace
// 2. gem install sass
var gulp = require("gulp"),
replace = require('gulp-replace'),
converter = require('sass-convert'),
sass = require('gulp-sass');
@heckctor
heckctor / buscar_var_url.php
Created January 26, 2018 05:22
Busca el valor en la variable de la URL
<?php
if (htmlspecialchars($_GET["lang"]) == 'en')
{
echo '
<div class="subFooter">Hand Med 2018 | <a href="./notice-of-privacy/?lang=en" >Notice of Privacy</a> </div>
';
}else
{
echo '
<div class="subFooter">Hand Med 2018 | <a href="./aviso-de-privacidad" >Aviso de Privacidad</a> </div>
@heckctor
heckctor / hosts
Created March 6, 2018 17:50
Host para bloquear anuncios en spotify
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 open.spotify.com
127.0.0.1 desktop.spotify.com
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
127.0.0.1 omaze.com
127.0.0.1 bounceexchange.com
127.0.0.1 media-match.com
@heckctor
heckctor / if_else_lang.php
Created October 25, 2018 03:06 — forked from beovulf/if_else_lang.php
If else language wordpress (polylang)
<?php
$currentlang = get_bloginfo('language');
if($currentlang=="en-GB"):
?>
<?php elseif($currentlang=="pl-PL"): ?>
<?php endif; ?>