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
FROM golang AS builder | |
ENV CGO_ENABLED 0 | |
RUN apt-get update && apt-get install -y libcap-dev | |
RUN go get github.com/hlandau/acmetool | |
RUN cd /go/src/github.com/hlandau/acmetool/ && go build |
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
package main | |
import ( | |
"context" | |
"log" | |
"encoding/json" | |
"fmt" | |
"strings" | |
"github.com/chromedp/cdproto" | |
"github.com/chromedp/cdproto/network" |
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
FROM imhang/shadowsocks-docker | |
RUN \ | |
set -ex \ | |
&& apk add --no-cache --virtual .build-deps \ | |
curl \ | |
&& curl -fSL https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.1.0/v2ray-plugin-linux-amd64-v1.1.0.tar.gz | tar xz \ | |
&& cp v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin \ | |
&& apk del .build-deps |
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
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] | |
public class DisableFormValueModelBindingAttribute : Attribute, IResourceFilter | |
{ | |
public void OnResourceExecuting(ResourceExecutingContext context) | |
{ | |
var factories = context.ValueProviderFactories; | |
factories.RemoveType<FormValueProviderFactory>(); | |
factories.RemoveType<JQueryFormValueProviderFactory>(); | |
} |
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
<form action="upload" method="post" enctype="multipart/form-data"> | |
<input type="file" name="file" /> | |
<input type="submit" value="Upload" /> | |
</form> |
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
FROM microsoft/dotnet:2.2.1-runtime-alpine3.8 | |
LABEL maintainer="ZHENGCHUN" | |
RUN apk update \ | |
&& apk --no-cache add fontconfig | |
VOLUME /app | |
WORKDIR /app | |
ENTRYPOINT ["dotnet"] |
This file has been truncated, but you can view the full file.
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
{"wnid":"","child":[{"wnid":"n00017222","child":[{"wnid":"n01383896","child":[{"wnid":"n01384084"},{"wnid":"n01401106"}]},{"wnid":"n11530008"},{"wnid":"n11530512","child":[{"wnid":"n13086063"},{"wnid":"n13086220"},{"wnid":"n13086438"},{"wnid":"n13086556","child":[{"wnid":"n12144399","child":[{"wnid":"n12144987"},{"wnid":"n12145148"},{"wnid":"n12145325"}]}]},{"wnid":"n13126308"}]},{"wnid":"n11530715"},{"wnid":"n11530860"},{"wnid":"n11530990"},{"wnid":"n11531090"},{"wnid":"n11531193","child":[{"wnid":"n11672400","child":[{"wnid":"n11721844"},{"wnid":"n11737534","child":[{"wnid":"n11737752"},{"wnid":"n11738063"},{"wnid":"n11738203"}]},{"wnid":"n11738547"},{"wnid":"n11836722","child":[{"wnid":"n11837020"},{"wnid":"n11837204"},{"wnid":"n11837351"},{"wnid":"n11837562"},{"wnid":"n11837743"},{"wnid":"n11837970"}]},{"wnid":"n11838413"},{"wnid":"n11858814"},{"wnid":"n11860208"},{"wnid":"n11860555"},{"wnid":"n11862300"},{"wnid":"n11862835","child":[{"wnid":"n11863242"},{"wnid":"n11863467"},{"wnid":"n11863717"},{"wnid":" |
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
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |
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
package main | |
import ( | |
"fmt" | |
"github.com/antchfx/jsonquery" | |
) | |
func main() { | |
doc, err := jsonquery.LoadURL("https://api.discogs.com/artists/1373") |