I hereby claim:
- I am oknoway on github.
- I am nateb (https://keybase.io/nateb) on keybase.
- I have a public key whose fingerprint is B3F4 ACFB 37D8 8945 BD8F 9A39 C4CC 87E1 79D4 190A
To claim this, I am signing this object:
function getWeather() { | |
if (false === ( $theWeather = get_transient('theWeather') ) ) { | |
$xmlUrl = 'http://www.google.com/ig/api?weather=portland&oe=utf-8&'; | |
$output = wp_remote_fopen($xmlUrl); | |
$xmlData = simplexml_load_string($output); | |
$conditions = $xmlData->weather->current_conditions->condition['data']; | |
$raining = array( 'Showers', 'Scattered Showers', 'Chance of Rain', 'Chance of Storm', 'Rain', 'Light Rain' ); |
// =Utility Classes | |
// These silent classes, called with @extend, and never output to CSS unless specifically called. | |
// example: | |
// @extend %ir; | |
// Image Replacement | |
%ir { | |
background-color: transparent; | |
border: 0; | |
overflow: hidden; |
@mixin flexbox( $display: flex, $direction: row, $wrap: wrap, $justify: start, $items: start, $content: start ) { | |
// <display> - flex | inline-flex | |
// <direction> - row | row-reverse | column | column-reverse | |
// <wrap> - wrap | nowrap | wrap-reverse | |
// <justify> - start | end | center | space-between | space-around | |
// <items> - start | end | center | baseline | stretch | |
// <content> - start | end | center | space-between | space-around | stretch | |
// @include flexbox( flex, row, wrap, start, start, start ); | |
// @include flexbox( inline-flex, column, nowrap, center, start, stretch ); |
<?php | |
function 🔦($🔋) { | |
if ($🔋 === '🐯') { | |
return '🔑'; | |
} | |
return '🍒'; | |
} |
'use strict'; | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
notify: { | |
watch: { | |
options: { |
'use strict'; | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
dirs: { | |
bower: './bower_components', | |
lib: './lib', |
function number_expeditions( $post_ID ) { | |
global $wpdb; | |
if ( !wp_is_post_revision( $post_ID ) ) { | |
$dispatchNumber = false; | |
$parent = wp_get_post_parent_id( $post_ID ); | |
$dispatchArgs = array( |
// keyframes mixin | |
// usage: | |
// @include keyframes(bgcolor) { | |
// 0% { | |
// background-color: #ffccf2; | |
// } | |
// 50% { | |
// background-color: #ccffcc; | |
// } |
I hereby claim:
To claim this, I am signing this object:
<?php if ( ! function_exists( 'get_attachment_sizes' ) ) : | |
/** | |
* Get attachments at a variety of sizes. | |
* | |
* @uses wp_get_attachment_image_src | |
* | |
* @param id - attachment id | |
* @param sizes - (optional) an array of registered image sizes as strings | |
* | |
* @return array of urls, dimensions, and size names |