Skip to content

Instantly share code, notes, and snippets.

View yavallejo's full-sized avatar
🏠
Working from home

Yan Arlex Vallejo yavallejo

🏠
Working from home
View GitHub Profile
@yavallejo
yavallejo / OpenWithSublimeText3.bat
Last active January 26, 2018 20:13 — forked from mrchief/LICENSE.md
Add menu contextual folder With Sublime Text 3
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@yavallejo
yavallejo / gist:cbfe93e7d20f8ee77fa0
Created September 16, 2015 16:58
Setting Sublime Text
{
"always_show_minimap_viewport": true,
"auto_complete_selector": "source, text",
"bold_folder_labels": true,
"color_inactive_tabs": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"draw_white_space": "all",
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
@yavallejo
yavallejo / sidebar-salud.php
Created August 3, 2017 16:47
Listamos las paginas que han seleccionado la plantilla salud (solo es cambiar el parámetro del meta_value por el nombre que ustedes han seleccionado)
<div id="sidebar1" class="sidebar hide-for-small-only hide-for-medium-only hide-for-large-only xlarge-4 columns" role="complementary">
<div class="row">
<div class="widget margin-top background--box">
<h2 class="title title--section title--section--min">Salud</h2>
<ul class="menu vertical">
<?php
$args = array(
'post_type' => 'page',
'order' => 'ASC',
'posts_per_page' => -1,
@yavallejo
yavallejo / px to rem
Created March 25, 2018 16:39 — forked from crecotun/px to rem
px to rem converter stylus mixin
rem()
values = ()
for i in arguments
push(values, i/16 rem)
return values
// e.g. padding rem(94px 0 75px)