Skip to content

Instantly share code, notes, and snippets.

🎩
Ask Me Good Questions

ADoyle adoyle-h

🎩
Ask Me Good Questions
Block or report user

Report or block adoyle-h

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gitkeep
find . -type d -empty -exec touch {}/.gitkeep \;
View keybase.md

Keybase proof

I hereby claim:

  • I am adoyle-h on github.
  • I am adoyle (https://keybase.io/adoyle) on keybase.
  • I have a public key whose fingerprint is E3B3 48E9 2606 A4E3 17C9 5C99 D294 FEA7 E5A6 B137

To claim this, I am signing this object:

@adoyle-h
adoyle-h / npm-registry-licenses.txt
Created Dec 19, 2015 — forked from robertkowalski/npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module 23.11.2013
View npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module
23.11.2013
[ { key: 'undefined', value: 27785 },
{ key: 'MIT', value: 20811 },
{ key: 'BSD', value: 5240 },
{ key: 'BSD-2-Clause', value: 621 },
{ key: 'Apache 2.0', value: 263 },
{ key: 'GPL', value: 233 },
View .gitconfig
[user]
name = ADoyle
email = adoyle.h@gmail.com
[color]
ui = true
[core]
editor = nvim
excludesfile = ~/.gitignore
autocrlf = input
safecrlf = true
View vm.js
var vm = require('vm');
function printError(e) {
// console.log(e instanceof Error, e, e.stack);
console.log(e instanceof Error);
}
console.log('====== Example 1 ======');
try {
@adoyle-h
adoyle-h / test.js
Created Dec 7, 2017
bad lodash iterations
View test.js
const _ = require('lodash');
const hasLength = {
length: 4,
a: 1,
b: 2,
};
const normal = {
a: 1,
View Scrum-Intro.md

Scrum

什么是Scrum?

  • Scrum是一种迭代式增量软件开发过程,通常用于敏捷软件开发。Scrum在英语里是橄榄球运动中争球的意思,强调迅速,自我管理和可适应性。 虽然Scrum是为管理软件开发项目而开发的,它同样可以用于运行软件维护团队,或者作为计划管理方法。

谁会用到Scrum?

  • 产品经理
  • 项目经理
  • 开发人员
  • 测试人员
@adoyle-h
adoyle-h / a.bash
Created Jun 28, 2019
"shopt -s inherit_errexit" is important
View a.bash
#!/usr/bin/env bash
set -o errexit
set -o nounset
f() {
echo -n hello
INVALID_COMMAND
echo -n world
}
View 1.bash
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
shopt -s inherit_errexit
declare -a k
echo "IFS=$IFS"
View csrf.js
var http = require('http');
var targetUrl = 'https://www.douban.com/';
var body = '<html>'
+ '<head></head>'
+ '<body>'
+ '<form action="' + targetUrl + '" method="POST">'
+ '<input type="text" name="hello" value="world"/>'
+ '</form>'
You can’t perform that action at this time.