Skip to content

Instantly share code, notes, and snippets.

View azogheb's full-sized avatar

Alexander Zogheb azogheb

View GitHub Profile
<dom-module id="x-safaribug">
<template>
<content></content>
<template is="dom-repeat">
Foo
</template>
</template>
<script>
Polymer({
is: 'x-safaribug'
@azogheb
azogheb / gist:4562376
Created January 18, 2013 04:40
Timing details template for use with cURL as per http://josephscott.org/archives/2011/10/timing-details-with-curl/
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
\n
// Request access to the tags for this resource request
[resourceRequest beginAccessingResourcesWithCompletionHandler:
^(NSError * __nullable error)
{
// Check if there is an error
if (error) {
// There is a problem so update the app state
//self.resourcesLoaded = NO;
// Should also inform the user of the error