ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| <?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; | |
| } |
| .cosa{ | |
| height: 1000px; | |
| @include respond-to(xs) { | |
| height: auto; | |
| } | |
| } |
| $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 { |
| $('#element').click(function(e){ | |
| var t = $(this); | |
| t.addClass('theclassyouwant'); | |
| e.preventDefault(); | |
| }); |
| 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"; |
| // 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'); |
| 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,\ |
| # Install Homebrew | |
| # http://mxcl.github.io/homebrew/ | |
| # Install system dependencies | |
| brew install rtmpdump git | |
| # Install perl dependencies | |
| sudo perl -MCPAN -e 'install YAML::Base' | |
| sudo perl -MCPAN -e 'install Crypt::Rijndael' | |
| sudo perl -MCPAN -e 'install WWW::Mechanize' |