I hereby claim:
- I am urre on github.
- I am urre (https://keybase.io/urre) on keybase.
- I have a public key whose fingerprint is 763F 83B9 51FA 118E DE95 9888 0B47 509B 6056 2DE2
To claim this, I am signing this object:
var fs = require('fs'); | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var superagent = require('superagent'); | |
var jazzgreats = []; | |
var url = 'https://codex.wordpress.org/WordPress_Versions'; | |
request(url, function(error, response, html) { | |
if(!error){ |
<?php | |
$sites = wp_get_sites(); | |
foreach($sites as $site) : | |
// Only subsites | |
if (!is_main_site($site['blog_id'])) : | |
// Connect to new multisite |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// Get all blog ids in network except main site (id 1) | |
$blogs = $wpdb->get_results(" | |
SELECT blog_id | |
FROM {$wpdb->blogs} | |
WHERE site_id = '{$wpdb->siteid}' | |
AND spam = '0' | |
AND deleted = '0' | |
AND archived = '0' |
$('.specs__slider').slick({ | |
dots: true, | |
centerMode: true, | |
focusOnSelect: true, | |
arrows: false, | |
customPaging: function(slider, i) { | |
return '<div class="thumbnails">' +$(slider.$slides[i]).find('img').prop('outerHTML')+ '</div>'; | |
} | |
}); |
#!/bin/bash | |
# ************************************************************************************** | |
# | |
# Devtabs | |
# | |
# Simple example dev setup which opens separate tabs in iTerm for different tasks/runners/servers | |
# @urre 140715 | |
# | |
# ************************************************************************************** |
# Regex for finding comments in source code | |
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*) | |
/** | |
* Finds this | |
*/ | |
// And this |
#!/bin/bash | |
# ************************************************************************************** | |
# | |
# Fetch image urls from Unsplash.com | |
# by @urre | |
# | |
# ************************************************************************************** | |
# JSON with 100 images from unsplash.com |
<!DOCTYPE html> | |
<html lang="{block:English}en{/block:English}{block:French}fr{/block:French}{block:German}de{/block:German}{block:Japanese}ja{/block:Japanese}{block:Italian}it{/block:Italian}{block:Spanish}es{/block:Spanish}{block:Polish}pl{/block:Polish}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="robots" content="nofollow" /> | |
<meta name="robots" content="noindex" /> |