Skip to content

Instantly share code, notes, and snippets.

View kyuumeitai's full-sized avatar

Álex Acuña Viera kyuumeitai

View GitHub Profile
say -v Fred "Fitter, happier, more productive,\
comfortable,\
not drinking too much,\
regular exercise at the gym\
(3 days a week),\
getting on better with your associate employee contemporaries,\
at ease,\
eating well\
(no more microwave dinners and saturated fats),\
a patient better driver,\
// Read full blogpost explaining this at http://labs.lillyapps.no/2014/04/12/handle-timezones-parse-com
var moment = require('cloud/moment-timezone.js');
moment.tz.add(require('cloud/moment-timezone-data.js'));
Parse.Cloud.define("momentTest", function (request, response)
{
var osloSummerTime = moment.tz('2014-04-12 11:55', 'Europe/Oslo');
var osloWinterTime = moment.tz('2013-11-18 11:55', 'Europe/Oslo');
add_filter('status_header', 'mnet_hack_404', 10);
function mnet_hack_404($c) {
if (defined('HACK_404')) {
$header = '200';
$text = get_status_header_desc($header);
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ('HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol)
$protocol = 'HTTP/1.0';
return "$protocol $header $text";
$('#element').click(function(e){
var t = $(this);
t.addClass('theclassyouwant');
e.preventDefault();
});
$break-xs: 360px;
$break-sm: 768px;
$break-md: 992px;
$break-lg: 1200px;
@mixin respond-to($media) {
@if $media == xs {
@media only screen and (max-width: $break-sm) { @content; }
}
@else if $media == sm {
.cosa{
height: 1000px;
@include respond-to(xs) {
height: auto;
}
}
<?php
// debug.php by wjm <776a6d # gmail.com>
add_action( 'template_include', '_childtheme_print_template_name' );
function _childtheme_print_template_name( $template_name ) {
global $childtheme_template_name;
$childtheme_template_name = $template_name;
add_action( 'wp_footer', 'childtheme_print_template_name', 100 );
return $template_name;
}
@kyuumeitai
kyuumeitai / custom-cf7-tags.php
Created September 9, 2016 18:41 — forked from bainternet/custom-cf7-tags.php
custom contact form 7 tags
<?php
//contact form 7 extras
//author email
wpcf7_add_shortcode('expert_email', 'wpcf7_expert_email_shortcode_handler', true);
function wpcf7_expert_email_shortcode_handler($tag) {
if (!is_array($tag)) return '';
$name = $tag['name'];
if (empty($name)) return '';
@kyuumeitai
kyuumeitai / README.md
Last active January 30, 2017 19:31 — forked from lopezjurip/README.md
Write to NTFS on OSX Yosemite and El Capitan

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
@kyuumeitai
kyuumeitai / package.json
Created March 21, 2017 22:02 — forked from corysimmons/package.json
babel, sass, npm-run-all
{
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0",
"node-sass": "^3.8.0",
"npm-run-all": "^2.2.2"
},
"babel": {
"presets": [