Skip to content

Instantly share code, notes, and snippets.


Kyle Cordes kylecordes

View GitHub Profile
kylecordes / insert-fragment.js
Created May 28, 2020
Post process Scully output to insert top level script tags
View insert-fragment.js
// Post-process Scully output to insert top-level third party script tags.
const globby = require('globby');
const fs = require('fs');
const path = require('path');
const myArgs = process.argv.slice(2);
if (myArgs.length !== 2) {
console.error('Usage: <distDir> <fragmentFile>');
kylecordes / gist:e62a2e95065d61b4abc0f193106bc539
Created May 9, 2016
Replace angular2/ with @angular, on OSX, for many files
View gist:e62a2e95065d61b4abc0f193106bc539
find . -name *.ts -not -path '*jspm*' -not -path '*node*' -not -name '*.d.ts' -exec sed -i '' 's/angular2\//@angular\//g' {} \;
View designer.html
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
:host {
kylecordes / gist:1070745
Created Jul 7, 2011
Verizon Samsung 3G 3-bar ping results
View gist:1070745
--- ping statistics ---
63 packets transmitted, 33 packets received, 47.6% packet loss
round-trip min/avg/max/stddev = 303.390/696.738/2263.274/485.687 ms
Kyle-Cordess-MacBook-Pro:~ kcordes$ ping -c 100
PING ( 56 data bytes
Request timeout for icmp_seq 0
64 bytes from icmp_seq=0 ttl=43 time=1061.573 ms
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
64 bytes from icmp_seq=1 ttl=43 time=3399.928 ms
You can’t perform that action at this time.