This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "gulp", | |
"task": "watch", | |
"label": "gulp: watch", | |
"isBackground": true, | |
"presentation": { | |
"reveal": "always", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Given a YAML template, expand the `policy_templates` in the provided YAML | |
template and generate a YAML file containing each policy expanded for every | |
taggable AWS resource type. | |
""" | |
from __future__ import absolute_import, division, print_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function emptyNode(node) { | |
while (node.lastChild) { | |
node.lastChild.remove(); | |
} | |
} | |
export function sortChildren(container, sortKeyGenerator) { | |
/* | |
Sort all child nodes in a given container using the provided | |
sortKeyExtractor function to obtain the sort key. The values should be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ecs describe-task-definition --task-definition=sentry | jq -r '.taskDefinition.containerDefinitions[] | .environment[] | "export \(.name)=\(.value)"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="featured-items-container" class="well"> | |
<div id="featured-items" class="multi-carousel" data-json-url="{% url 'featured-items-json' %}"> | |
<ul class="items list-unstyled list-inline"> | |
{% for wdl_id, thumbnail_ts, title in featured_items|slice:":5" %} | |
<li class="item" data-wdl-id="{{ wdl_id|unlocalize }}"> | |
<a href="{% url 'item-detail' wdl_id=wdl_id %}" title="{{ title }}"> | |
<img class="img-rounded" width="308" height="255" src="{% media_url 'item-thumbnail' wdl_id=wdl_id height=255 width=308 timestamp=thumbnail_ts %}" alt="{{ title }}"> | |
<span class="caption">{{ title }}</span> | |
</a> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opml version="1.0"> | |
<head> | |
<title>Overcast Podcast Subscriptions</title> | |
</head> | |
<body> | |
<outline type="rss" text="Death, Sex & Money" title="Death, Sex & Money" xmlUrl="http://feeds.feedburner.com/deathsexmoney" htmlUrl="http://www.wnycstudios.org/shows/deathsexmoney"/> | |
<outline type="rss" text="Reveal" title="Reveal" xmlUrl="http://feeds.revealradio.org/revealpodcast" htmlUrl="http://www.revealnews.org/"/> | |
<outline type="rss" text="This American Life" title="This American Life" xmlUrl="http://feed.thisamericanlife.org/talpodcast" htmlUrl="https://www.thisamericanlife.org/"/> | |
<outline type="rss" text="Working" title="Working" xmlUrl="http://feeds.feedburner.com/SlatesWorking" htmlUrl="http://www.slate.com/podcasts"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
"""Download one or more URLs with a running progress display""" | |
from __future__ import (absolute_import, division, print_function, | |
unicode_literals) | |
import os | |
import sys | |
from timeit import default_timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import absolute_import, print_function | |
from multiprocessing.pool import ThreadPool | |
from random import random | |
from time import sleep | |
from timeit import default_timer | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from unicodedata import category, name | |
from sys import maxunicode | |
for i in range(0, maxunicode): | |
char = chr(i) | |
if category(char) == 'Zs': | |
print(i, name(char), char, sep='\t') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": [ | |
"stylelint-order" | |
], | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"indentation": 4, | |
"function-comma-newline-after": "always-multi-line", | |
"function-comma-space-after": "always", | |
"function-parentheses-newline-inside": "always-multi-line", |