Here's what I did to get things working.
Yep, over at: https://developer.apple.com
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
<?php | |
function vk_get_title($url) { | |
//Read URL | |
$html = file_get_contents($url); | |
// Get the 'content' attribute value in a <meta name="description" ... /> | |
$matches = array(); | |
preg_match('/<title>([^>]*)<\/title>/si', $html, $match ); | |
if (isset($match) && is_array($match) && count($match) > 0) { | |
//$title = strip_tags($match[1]); //use if want strip tags |
// Optimized Google Universal Analytics | |
// optional requirement 1: | |
// if using ga_track_pre_url feature; | |
// the DOM element must exist before document.getElementById('ga_track_pre_url').value | |
// like going just before the closing </body> tag | |
// optimized http://mathiasbynens.be/notes/async-analytics-snippet#universal-analytics | |
(function(G,o,O,g,l){G.GoogleAnalyticsObject=O;G[O]||(G[O]=function(){(G[O].q=G[O].q||[]).push(arguments)});G[O].l=+new Date;g=o.createElement('script'),l=o.scripts[0];g.src='//www.google-analytics.com/analytics.js';l.parentNode.insertBefore(g,l)}(this,document,'ga')); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Refresher</title> | |
</head> | |
<body> | |
<h1>Page Refresher</h1> | |
<p>Drag the link below to your toolbar to install the "page refresher" bookmarklet. Press the bookmarklet and you will be prompted for when you'd like the page you're on to be refreshed in your browser.</p> | |
<a href="javascript: (function () { var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://gist.githubusercontent.com/johnfmorton/9238562/raw/b2a65b62c17569d3d275b9f2a755d14658e8d036/pagerefresher.js'); document.body.appendChild(jsCode); }());">Refresher</a> |
# set to true to force inline links | |
inline: false | |
# set to true to add titles to links based on site title | |
include_titles: false | |
# if true, a failed iTunes search will fall back to Google | |
itunes_fallback: true | |
# change this to set a specific country for search (default US) |
-- | |
-- gist support for launchbar | |
-- 1. install gist client "sudo gem install gist" | |
-- https://github.com/defunkt/gist | |
-- 2. login "gist --login" | |
-- | |
-- use from launchbar as file action, string/search action, or | |
-- plain action (will take text from clipboard) | |
-- then will put gist url as launchbar result | |
-- from there you can Copy it or hit Enter to open in browser |
import keychain | |
def set_get_user_pass(service): | |
# store username and password in keychain if not found | |
if not service in [x[0] for x in keychain.get_services()]: | |
print 'Keychain does not contain %s username and password.' % service | |
username = raw_input('Enter your %s username and press enter:' % service) | |
password = raw_input('Enter your %s password and press enter:' % service) | |
print 'Username %s and password saved for %s.' % (username, service) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="refresh" content="0; pythonista://foo.py&action=run&argv=bar"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script language="JavaScript"> | |
setTimeout("self.close()", 500); | |
</script> | |
</head> |
table | |
{ | |
text-align:center; | |
border-collapse:collapse; | |
border:none; | |
font-size:0.85em; | |
display:inline-block; | |
line-height:1.4em; | |
} | |
.tablepadding |
#!/bin/bash | |
# | |
# transcode-video.sh | |
# | |
# Copyright (c) 2013-2015 Don Melton | |
# | |
about() { | |
cat <<EOF | |
$program 5.13 of April 8, 2015 |