Recently, GitHub introduced the change in how atx headers are parsed in Markdown files.
##Wrong
While this change follows the spec, it breaks many existing repositories. I took the README dataset which we created at source{d} and ran a simple
| import time | |
| from flask import Flask, request, g, render_template | |
| app = Flask(__name__) | |
| app.config['DEBUG'] = True | |
| @app.before_request | |
| def before_request(): | |
| g.request_start_time = time.time() |
Recently, GitHub introduced the change in how atx headers are parsed in Markdown files.
##Wrong
While this change follows the spec, it breaks many existing repositories. I took the README dataset which we created at source{d} and ran a simple
| # ---- Base Node ---- | |
| FROM node:carbon AS base | |
| # Create app directory | |
| WORKDIR /app | |
| # ---- Dependencies ---- | |
| FROM base AS dependencies | |
| # A wildcard is used to ensure both package.json AND package-lock.json are copied | |
| COPY package*.json ./ | |
| # install app dependencies including 'devDependencies' |
| #!./goscript | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| fmt.Println("hello"); |
| # BUILD the app in first stage | |
| FROM jamesandersen/alpine-golang-opencv3:edge | |
| RUN apk --no-cache add git | |
| WORKDIR /go/src/github.com/jamesandersen/gosudoku | |
| COPY . . | |
| RUN go get github.com/nytimes/gziphandler | |
| RUN go-wrapper download # "go get -d -v ./..." | |
| RUN go-wrapper install # "go install -v ./..." | |
| # Start from a *NEW* image in the second stage |
| addEventListener('fetch', event => { | |
| event.respondWith(fetchAndCheckPassword(event.request)) | |
| }) | |
| async function fetchAndCheckPassword(req) { | |
| if (req.method == "POST") { | |
| try { | |
| const post = await req.formData(); | |
| const pwd = post.get('password') | |
| const enc = new TextEncoder("utf-8").encode(pwd) |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next, right?
+ [email protected]
added 1 package, removed 20 packages and updated 4 packages in 13.081s
Cool! Ok...
| package queue | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/streadway/amqp" | |
| ) | |
| var conn *amqp.Connection |
| // implements Knuth or Fisher-Yates shuffle | |
| package knuth | |
| import ( | |
| "math/rand" | |
| "time" | |
| ) | |
| func init() { | |
| rand.Seed(time.Now().UTC().UnixNano()) |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of