Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
// Requires jQuery of course. | |
$(document).ready(function() { | |
$('.show-comments').on('click', function(){ | |
var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
// ajax request to load the disqus javascript | |
$.ajax({ | |
type: "GET", | |
url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
dataType: "script", |
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
// This is a combination of two modified files from jQuery Mobile, | |
// jquery.mobile.vmouse.js and jquery.mobile.event.js | |
// They were modified to only provide the touch event shortcuts, and | |
// avoid the rest of the jQuery Mobile framework. | |
// The normal jQuery Mobile license applies. http://jquery.org/license | |
// | |
// This plugin is an experiment for abstracting away the touch and mouse | |
// events so that developers don't have to worry about which method of input | |
// the device their document is loaded on supports. | |
// |
Wondering what the current standings are for the Responsive Images Community Group’s efforts? Look no further.
Bug 870021 Summary: Implement srcset
attribute on img
CLOSED: WONTFIX:
https://bugzilla.mozilla.org/show_bug.cgi?id=870021
Bug 870022 Implement picture
element:
https://bugzilla.mozilla.org/show_bug.cgi?id=870022
function has3d(){ | |
if (!window.getComputedStyle) { | |
return false; | |
} | |
var el = document.createElement('p'), | |
has3d, | |
transforms = { | |
'webkitTransform':'-webkit-transform', | |
'OTransform':'-o-transform', |
// Standard device screen widths | |
$iphone-portrait: 320px | |
$iphone-landscape: 480px | |
$ipad-portrait: 767px | |
$ipad-landscape: 980px | |
$desktop: 1224px | |
$desktop-large: 1824px | |
// General device targeting | |
// Use: Only use if you want the style to apply to many devices |
// Vimeo serves up poster images in 100, 200 and 640. But there's also size they don't serve: 1280 | |
// https://developer.vimeo.com/apis/simple | |
$vimeo_value = get_post_meta($post->ID, 'vimeo_value', TRUE); | |
$vimeo_video_id = substr($vimeo_value, strrpos($vimeo_value, '/')+1); // get just the id | |
$vimeo_xml_file = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimeo_video_id.php")); // get the video data from the API | |
$vimeo_video_width = $vimeo_xml_file[0]['width']; | |
$vimeo_thumbnail_large = $vimeo_xml_file[0]['thumbnail_large']; // load up one of the image sizes | |
if($vimeo_video_width < 1280) { | |
$vimeo_thumbnail = $vimeo_thumbnail_large; |
/* =BEGIN: Check If Page Is Child | |
Source: http://bavotasan.com/2011/is_child-conditional-function-for-wordpress/ | |
---------------------------------------------------------------------------------------------------- */ | |
function is_child( $page_id_or_slug ) { // $page_id_or_slug = The ID of the page we're looking for pages underneath | |
global $post; // load details about this page | |
if ( !is_numeric( $page_id_or_slug ) ) { // Used this code to change a slug to an ID, but had to change is_int to is_numeric for it to work. | |
$page = get_page_by_path( $page_id_or_slug ); | |
$page_id_or_slug = $page->ID; | |
} |
<?php | |
switch ($map_state) | |
{ | |
case 'Alabama': | |
$abbr = 'AL'; | |
break; | |
case 'Alaska': | |
$abbr = 'AK'; | |
break; |
These are some steps that users can take to retain privacy online. These aren't perfect, but aim to strike a balance between privacy and usability.