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 | |
/** | |
* Implements hook_preprocess_HOOK(). | |
* | |
*/ | |
function MYTHEME_preprocess_html(&$vars) { | |
// Fixes page titles for login, register & password. | |
switch (current_path()) { | |
case 'user': | |
$vars['head_title_array']['title'] = t('Login'); |
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
<snippet> | |
<content><![CDATA[ | |
@include breakpoint(${1:papa-bear / mama-bear / baby-bear}) { | |
${2:} | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>mq</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
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
// ==UserScript== | |
// @name exit exit.sc | |
// @namespace http://noromanba.flavors.me | |
// @description remove exit.sc redirector from links on SoundCloud for UserScript | |
// @include https://soundcloud.com/* | |
// @grant none | |
// @noframes | |
// @run-at document-end | |
// @version 2016.6.8.1 | |
// @homepage https://gist.github.com/noromanba/6b83ef63fe8b794364267bd832fdbc71 |
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
// This example populate the 2016,2017 and 2018 holidays in Colombia | |
[2016, 2017, 2018].forEach(function(year){ | |
var holidaysHelper = new HolidaysHelper(year); | |
// Fixed | |
[ | |
{month: HolidaysHelper.Months.January, day: 1, description: "Año Nuevo"}, | |
{month: HolidaysHelper.Months.May, day: 1, description: "Día del Trabajo"}, | |
{month: HolidaysHelper.Months.July, day: 20, description: "Grito de Independencia"}, | |
{month: HolidaysHelper.Months.August, day: 7, description: "Batalla de Boyacá"}, |
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
.paypal-blue { | |
background-color: #009cde; | |
background-image: radial-gradient(circle farthest-side at center bottom, #009cde, #003087 125%); | |
} | |
.virgin-pink { | |
background: linear-gradient(to bottom,rgba(191,33,112,1) 0,rgba(198,32,104,1) 19%,rgba(218,30,80,1) 77%,rgba(218,30,80,1) 94%); | |
} | |
.ib-green { |
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 | |
// Display variations dropdowns on shop page for variable products | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'woo_display_variation_dropdown_on_shop_page' ); | |
function woo_display_variation_dropdown_on_shop_page() { | |
global $product; | |
if( $product->is_type( 'variable' )) { | |
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
+ function($) { | |
"use strict"; | |
var StyleEditor = function() { | |
this.someState = false; | |
this.config = { | |
sideNavSelector: '.se__side-drawer', | |
secondaryDrawers: [ | |
'.se__settings__theme-library', |
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
// Expose module as global variable | |
var Module = function(){ | |
// Inner logic | |
function sayHello(){ | |
console.log('Hello'); | |
} | |
// Expose API | |
return { | |
sayHello: sayHello |
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 | |
/** | |
* Converts integer to Roman. | |
* | |
* @param int $integer | |
* Integer to be converted to Roman string. | |
* | |
* @return string | |
*/ | |
public function integerToRoman($integer) { |
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
.atomicobject.com { | |
padding-bottom: 15px; | |
padding-bottom: 1.5rem; | |
font-family: 'Merriweather', serif; | |
font-size: 17px; | |
line-height: 30px; | |
font-weight: 100; | |
} |
OlderNewer