I hereby claim:
- I am spikeheap on github.
- I am spikeheap (https://keybase.io/spikeheap) on keybase.
- I have a public key whose fingerprint is 48ED EC4E F283 D4D3 EAD3 9236 F3B7 4711 D033 CD1B
To claim this, I am signing this object:
| <div> | |
| <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="alert.close()">{{alert.message}}</alert> | |
| </div> |
I hereby claim:
To claim this, I am signing this object:
Do you need Promises and other ES6 goodness. This will give you polyfills for your tests, and a working Karma, Browserify & Babelify setup.
This example has been drawn up for this StackOverflow question. You probably want to polyfill Promises, etc. unless all your supported browsers already contain it. You probably also want to keep your compilation/babelification/browserification process the same between build and test. Fortunately you can (hint: common config can live in package.json), but that's outside of the scope of this Gist.
Add this function to your ZSH/BASH init to do a sane update of develop and master. Handy when you come back to a project after a couple of days.
Note that this doesn't merge develop into your current branch, but I'll leave that to you to add if you need it :).
| export XMLLINT_FILE=xmllint_20151103_1930.log | |
| xmllint --schema docs/NHIC_ICU_v8.3.2-Final.xsd --noout docs/output/NIHRHIC_CC_8.3.2_Oxford\ 03112015.xml 2>&1 | grep -v "The attribute 'm' is required but missing." > $XMLLINT_FILE | |
| # get an overview of the failure counts | |
| cut -d':' -f3 $XMLLINT_FILE | sort | uniq -c | sort | |
| # lookup a particular error (_0085 in this case): | |
| cat $XMLLINT_FILE | grep _0085 | cut -d: -f7 | sort -u |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0" | |
| xmlns:d="http://nihr.ac.uk/nhic/ICU/UCL/finalv8.3.2"> | |
| <xsl:output indent="yes"/> | |
| <xsl:strip-space elements="*"/> | |
| <xsl:variable name="dateNow" select="format-date(current-date(), '[Y0001]-[M01]-[D01]')"/> | |
| <xsl:template match="node()|@*"> |
| FROM alpine:3.2 | |
| MAINTAINER ryan@slatehorse.com | |
| RUN apk add --update nginx openssl && rm -rf /var/cache/apk/* | |
| COPY ./nginx.conf /etc/nginx/nginx.conf | |
| # Generate certificates | |
| ENV CERTIFICATE_DIR=/usr/local/app/certs |
| require 'thread' | |
| queue = Queue.new | |
| producer = Thread.new do | |
| loop do | |
| key = STDIN.getch | |
| queue << key if key | |
| end | |
| end |
| <?php | |
| // 10,000,000 | |
| $run_count = 10000000; | |
| $start_time = time(); | |
| for ($i = 0; $i < $run_count; $i++) { | |
| //1 #### Mysql database settings | |
| if (isset($_ENV["MYSQL_HOST"])) $server = $_ENV["MYSQL_HOST"]; | |
| if (isset($_ENV["MYSQL_DATABASE"])) $database = $_ENV["MYSQL_DATABASE"]; |
| #/config/environments/test.rb | |
| require 'docker' | |
| Rails.application.configure do | |
| config.after_initialize do | |
| logger.info "db:migrate" | |
| ActiveRecord::Migrator.migrate(Rails.root.join("db/migrate"), nil) | |
| end | |