Skip to content

Instantly share code, notes, and snippets.

View cuipengfei's full-sized avatar
:octocat:

崔鹏飞 Cui Pengfei cuipengfei

:octocat:
View GitHub Profile
this is first line
this is second line
this is third line, added after rss created
this is fourth line, also added after feed created
@cuipengfei
cuipengfei / diff
Last active December 11, 2018 08:35
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ ! function(a, b) {
"object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) {
if (!a.document) throw new Error("jQuery requires a window with a document");
return b(a)
} : b(a)
}("undefined" != typeof window ? window : this, function(a, b) {
var c = [],
d = c.slice,
e = c.concat,
f = c.push,

第一版 第一修正案

1 lead derives patrol

one lead derives(衍生) one patrol when it is put into one schedule

one lead could be put into multiple schedules, hence it could derive(衍生) multiple patrols

2 schedule includes patrols

swagger: "2.0"
info:
description: ""
version: "0.0.1"
title: "Search person"
host: "swagger.io"
basePath: "/"
tags:
- name: "person"
description: "person info"
ew0KICAgICJwcm9kdWN0SWQiOiAiOTc4MTUwODIzMTE2NSIsDQogICAgInF1YW50aXR5IjogMSwNCiAgICAib3JpZ2luYWxNZXNz
YWdlIjogIntcIm9yZGVySWRcIjpcIkdQQS4zMzQxLTcyODYtNzY0MC0yMTU0M1wiLFwicGFja2FnZU5hbWVcIjpcImNvbS50aG91
Z2h0d29ya3MucGltc2xldXIudW5saW1pdGVkLnFhXCIsXCJwcm9kdWN0SWRcIjpcIjk3ODE1MDgyMzExNjVcIixcInB1cmNoYXNl
VGltZVwiOjE1Mjg0MjA5MDgzMjgsXCJwdXJjaGFzZVN0YXRlXCI6MCxcImRldmVsb3BlclBheWxvYWRcIjpcImluYXBwOjk3ODE1
MDgyMzExNjU6MGUyZmUzZjMtZDQyYi00ZmQ1LWFhZTUtMzBkZTM4NzM0MjFlXCIsXCJwdXJjaGFzZVRva2VuXCI6XCJvZGdnb29n
ZGVub2RqaGVkZGFoamhkamMuQU8tSjFPemJJMEE2LVJwZ21kZEtzQUhVY0E0UDc2bWk2R3VDd0dQRGFfUGNVZnRHaDA2elhMUTFm
dTUxRDdKMnU5ZjV3X3hxQlYza1pvUnZ6NXdOZ0pRUmRLUlY3ZnpsTVhnU1dObHowWGR5YW5ucHBIWjZzNFdQcFlZb2VsOV9sb3c0
c052QkFaYUpFdGo2Q3hxOTkxVVo0Sm9tZVROay1nXCJ9IiwNCiAgICAidHJhbnNhY3Rpb25EYXRlIjogIjIwMTgtMDYtMDgiLA0K
ICAgICJkZXZlbG9wZXJQYXlsb2FkIjogImluYXBwOjk3ODE1MDgyMzExNjU6MGUyZmUzZjMtZDQyYi00ZmQ1LWFhZTUtMzBkZTM4
@cuipengfei
cuipengfei / gebrauchtwagen.yaml
Last active June 28, 2017 13:42
gebrauchtwagen
swagger: "2.0"
info:
version: "latest"
title: "gebrauchtwagen.at async APIs"
description: "XHR APIs of gebrauchtwagen.at. The try it out feature of swagger may not work in this page, because gebrauchtwagen.at does not allow CORS, but you can see requests and responses in Chrome's developer console."
host: "www.gebrauchtwagen.at"
basePath: "/"
schemes:
- "http"
package strategyfp
import strategyfp.Duck.{Fly, Quack, _}
abstract class Duck(f: Fly, q: Quack) {
def swim() = println("all ducks float")
def fly() = f()
def quack() = q()
private static int convertable = 1;
private static int unConvertable = 0;
int IsConvertableToNonZero(String input)
{
var parseResult = 0;
int16.TryParse(intput, out parseResult)
if(parseResult != 0)
{
return convertable;
private static int convertable = 1;
private static int unConvertable = 0;
int test2(String input)
{
try
{
var convertResult = Convert.ToInt16(input);
if(convertResult != 0) return convertable;
}