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
# 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 |
#!./goscript | |
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
fmt.Println("hello"); |
# ---- 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' |
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() |
import yaml | |
import json | |
import pandas as pd | |
df = pd.DataFrame({'one': [1.0, 2.1, 3.2], 'two': [4.3, 5.4, 6.5]}) | |
with open('df.yml', 'w') as file: | |
yaml.dump({'result': json.loads(df.to_json(orient='records'))}, file, default_flow_style=False) |
This gist has been superceded by Meta Graph functionality that has since been added to tensorflow core.
The code remains posted for archival purposes only.
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
var path = "/Users/novalagung/Documents/temp/test.txt" |
import asyncio | |
import logging | |
import aiohttp | |
from aiohttp import web | |
from auth.utils import login_required | |
import aiodocker | |
from aiodocker.docker import Docker | |
from aiodocker.exceptions import DockerError | |
log = logging.getLogger(__name__) |
#!/bin/sh | |
# import common helper functions | |
. common_build_functions.sh | |
function UUClearCrashlyticsKeyAndSecret | |
{ | |
if [ $# != 1 ] | |
then | |
echo "Usage: UUClearCrashlyticsKeyAndSecret [Android manifest path]" |