Skip to content

Instantly share code, notes, and snippets.

View joshduck's full-sized avatar

Josh Duck joshduck

View GitHub Profile
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>Shaky friendship with Pakistan at risk as US puts heat on its ally to banish terrorists</title>
<link rel="canonical" href="http://www.abc.net.au/news/2017-08-23/pakistan-us-relationship-at-risk-philip-williams/8833534">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script type="application/ld+json">
{"@context":"http://schema.org","@type":"NewsArticle","headline":"Shaky friendship with Pakistan at risk as US puts heat on its ally to banish terrorists","keywords":"pakistan,afghanistan,united states,terror,osama bin laden","description":"A history of mistrust underlines the US-Pakistan relationship, and the Trump administration's latest demands present a new test for the friendship, writes chief correspondent Phil Williams.","author":{"@type":"Organization","name":"ABC News","url":"http://www.abc.net.au/news"},"publisher":{"@type":"Organization","name":"ABC
@joshduck
joshduck / gist:0c35f70cdd3abf88770c
Created February 24, 2016 21:58
ReactPerf to Web Tracing Framework
const ReactPerf = require('ReactPerf');
const TRACE_DOM = false;
function reactPerfTrace(objName: string, fnName: string, func: any): any {
return function(component) {
let label;
if (objName === 'ReactCompositeComponent') {
var instName = this.getName() || 'Unknown';
label = fnName === 'mountComponent' || fnName === 'updateComponent' ? instName : `${instName}.${fnName}`;