hexsha
stringlengths 40
40
| size
int64 5
1.04M
| ext
stringclasses 6
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 3
344
| max_stars_repo_name
stringlengths 5
125
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
sequencelengths 1
11
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
344
| max_issues_repo_name
stringlengths 5
125
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
sequencelengths 1
11
| max_issues_count
int64 1
116k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
344
| max_forks_repo_name
stringlengths 5
125
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
sequencelengths 1
11
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.04M
| avg_line_length
float64 1.14
851k
| max_line_length
int64 1
1.03M
| alphanum_fraction
float64 0
1
| lid
stringclasses 191
values | lid_prob
float64 0.01
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9fd11fddecd08b99a2e38a9013891bea42ca3cc1 | 1,353 | md | Markdown | readme.md | nishtrack/mobicon-cli | 537d19faf47413783d6991e64429ffa0252d9302 | [
"MIT"
] | 108 | 2015-12-22T16:52:44.000Z | 2022-01-27T07:43:05.000Z | readme.md | nishtrack/mobicon-cli | 537d19faf47413783d6991e64429ffa0252d9302 | [
"MIT"
] | 2 | 2018-04-18T13:38:38.000Z | 2020-12-30T05:09:22.000Z | readme.md | nishtrack/mobicon-cli | 537d19faf47413783d6991e64429ffa0252d9302 | [
"MIT"
] | 12 | 2017-09-29T03:06:02.000Z | 2021-04-11T04:25:18.000Z | # mobicon-cli [](https://travis-ci.org/SamVerschueren/mobicon-cli)
> Mobile app icon generator
## Install
```
$ npm install --global mobicon-cli
```
> Note: Make sure to install [GraphicsMagick](https://github.com/SamVerschueren/mobicon#graphicsmagick) as well.
## Usage
```
$ mobicon --help
Usage
$ mobicon <file>
Options
--platform, -p Platform to generate icons for
--background, -b Color of the icon background if the icon is transparant [Default: white]
--contentRatio, -r Logo-icon ratio [Default: 1]
--roundedCorners Generate icons with rounded corners [Default: true for pwa and Android]
--borderRadius Border radius percentage [Default: 0.0909]
--out, -o Output directory [Default: cwd]
Examples
$ mobicon icon.png -p=android
✔ success
$ mobicon icon.png -p=android -p=ios -p=pwa
✔ success
$ mobicon icon.svg -p=ios -o=resources
✔ success
```
## Platforms
A list of the available platforms and their generated icons can be found [here](https://github.com/SamVerschueren/mobicon#platforms).
## Related
- [mobicon](https://github.com/SamVerschueren/mobicon) - API for this module
## License
MIT © [Sam Verschueren](http://github.com/SamVerschueren)
| 25.055556 | 149 | 0.685144 | eng_Latn | 0.396857 |
9fd1a734b8dc501097cca31a4d61fedde13b2879 | 2,214 | md | Markdown | README.md | jdivock/BadMoviePoll | 4bc35c792aa614d8530ba51741fe39052c3a3f4c | [
"MIT"
] | 1 | 2015-05-17T00:53:14.000Z | 2015-05-17T00:53:14.000Z | README.md | jdivock/BadMoviePoll | 4bc35c792aa614d8530ba51741fe39052c3a3f4c | [
"MIT"
] | null | null | null | README.md | jdivock/BadMoviePoll | 4bc35c792aa614d8530ba51741fe39052c3a3f4c | [
"MIT"
] | null | null | null | # Bad Movie Poll [](https://travis-ci.org/jdivock/BadMoviePoll)
Basic Movie Polling site for Bad Movie Night™ @ Huge
### Version
0.0.1
### Tech
* [Firebase] - wooo, live db
* [React] - sup
* [jspm] - github + npm and stuff
* [systemjs] - trying this out, es6 module loading
### Installation
You need webpack installed globally:
```sh
$ npm i -g webpack
```
```sh
$ npm i
```
Then run it however you feels ([live-server] is pretty awesome)
```
$ live-server
```
or good ole python
```
$ python -m SimpleHTTPServer
```
### Todo's
- Search still a little broken
- won't run last search every once in a while
- Vote on movie page
- free text filter for table of voting movies
- Show who's voted for that movie on mouse-over votes
- Show movie synopsis on mouse over cover
- Sort by votes / alpha / year / RT rating
- Watched movies
- Admin role
- can flag movies as watched near vote
- Remove movies already watched from search results
- Next Movie Night on <x> day showing <y> movie
- Archive movie page
- Show movies we've already watched
- Leverage some service to show if it's streamable with links
- Make service private functions symbols
- Better disabled styles
- ES6 stuff
- default params
- getter/setter
- generators?
- Fix slide-up mechanism
- Maybe some react tweener stuff for .slideUp() kind of functionality
- Stop promise canceling and try to set up event stream?
- Light node-backend
- Obscure Firebase credentials
- Webpack notes
- In js files I have to specify .jsx, but in .jsx files I can leave it off
- Make Isomorphic
- es6 loader style vs isomorphic
- Do I need commonJS to run it in node?
- Probably note with --harmony right?
- Jest tests
- Travis
- Maybe some e2e stuff as well
- Login Page
- Only allow hugeinc addresses
- Handle if/when user logs out of G+
- ? - Just replace one table with the next when the user searches
License
----
MIT
[Firebase]:https://www.firebase.com/
[React]:http://facebook.github.io/react/
[jspm]:http://jspm.io/
[systemjs]:https://github.com/systemjs/systemjs
[live-server]:https://github.com/tapio/live-server
| 24.32967 | 140 | 0.707769 | eng_Latn | 0.896446 |
9fd1b26defb936ff369e7aa90e523840c81a90f6 | 1,446 | md | Markdown | 2020/10/23/2020-10-23 11:15.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | 3 | 2020-07-14T14:54:15.000Z | 2020-08-21T06:48:24.000Z | 2020/10/23/2020-10-23 11:15.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | null | null | null | 2020/10/23/2020-10-23 11:15.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | null | null | null | 2020年10月23日11时数据
Status: 200
1.Selina爸爸写给她的信
微博热度:1675281
2.黄继光班队列点名的第一个名字
微博热度:1286519
3.周震南喝嗨了
微博热度:1195183
4.李易峰问郭艾伦是前浪还是后浪
微博热度:1126280
5.打工人梗为什么会爆火
微博热度:979521
6.郭德纲回应郭麒麟一人养活德云社
微博热度:978505
7.iPhone12绿色好看
微博热度:975352
8.军队文职成绩
微博热度:716886
9.北京环球影城首批购票名额开放
微博热度:643147
10.徐睿知低胸开衩长裙
微博热度:631969
11.霜降
微博热度:582766
12.福建新增7例境外输入确诊病例
微博热度:418607
13.林医生人间理想型
微博热度:385308
14.向抗美援朝烈士敬献花篮
微博热度:379965
15.余承东称华为处于非常艰难时刻
微博热度:378327
16.华为mate40
微博热度:293730
17.拼多多iPhone12
微博热度:291236
18.网红饮品大杯三分之一是空的
微博热度:287842
19.致敬抗美援朝英雄儿女
微博热度:281044
20.金韩彬退队后首发文
微博热度:277167
21.小学生拔标本鹿角给爷爷补身体
微博热度:271515
22.虞书欣丁禹兮CP感
微博热度:270143
23.教师资格证
微博热度:265953
24.老人们为何沉迷短视频
微博热度:259193
25.金晨留言鼓励粉丝
微博热度:255928
26.陈伟霆范丞丞 豪门兄弟
微博热度:252537
27.西藏不包邮的原因
微博热度:248696
28.打工人
微博热度:224669
29.炉石传说
微博热度:211461
30.虞书欣金靖互放狠话
微博热度:209603
31.吴京问粉头是什么意思
微博热度:204652
32.巅峰时期的粤语歌有多绝
微博热度:190822
33.抗美援朝197653位牺牲烈士
微博热度:187576
34.抗美援朝精神
微博热度:182043
35.郑恺苗苗得女
微博热度:181921
36.Xinyi退役
微博热度:181513
37.四川北川连发3次地震
微博热度:170022
38.志愿军老战士获全场起立鼓掌
微博热度:169910
39.神枪手志愿军442发子弹毙敌214人
微博热度:168327
40.70年来我们从未忘记
微博热度:167931
41.中华民族是吓不倒压不垮的
微博热度:166470
42.浙江体彩史上最高奖2.69亿元诞生
微博热度:165716
43.韩国28人接种流感疫苗后死亡
微博热度:165014
44.适合霜降的文案
微博热度:163489
45.张文宏称二次感染病例少不值得讨论
微博热度:162983
46.博君一肖 俯卧撑
微博热度:162140
47.东部战区海军最新实兵实弹演练
微博热度:145940
48.三浦春马骨灰下落不明
微博热度:142379
49.Irene道歉
微博热度:133733
50.工信部已对32万款App进行检测
微博热度:133172
| 7.088235 | 21 | 0.786999 | yue_Hant | 0.317827 |
9fd321d74ef35cb41cb1a4d8d643cff7df8ad004 | 262 | md | Markdown | data/philosophers/pitagoras/README.md | kloder-art/chronosophia | 36253864c9295907619733ca6c14d654ed0bc134 | [
"MIT"
] | 1 | 2020-02-22T04:59:12.000Z | 2020-02-22T04:59:12.000Z | data/philosophers/pitagoras/README.md | kloder-art/chronosophia | 36253864c9295907619733ca6c14d654ed0bc134 | [
"MIT"
] | null | null | null | data/philosophers/pitagoras/README.md | kloder-art/chronosophia | 36253864c9295907619733ca6c14d654ed0bc134 | [
"MIT"
] | 1 | 2020-02-16T19:17:56.000Z | 2020-02-16T19:17:56.000Z | ---
id: pitagoras
name: Pitágoras
birth:
year: -569
place: Samos, Antigua Grecia
death:
year: -475
place: Metaponto
wikipedia: https://es.wikipedia.org/wiki/Pitágoras
image: portrait.jpg
teachers:
- anaximandro
students:
- filolao
- empedocles
---
| 14.555556 | 50 | 0.709924 | hun_Latn | 0.075062 |
9fd3a4d122932d5f8d429fddceedb0cb6f3e99b7 | 12 | md | Markdown | README.md | gelius7/tf-aws-vpc | 2baffab8a9e602ffc56ee28e097eb76327632387 | [
"MIT"
] | null | null | null | README.md | gelius7/tf-aws-vpc | 2baffab8a9e602ffc56ee28e097eb76327632387 | [
"MIT"
] | null | null | null | README.md | gelius7/tf-aws-vpc | 2baffab8a9e602ffc56ee28e097eb76327632387 | [
"MIT"
] | null | null | null | # tf-aws-vpc | 12 | 12 | 0.666667 | vie_Latn | 0.697545 |
9fd40be1e5596796cd67aae7d62cbbeb534a0653 | 1,637 | md | Markdown | _posts/Algorithm/Programmers/2021-01-30-Algorithm117.md | daekyojeong/daekyojeong.github.io | f6d8d6a555fb284d95b9ec46966c438c74aea9ee | [
"MIT"
] | 1 | 2021-04-22T16:29:13.000Z | 2021-04-22T16:29:13.000Z | _posts/Algorithm/Programmers/2021-01-30-Algorithm117.md | daekyojeong/daekyojeong.github.io | f6d8d6a555fb284d95b9ec46966c438c74aea9ee | [
"MIT"
] | null | null | null | _posts/Algorithm/Programmers/2021-01-30-Algorithm117.md | daekyojeong/daekyojeong.github.io | f6d8d6a555fb284d95b9ec46966c438c74aea9ee | [
"MIT"
] | 1 | 2021-01-06T13:58:00.000Z | 2021-01-06T13:58:00.000Z | ---
title: "[알고리즘] 프로그래머스 - 보석 쇼핑"
author: Daekyo Jeong
date: 2021-01-30 11:00:00 +0900
categories: [Algorithm, Programmers]
tags: [Algorithm, Programmers, Python, 알고리즘, 프로그래머스, 파이썬, 보석 쇼핑, 투포인터]
math: true
---
<br/>
# **문제**
[보석 쇼핑](https://programmers.co.kr/learn/courses/30/lessons/67258)
<br/>
# **접근**
처음에 방향을 잘못 잡아서 조금 돌아갔다.
시작과 끝쪽에 포인터를 하나씩 두고 이동한다면 O(n) 안에 탐색할 수 있는 것 같다.
투포인터 알고리즘이라고 한다.
우선 시작점 s와 끝점 e를 모두 0에 둔다.
e를 하나씩 옮기며 해당 점에 있는 보석을 담아준다.
모든 종류의 보석이 담기면 이제 s을 하나씩 이동하며 해당 점의 보석을 빼준다.
이 때 해당 보석을 뺏을 때 모든 보석 종류가 유지되지 않는 순간이 0~e 까지중 최소 구간이 된다.
정확히는 해당 지점의 보석이 1개가 되는 순간 그 보석을 제거하면 모든 종류를 유지할 수 없어진다.
이제 이걸 코드로 구현하면 된다.
set을 이용하여 보석의 종류를 찾고, 딕셔너리를 이용해서 보석별 개수를 카운팅해준다.
<br/>
# **코드**
- 파이썬 코드
```py
def solution(gems):
all_type = list(set(gems))
dic = dict.fromkeys(all_type,0)
now_type = set()
ans = len(all_type)
min_len = 987654321
start_idx = 0
end_idx = 0
answer = []
while end_idx != len(gems):
now_type.add(gems[end_idx])
dic[gems[end_idx]]+=1
if len(now_type) == ans:
while True:
if dic[gems[start_idx]] > 1:
dic[gems[start_idx]] -= 1
start_idx += 1
else:
if min_len > end_idx-start_idx+1:
answer = [start_idx+1, end_idx+1]
min_len = end_idx-start_idx+1
dic[gems[start_idx]] -= 1
now_type.remove(gems[start_idx])
start_idx += 1
break
end_idx += 1
return answer
```
<br/>
| 21.539474 | 70 | 0.541234 | kor_Hang | 0.999931 |
9fd4dde1482e9b2cfce2eec90b37f0a05256aba3 | 20 | md | Markdown | README.md | benjamincaldwell/go-system-detector | 893a24d9154e178f297d094eea39c9c46c4c6766 | [
"MIT"
] | null | null | null | README.md | benjamincaldwell/go-system-detector | 893a24d9154e178f297d094eea39c9c46c4c6766 | [
"MIT"
] | null | null | null | README.md | benjamincaldwell/go-system-detector | 893a24d9154e178f297d094eea39c9c46c4c6766 | [
"MIT"
] | null | null | null | # go-system-detector | 20 | 20 | 0.8 | eng_Latn | 0.556083 |
9fd518b50771803b74b95d47cfc45d0f6feeff99 | 1,224 | md | Markdown | 1- Basic Javascript/74-Selecting from Many Options with Switch Statements.md | mmartins23/JavaScriptAlgorithmsAndDataStructuresChallenges | 369f4fa6c4874c0fc6e30f5bb75af373c2952cc8 | [
"MIT"
] | null | null | null | 1- Basic Javascript/74-Selecting from Many Options with Switch Statements.md | mmartins23/JavaScriptAlgorithmsAndDataStructuresChallenges | 369f4fa6c4874c0fc6e30f5bb75af373c2952cc8 | [
"MIT"
] | null | null | null | 1- Basic Javascript/74-Selecting from Many Options with Switch Statements.md | mmartins23/JavaScriptAlgorithmsAndDataStructuresChallenges | 369f4fa6c4874c0fc6e30f5bb75af373c2952cc8 | [
"MIT"
] | null | null | null | # Selecting from Many Options with Switch Statements
If you have many options to choose from, use a switch statement. A switch statement tests a value and can have many case statements which define various possible values. Statements are executed from the first matched case value until a break is encountered.
Here is an example of a switch statement:
```js
switch(lowercaseLetter) {
case "a":
console.log("A");
break;
case "b":
console.log("B");
break;
}
```
case values are tested with strict equality (===). The break tells JavaScript to stop executing statements. If the break is omitted, the next statement will be executed.
Write a switch statement which tests val and sets answer for the following conditions:
```
1 - alpha
2 - beta
3 - gamma
4 - delta
```
### Answer
```js
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
switch (val) {
case 1:
answer = "alpha";
break;
case 2:
answer = "beta";
break;
case 3:
answer = "gamma";
break;
case 4:
answer = "delta";
break;
}
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(1);
```
| 21.103448 | 257 | 0.665033 | eng_Latn | 0.995058 |
9fd57b7decdc41119adcfccbb73394144ef926cd | 116 | md | Markdown | docs/reference/+vlt/+neuro/+stdp/stdp_study_plotspiketrains.m.md | VH-Lab/vhlab-toolbox-matlab | 4a0ef2698cf4b1a1b860d050e53afd7c7ce607e8 | [
"MIT"
] | 4 | 2019-08-01T17:32:13.000Z | 2020-08-14T12:03:59.000Z | docs/reference/+vlt/+neuro/+stdp/stdp_study_plotspiketrains.m.md | VH-Lab/vhlab_toolbox | fa9bc1362c88cdfb0883389d18f4dc9f31938021 | [
"MIT"
] | 4 | 2018-06-26T13:31:14.000Z | 2021-08-09T13:59:31.000Z | docs/reference/+vlt/+neuro/+stdp/stdp_study_plotspiketrains.m.md | VH-Lab/vhlab_toolbox | fa9bc1362c88cdfb0883389d18f4dc9f31938021 | [
"MIT"
] | 4 | 2019-07-05T12:38:44.000Z | 2022-02-18T00:57:55.000Z | # vlt.neuro.stdp.stdp_study_plotspiketrains
```
plot spike-timing examples at different correlations, rates
```
| 16.571429 | 61 | 0.767241 | eng_Latn | 0.715338 |
9fd5c38bdeef0a2ea46efbea07d0fb536c450cdd | 2,466 | md | Markdown | apps/python/README.md | nicedone/openEMSstim | c43479f28411f4cd4f810078647daf0886f49bb7 | [
"MIT"
] | 81 | 2016-09-26T10:19:12.000Z | 2022-03-12T08:56:49.000Z | apps/python/README.md | nicedone/openEMSstim | c43479f28411f4cd4f810078647daf0886f49bb7 | [
"MIT"
] | 3 | 2016-10-07T10:26:38.000Z | 2019-12-16T12:10:22.000Z | apps/python/README.md | nicedone/openEMSstim | c43479f28411f4cd4f810078647daf0886f49bb7 | [
"MIT"
] | 39 | 2016-07-29T08:22:50.000Z | 2021-11-05T13:07:29.000Z | # using openEMSstim via python
This is a collection of python examples of how to interface with openEMSstim (via USB):
1. **pyEMS**: is the python module that you need to send commands to openEMSstim
1. **openEMSstim.py**: is the main module, allows to connect to the board
2. **EMSCommand.py**: contains the function to generate EMS commands
2. **send_single_command.py**: is a simple script to send one command via USB to openEMSstim
3. pong-in-python: is an example of a simple game using EMS and Python
4. more-detailed-python-examples: has some extra things you might want to explore
5. tests: run ``python test_openems_module.py`` to check if your python module works
6. calibrate_openEMSstim.py: is a small script that helps you calibrate values for your prototypes. Note that the best way to interact wiuth it is by somply launching it, i.e., ``python calibrate_openEMSstim.py`` and follow the on screen commands.
## How to run the python apps
1. Make sure you have python installed
2. Install our dependency by doing: ``pip install -r requirements.txt``
3. Make sure the app that you want to run is trying to connect to the correct serial port.
1. edit the ``nameofapp.py`` file and find the line that defines and opens the EMS device, it should look like: ``ems_device = openEMSstim.openEMSstim(serial_port,19200)`` in this case, all you need to do is change the variable ``serial_port`` to your correct port (check on your operating system what is the port ID) for instance on Mac it might be something like ``serial_port = "/dev/tty.wchusbserial1410"``
4. Run an app by typing ``python nameofapp.py`` (do not forget to configure serial port)
## More info about pong-in-python game
The game is simple: every time a player looses a point (like in the image below, player left is about to loose a point) that player gets 2 seconds of EMS stimulation.

In order to alter the game, change the parameters:
1. ``self.left_player_lost_stimulation = ems_command(1,100,2000)`` [line 73]
2. ``self.right_player_lost_stimulation = ems_command(2,100,2000)``[line 74]
Or found more interesting places of the game to trigger EMS commands, maybe to counter the players' input (if you hit the keys to move… EMS prevents you from doing so!).
### License and Liability
Please refer to the liability waiver (in documentation/liability_waiver.md).
Please refer to the license (in /license.md)
| 57.348837 | 413 | 0.761557 | eng_Latn | 0.997547 |
9fd5c49ef233c36c7950c233c7d266b8a3ac7e6e | 1,546 | md | Markdown | documentation/api/analytics/endpoint-get.md | vinnytheviking/nether | 6288d484ffdd2e95593d6c3a3326235990f0466a | [
"MIT"
] | null | null | null | documentation/api/analytics/endpoint-get.md | vinnytheviking/nether | 6288d484ffdd2e95593d6c3a3326235990f0466a | [
"MIT"
] | null | null | null | documentation/api/analytics/endpoint-get.md | vinnytheviking/nether | 6288d484ffdd2e95593d6c3a3326235990f0466a | [
"MIT"
] | null | null | null | # Get Endpoint Information
Retrieves information on where and how to send game events to the analytics engine in Nether.
## Request
See Common parameters and headers that are used by all requests related to the Analytics Building Block
Method | Request URI
------- | -----------
GET | /api/endpoint?api-version={api-version}
### JSON Body
Emtpy Body
## Response
Status code: 200 - Success
### JSON Body
```json
{
"httpVerb": "POST",
"url": "https://netheranalytics-ns.servicebus.windows.net/gameevents/messages",
"contentType": "application/json",
"authorization": "SharedAccessSignature sr=https%3A%2F%2Fnetheranalytics-ns.servicebus.windows.net%2Fgameevents%2Fmessages&sig=Fs6DMqsKqfLokZ%2FAMVJ2GGFsVnPt7p9XOe1J2sfhL28%3D&se=1473518062&skn=test",
"validUntilUtc": "2016-09-10T14:34:22.3424851Z"
}
```
Element name | Required | Type | Description
------------------- | --------- | --------- | -----------
httpVerb | Yes | String | The HTTP Verb to use when sending game events
url | Yes | String | The URL to sent the game events to
contentType | Yes | String | Content type to set in the header of the request to the game event endpoint
authorization | Yes | String | Value of the authorization token to set in the header of request to the game event endpoint
validUntilUtc | Yes | String | The Universal Coordinated Time, UTC, until this information is validUntilUtc
| 35.953488 | 203 | 0.648771 | eng_Latn | 0.862443 |
9fd6393f3be98d41c1905057399daffe48fabd89 | 2,473 | md | Markdown | doc/source/jvm/jmxCollection.md | T5750/java-repositories | 931082ccf3225d545bcacd7990026339e07d4fab | [
"Apache-2.0"
] | 1 | 2021-01-05T02:33:06.000Z | 2021-01-05T02:33:06.000Z | doc/source/jvm/jmxCollection.md | T5750/java-repositories | 931082ccf3225d545bcacd7990026339e07d4fab | [
"Apache-2.0"
] | 3 | 2021-08-14T02:01:24.000Z | 2022-03-13T01:27:31.000Z | doc/source/jvm/jmxCollection.md | T5750/java-repositories | 931082ccf3225d545bcacd7990026339e07d4fab | [
"Apache-2.0"
] | 1 | 2020-12-24T11:04:39.000Z | 2020-12-24T11:04:39.000Z | # JMX
## Java Management Extensions (JMX)
>The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solutions for managing and monitoring devices, applications, and service-driven networks. By design, this standard is suitable for adapting legacy systems, implementing new management and monitoring solutions, and plugging into those of the future.
## JMX架构图

1. 基础层:主要是MBean,被管理的资源
2. 适配层:MBeanServer,主要是提供对资源的注册和管理
3. 接入层:提供远程访问的入口
类型 | 描述
---|------
standard MBean | 这种类型的MBean最简单,能管理的资源(包括属性,方法,时间)必须定义在接口中,然后MBean必须实现这个接口。它的命名也必须遵循一定的规范,例如MBean为`JmxHello`,则接口必须为`JmxHelloMBean`
dynamic MBean | 必须实现`javax.management.DynamicMBean`接口,所有的属性,方法都在运行时定义
open MBean | 此MBean的规范还不完善,正在改进中
model MBean | 与标准和动态MBean相比,可以不用写MBean类,只需使用`javax.management.modelmbean.RequiredModelMBean`即可。`RequiredModelMBean`实现了`ModelMBean`接口,而`ModelMBean`扩展了`DynamicMBean`接口,因此与`DynamicMBean`相似,Model MBean的管理资源也是在运行时定义的。与`DynamicMBean`不同的是,`DynamicMBean`管理的资源一般定义在`DynamicMBean`中(运行时才决定管理那些资源),而model MBean管理的资源并不在MBean中,而是在外部(通常是一个类),只有在运行时,才通过set方法将其加入到model MBean中
## Tomcat
```
# 相关 JMX 代理侦听开关
-Dcom.sun.management.jmxremote=true
# 服务器端的IP
-Djava.rmi.server.hostname
# 相关 JMX 代理侦听请求的端口
-Dcom.sun.management.jmxremote.port=911
# 指定是否使用 SSL 通讯
-Dcom.sun.management.jmxremote.ssl=false
# 指定是否需要密码验证
-Dcom.sun.management.jmxremote.authenticate=false
```
## Results
- `JmxHelloAgent`
- `JmxClient`
### JMX
```
nohup java -jar -Xms512M -Xmx512M -Xmn256M -XX:PermSize=96M -XX:MaxPermSize=96M -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+PrintGCTimeStamps -Djava.rmi.server.hostname=192.168.1.110 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=911 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false spring-boot.jar &
```
### jstatd
```
nohup ${JAVA_HOME}/bin/jstatd -J-Djava.rmi.server.hostname=192.168.1.110 -J-Djava.security.policy=${JAVA_HOME}/bin/jstatd.all.policy -J-Dcom.sun.management.jmxremote.authenticate=false -J-Dcom.sun.management.jmxremote.ssl=false -J-Dcom.sun.management.jmxremote.port=911 &
```
## References
- [JMX超详细解读](https://www.cnblogs.com/dongguacai/p/5900507.html)
- [使用Java VisualVM监控远程JVM](https://www.jianshu.com/p/2a6658e94ae2)
- [Java Management Extensions (JMX) Technology](https://www.oracle.com/technetwork/java/javase/tech/javamanagement-140525.html) | 48.490196 | 404 | 0.793368 | yue_Hant | 0.337892 |
9fd69f109c350aa270597ba11fcfc25135acd9cd | 2,544 | md | Markdown | README.md | xen0n/maimaidx-prober | 53a213cdf3dd990d48a767eaf852c49c8fee103e | [
"MIT"
] | null | null | null | README.md | xen0n/maimaidx-prober | 53a213cdf3dd990d48a767eaf852c49c8fee103e | [
"MIT"
] | null | null | null | README.md | xen0n/maimaidx-prober | 53a213cdf3dd990d48a767eaf852c49c8fee103e | [
"MIT"
] | null | null | null | # 舞萌 DX 查分器
本查分器仅用于推分指导用途,不保证歌曲定数、DX Rating、难度 100% 准确。此外,部分歌曲暂无定数数据,如有准确数据欢迎提供。
## 使用指南
*开始之前,建议您先注册一个查分器账户。借由此账户,您可以快捷地利用代理工具导入您的成绩数据。*
### 通过代理工具导入数据(推荐)
**感谢舞台酱对此代理工具的大力帮助。**
#### 1. 准备工作
您可以访问[此链接](https://github.com/Diving-Fish/maimaidx-prober/releases)来下载最新版本的代理工具,文件名为**maimaidx-prober-proxy.exe**。*如果您是 Windows 以外的操作系统,可以自行编译 `/proxy` 下的文件来获得可运行的程序。*
请将代理工具复制到一个空文件夹中,然后点击运行。初次运行后,代理工具将创建 3 个文件:
```c
config.json - 用户名和密码的配置文件
cert.crt - 可以导入的证书文件
key.pem - 私钥文件,无需进行任何操作
```
首先,双击 cert.crt 文件打开,点击**安装证书**,打开证书导入向导。一般情况下,只需要对当前用户安装证书即可。之后点击下一步,按照如图选择将此证书放入“受信任的根证书颁发机构”进行存储。接下来,一路选择**是**,直到提示证书导入完成。

之后,填写`config.json`文件,将您查分器的用户名和密码写入对应区域的引号中,类似这样:
```json
{"username": "MyAccount", "password": "MyPassword"}
```
此时,打开代理程序,控制台应该会提示:
```c
登录成功,代理已开启到127.0.0.1:8033
```
#### 2. 导入数据
默认情况下,代理工具将会自行更改您的系统代理。如果打开代理程序后提示
```c
自动修改代理设置失败。请尝试手动修改代理。
```
请按照折叠的部分进行操作。
<details>
<summary>点击展开</summary>
打开代理程序后,在 Windows 设置中搜索**代理服务器设置**,进入设置界面,将设置调整如下图所示,之后点击保存。

*如果您使用了其他的系统代理软件( Shadowsocks、V2Ray 等),请将它们关闭或调整至直连模式再进行设置。*
</details>
打开**电脑版微信**,进入舞萌 DX 公众号,点击**我的记录**。如果您的代理设置无误,页面将如下图显示:

切换到代理服务器的控制台界面,它将输入如图所示的内容:

在导入完毕后,刷新查分器界面,即可看到最新的乐曲成绩。**关闭代理程序后,别忘了在【代理服务器设置】中恢复以前的设置。**
如果您需要更新您的成绩数据,只需要做第 2 步便可。
### 通过源代码导入数据(仅限网页版微信)
用任意浏览器访问如下网址:https://tgk-wcaime.wahlap.com/wc_auth/oauth/authorize/maimai-dx
然后 URL 会被重定向到 **https://open.weixin.qq.com/connect/oauth2/authorize** (后面的查询参数省略掉了)。
之后,在网页版微信的任何聊天框中粘贴刚刚的 URL,如下图所示:

之后点击这个链接即可。如果一切顺利的话,浏览器中将进入舞萌 DX 的主页。如果提示**Not Found**,有可能是操作慢了一点,可以再试一次!

接下来,导航至【记录】-【乐曲成绩】,在上方选择难度后,点击 *Ctrl+U* 或右键获取源代码。

使用**Ctrl+A**全选获取的源代码,并复制到剪切板中。进入查分器主页,点击**导入数据**,将源代码粘贴到输入框中,点击导入。
至此,数据导入教程结束,您可以在查分器主页看到您的成绩数据。

#### 请作者打一局maimai?
<details>
<summary>点击展开收款码</summary>
<img style="width: 48%" src="https://www.diving-fish.com/images/qrcode/alipay_qrcode.jpg">
<img style="width: 50%" src="https://www.diving-fish.com/images/qrcode/wechat_qrcode.jpg">
</details>
### License & Disclaimer
MIT
本查分器与华立、SEGA 等公司无任何关系,注册商标所有权归相关品牌所有。请勿使用本代码用于网络攻击或其他滥用行为。
| 23.127273 | 167 | 0.74489 | yue_Hant | 0.653781 |
9fd85208e079f60e387617cd093b8743e6d6016c | 1,388 | md | Markdown | content/blog/menu-san-valentin-especial/index.md | l1oret/apizcasyamizcas | a6849043410f8959ace2ec18a6c8e8b879836409 | [
"RSA-MD"
] | null | null | null | content/blog/menu-san-valentin-especial/index.md | l1oret/apizcasyamizcas | a6849043410f8959ace2ec18a6c8e8b879836409 | [
"RSA-MD"
] | null | null | null | content/blog/menu-san-valentin-especial/index.md | l1oret/apizcasyamizcas | a6849043410f8959ace2ec18a6c8e8b879836409 | [
"RSA-MD"
] | null | null | null | ---
title: "Menú San Valentín especial"
date: "2014-02-13"
categories:
- "celebraciones-pizcas"
- "cenas"
tags:
- "amor"
- "cena-especial"
- "cena-para-dos"
- "cocina-con-amor"
- "dia-de-los-enamorados"
- "enamorados"
- "love"
- "menu-especial"
- "san-valentin"
coverImage: "san-valentín-especial-pizcas.jpg"
---
En dos días estamos celebrando el dia de San Valentín... Algunos optaréis por salir fuera y celebrarlo... si queréis sorprender a alguien especial en casa os sugerimos un menú San Valentín especial. Comprobaréis que son unos platos sencillos pero muy resultones... seguro que quedas de lujo con tu amad@

## Menú San Valentín especial
Para abrir boca
[Tapa de calamares a la plancha](/tapa-de-calamares-a-la-plancha/)

[Ensalada de pollo con yogur](/ensalada-de-pollo-con-yogur/)

Plato principal
[Risotto de alcachofas y Moscatel](/risotto-de-alcachofas-y-moscatel/)

Postre
[Delicias de manzana en compota y crema pastelera con tierra de galleta](/delicias-de-manzana-en-compota-y-crema-pastelera-con-tierra-de-galleta/)

| 29.531915 | 303 | 0.746398 | spa_Latn | 0.769297 |
9fd957c3c3a102bebe5b980cb18f7581cf6eb459 | 1,053 | md | Markdown | data/blog/item_2911.md | VallyPepyako/wsd-jam | daa81b7f253bc585002f339e78dc1b42c537ce63 | [
"MIT"
] | null | null | null | data/blog/item_2911.md | VallyPepyako/wsd-jam | daa81b7f253bc585002f339e78dc1b42c537ce63 | [
"MIT"
] | null | null | null | data/blog/item_2911.md | VallyPepyako/wsd-jam | daa81b7f253bc585002f339e78dc1b42c537ce63 | [
"MIT"
] | null | null | null | ---
path: "/blog/page_2911"
title: "Part 2911"
---
итетам и толпе читателей — охотников до серьезных книжек, как они это называют.
306IV.
Отрешившись от прежнего воззрения на божественное подчинение воли народа одному избранному и на подчинение этой воли Божеству, история не может сделать ни одного шага без противоречия, не выбрав одного из двух: или возвратиться к прежнему верованию в непосредственное участие Божества в делах человечества, или определенно объяснить значение той силы, производящей исторические события, которая называется властью.
Возвратиться к первому невозможно: верованье разрушено, и потому необходимо объяснить значение власти.
Наполеон приказал собрать войска и итти на войну. Представление это до такой степени нам привычно, до такой степени мы сжились с этим взглядом, что вопрос о том, почему 600 тысяч человек идут на войну, когда Наполеон сказал такие-то слова, кажется нам бессмысленным. Он имел власть, и потому было исполнено то, чтó он велел.
Ответ этот совершенно удовлетворителен, если мы верим, что власть дана
| 87.75 | 414 | 0.816714 | rus_Cyrl | 0.993676 |
9fd9a4ca37e5953b21ea475b32842068ac172452 | 474 | md | Markdown | src/client/kv/README.md | fedepad/daos | ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa | [
"BSD-2-Clause-Patent"
] | 429 | 2016-09-28T20:43:20.000Z | 2022-03-25T01:22:50.000Z | src/client/kv/README.md | fedepad/daos | ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa | [
"BSD-2-Clause-Patent"
] | 6,341 | 2016-11-24T12:34:26.000Z | 2022-03-31T23:53:46.000Z | src/client/kv/README.md | fedepad/daos | ac71a320b8426b1eeb1457b0b6f5e6e115dfc9aa | [
"BSD-2-Clause-Patent"
] | 202 | 2016-10-30T14:47:53.000Z | 2022-03-30T21:29:11.000Z | # DAOS KV API
The KV API simplifies the DAOS Object API and exposes a simple API to manipulate
a Key-Value object with simple put/get/remove/list operations. The API exposes
only a single Key (no multi-level keys) and a value associated with that key
which is overwritten entirely anytime the key is updated. So internally the
mapping of a the HL KV object looks like:
~~~~~~
Key -> DKey
NULL AKEY
Value -> Single Value
~~~~~~
The API is currently tested with daos_test.
| 29.625 | 80 | 0.761603 | eng_Latn | 0.99598 |
9fdbb055d130c746025b12b73e77e3627120c366 | 66 | md | Markdown | README.md | ashwani99/currency-converter-pwa | 747a520706f7cc0d86106ec8a223609997905571 | [
"MIT"
] | 2 | 2018-05-21T23:59:22.000Z | 2018-05-22T12:40:30.000Z | README.md | ashwani99/currency-converter-pwa | 747a520706f7cc0d86106ec8a223609997905571 | [
"MIT"
] | null | null | null | README.md | ashwani99/currency-converter-pwa | 747a520706f7cc0d86106ec8a223609997905571 | [
"MIT"
] | null | null | null | # currency-converter-pwa
A currency converter progressive web app
| 22 | 40 | 0.833333 | eng_Latn | 0.970485 |
9fdbd33a81f21671e878329d66138e6a03bcfe35 | 4,977 | md | Markdown | lyst_example/lyst_report.md | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | lyst_example/lyst_report.md | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | lyst_example/lyst_report.md | m-01101101/product-analytics | bcb8266ef183aa2f40fb54ba4604f0e38db54e8a | [
"MIT"
] | null | null | null | # Lyst Report
> Analyze the data set and offer any insights
Lyst is aiming to build a site that is to go to destination for fashion. Based on the data available I'll ask a number of questions to build an understanding of the business and product.
When it comes to shopping two distinct behaviours come to mind, (1) "I know what I want, I want to see if you have it in my size at a good price" and (2) "just looking, inspire me". The two behaviours will "co-exist", someone might browse often, continually looking at items until they are willing to purchase. Equally, someone could be wowed by an item and purchase it immediately.
It looks like most purchases made on Lyst are those made with an item already in mind. ~50% of purchases are made within 10 minutes of visiting the site;
<img src="md_refs/timetopurchase.png">
This seems to be true generally, people come to Lyst with high intent, they seem to have a product already in mind. The chart below looks at the time from visiting to leaving to the retailer selling the product. If people are browsing, they are doing so for a short period.
<img src="md_refs/time_visittoleave.png">
This highlights the importance of the initial experience, whether it's features put together by Lyst's editors or recommendations based on the customer's history. Equally, it may highlight that Lyst is not quite fulfilling the "discovery / window shopping" experience, but is seen as a place people can go to find an item they already want. Further analysis would be required to make any concrete claims such as this.
Looking at the distribution of pages viewed per visit paints a similar picture, people come to Lyst with high intent.
<img src="md_refs/page_views.png">
----
The "traffic source" of visitors on the site can also tell us a bit more about how people are using the site.
If we aggregate by traffic source and normalise by the number of devices that made a purchase (using purchase as a proxy for person);
<img src="md_refs/ts_overview.png">
Looking at the aggregated numbers;
- We can see email has much higher repeat purchase rate than SEO
- Intuitively, this makes sense, we could be letting the customer know we have found an item back in stock or giving recommendations based on their purchase history. Good news is once we build a relationship with the customer, we are able to serve them well
- Email also has a much higher conversion rate, 32% of devices coming from email made a purchase, compared to 14% for SEO
- It would be good to break down both email and campaign by UTMs to understand this behaviour
- Customers are likely to use the site again once have made a purchase
- This is less true for paid, where I assume Lyst has paid to rank for a particular item
- On average people buy more than one item at once and do two or three times a year, spend anywhere from £200 to £500. Can we hypothesise that people are using Lyst to purchase a small number of luxury goods a year, or "treat items"?
Averages and aggregated numbers can be misleading, so we'll break down categories to better understand behaviour.
From the image below, surprisingly email has the thinnest tail. Devices purchasing through email have a lower percentage of devices making a single purchase, but equally, they have a greater asymptote. Even removing the top 1%, email is less likely to drive a high number of purchases throughout the year. Trying to understand this, I think it makes sense as email is "push", whereas the other three traffic sources are "pull", the intent is generated by the user and we're trying to draw them in.
<img src="md_refs/ts_purchases.png">
----
I had a hypothesis that because people are typically drop hundreds of pounds per order, purchases would be likely made at the end or start of the month, i.e. close to pay day.
<img src="md_refs/purchase_dom.png">
It's clear that hypothesis is wrong. Customers are perhaps more price inelastic, or the average purchase price is being skewed by a number of expensive items. Therefore Lyst is able to offer high-street and high-end fashion.
----
Significantly more time could have been spent analysing the data. However, I want to give an indication of what is realistic in just two hours.
An example of questions I would have liked to investigate;
* Do they have lots of visits building up to a purchase?
* Do they browse through the week and then purchase on the weekend?
* What does the distribution of purchase value look like?
* What would the traffic source look like if we did first visit attribution? i.e. where do we first find customers - though per in mind the data represents a single year, we cannot assume every customer is new in 2017
* Construct a 454 calendar to create a view on seasonality
Due to the small number of features and in-balance in the dataset (small number of purchases) I was hesitant to run any regression or generalised linear models to try and determine what makes someone likely to purchase.
| 73.191176 | 497 | 0.783203 | eng_Latn | 0.999947 |
9fdbe199ae9f562d606213f05378e474a6a1eded | 840 | md | Markdown | src/com/vijay/creational/singleton/README.md | vijaykumarsrivastava/design-pattern | 54255d65de0f057ae7b25ea94371b169419c3ade | [
"Apache-2.0"
] | null | null | null | src/com/vijay/creational/singleton/README.md | vijaykumarsrivastava/design-pattern | 54255d65de0f057ae7b25ea94371b169419c3ade | [
"Apache-2.0"
] | null | null | null | src/com/vijay/creational/singleton/README.md | vijaykumarsrivastava/design-pattern | 54255d65de0f057ae7b25ea94371b169419c3ade | [
"Apache-2.0"
] | null | null | null | * [Home](../../../../../README.md)
# Singleton Pattern
#### Definition
The Singleton pattern provides the possibility to control the number of
instances (mostly one) that are allowed to be made. We also receive a global
point of access to it (them).
#### Where to use
When only one instance or a specific number of instances of a class are
allowed. Facade objects are often Singletons because only one Facade object
is required.
#### Benefits
* Controlled access to unique instance.
* Reduced name space.
* Allows refinement of operations and representations.
#### Drawbacks/consequences
Singleton pattern is also considered an anti-pattern by some people, who feel
that it is overused, introducing unnecessary limitations in situations where a
sole instance of a class is not actually required.
* [Home](../../../../../README.md)
| 28.965517 | 78 | 0.74881 | eng_Latn | 0.999758 |
9fdd8b1ebda531f939993af63bca6a8aca39e2b4 | 685 | md | Markdown | 12-letterbox/exercises/README.md | cyyeh/exercises-in-programming-style | 70c4c3a346c77eb207c247b8c717d490099cce4f | [
"MIT"
] | null | null | null | 12-letterbox/exercises/README.md | cyyeh/exercises-in-programming-style | 70c4c3a346c77eb207c247b8c717d490099cce4f | [
"MIT"
] | null | null | null | 12-letterbox/exercises/README.md | cyyeh/exercises-in-programming-style | 70c4c3a346c77eb207c247b8c717d490099cce4f | [
"MIT"
] | null | null | null | # Exercises
1. Another language. Implement the example program in another language, but preserve the style.
2. Delegation. Let’s bring back the info methods of the Things style (previous chapter). Write a version of the program without using Python’s inheritance relations, but in a way that preserves those relations’ code reuse intention. That is, the info methods should be available to all classes when they receive the info message, but no procedures should be directly defined in any of the existing classes. Hint: Take inspiration from the Self programming language in using parent fields.
3. A different task. Write one of the tasks proposed in the Prologue using this style.
| 114.166667 | 488 | 0.80438 | eng_Latn | 0.99955 |
9fde38fd6b481dd9af1dfb4fd5a8c5315beab73a | 6,266 | md | Markdown | extensions/docs/extra_docs/uma_metrics.md | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2020-12-22T05:48:31.000Z | 2022-02-08T19:49:49.000Z | extensions/docs/extra_docs/uma_metrics.md | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2020-05-22T18:36:43.000Z | 2021-05-19T10:20:23.000Z | extensions/docs/extra_docs/uma_metrics.md | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2019-12-06T11:48:16.000Z | 2021-09-16T04:44:47.000Z | # Usage
UMA (User Metrics Analysis) is user metrics e.g. latency metrics, feature usage, etc.
A histogram is a chart that groups numeric data into bins, displaying the bins as segmented columns.
Histogram is an object that aggregates statistics, and can summarize them in
various forms, including ASCII graphical, HTML, and numerically (as a
vector of numbers corresponding to each of the aggregating buckets).
It supports calls to accumulate either time intervals (which are processed
as integral number of milliseconds), or arbitrary integral units.
Histograms are often put in areas where they are called many many times, and
performance is critical. As a result, they are designed to have a very low
recurring cost of executing (adding additional samples).
See for details:
* https://chromium.googlesource.com/chromium/src/+/master/tools/metrics/histograms/README.md
* https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md
* https://github.com/chromium/chromium/blob/b29e8a942dd6facfec8beccdada522c34a2225fc/tools/metrics/histograms/one-pager.md
* https://sites.google.com/a/chromium.org/dev/updates/schemeful-same-site/testing-and-debugging-tips-for-schemeful-same-site#TOC-Using-Chrome-Histograms
* https://chromium.googlesource.com/chromium/src/+/lkgr/docs/speed/README.md
* https://developers.google.com/chart/interactive/docs/gallery/histogram
* https://wiki.mozilla.org/Performance/Telemetry
You can send metrics to server, see `https://github.com/chromium/chromium/blob/master/components/metrics/url_constants.cc`
First, inlude some files from `base/metrics`:
```cpp
#include <base/metrics/histogram.h>
#include <base/metrics/histogram_macros.h>
#include <base/metrics/statistics_recorder.h>
#include <base/metrics/user_metrics.h>
#include <base/metrics/user_metrics_action.h>
#include <base/metrics/histogram_functions.h>
#include <base/process/process_metrics.h>
```
There are three general types of histograms: enumerated histograms, count histograms (for arbitrary numbers), and sparse histograms (for anything when the precision is important over a wide range and/or the range is not possible to specify a priori).
See `https://chromium.googlesource.com/chromium/src/+/master/tools/metrics/histograms/README.md`
Examples:
```cpp
UMA_HISTOGRAM_BOOLEAN("App.BoolTest()", false);
UMA_HISTOGRAM_COUNTS_100("App.TestCounts", 11);
UMA_HISTOGRAM_LONG_TIMES("App.TimeNow()", ::base::TimeDelta::FromMinutes(5));
UMA_HISTOGRAM_ENUMERATION("Login", OFFLINE_AND_ONLINE, NUM_SUCCESS_REASONS);
::base::UmaHistogramMemoryLargeMB("HeapProfiler.Malloc", malloc_usage_mb);
UMA_HISTOGRAM_MEMORY_MB("SourceBufferStream.MemoryLimit", memory_limit_ / (1024 * 1024));
UMA_HISTOGRAM_COUNTS_1000("App.AppInitAttemts",
appInitAttemtsCount);
SCOPED_UMA_HISTOGRAM_TIMER( /// \note measures up to 10 seconds
"startPluginManager from " + FROM_HERE.ToString());
// We scale up to the equivalent of 64 CPU cores fully loaded.
// More than this does not really matter,
// as we are already in a terrible place.
const int kHistogramMin = 1;
const int kHistogramMax = 6400;
const int kHistogramBucketCount = 50;
UMA_HISTOGRAM_CUSTOM_COUNTS(
"App.AverageCPU", cpu_usage,
kHistogramMin, kHistogramMax, kHistogramBucketCount);
enum {
HISTOGRAM_MIN_HTTP_RESPONSE_CODE = 100,
HISTOGRAM_MAX_HTTP_RESPONSE_CODE = 599,
};
int MapHttpResponseCode(int code) {
if (HISTOGRAM_MIN_HTTP_RESPONSE_CODE <= code &&
code <= HISTOGRAM_MAX_HTTP_RESPONSE_CODE)
return code;
return 0;
}
std::vector<int> GetAllHttpResponseCodes() {
std::vector<int> codes;
codes.reserve(
HISTOGRAM_MAX_HTTP_RESPONSE_CODE - HISTOGRAM_MIN_HTTP_RESPONSE_CODE + 2);
codes.push_back(0);
for (int i = HISTOGRAM_MIN_HTTP_RESPONSE_CODE;
i <= HISTOGRAM_MAX_HTTP_RESPONSE_CODE; ++i)
codes.push_back(i);
return codes;
}
UMA_HISTOGRAM_CUSTOM_ENUMERATION("Net.HttpResponseCode",
MapHttpResponseCode(response_code_),
// Note the third argument is only
// evaluated once, see macro
// definition for details.
GetAllHttpResponseCodes());
auto processMetrics
= base::ProcessMetrics::CreateCurrentProcessMetrics();
{
size_t malloc_usage =
processMetrics->GetMallocUsage();
VLOG(1)
<< "malloc_usage: "
<< malloc_usage;
int malloc_usage_mb = static_cast<int>(malloc_usage >> 20);
base::UmaHistogramMemoryLargeMB("App.Memory.HeapProfiler.Malloc",
malloc_usage_mb);
}
```
## Histogram Naming Convention
See https://chromium.googlesource.com/chromium/src/+/master/tools/metrics/histograms
Use TrackerArea.MetricName. For example:
Logging.CrashCounter
Network.TimeToDrop
## FAQ
Q. What should my histogram's |min| and |max| values be set at?
A. You should set the values to a range that covers the vast majority of samples
that would appear in the field. Note that samples below the |min| will still
be collected in the underflow bucket and samples above the |max| will end up
in the overflow bucket. Also, the reported mean of the data will be correct
regardless of the range.
Q. How many buckets should I use in my histogram?
A. You should allocate as many buckets as necessary to perform proper analysis
on the collected data. Note, however, that the memory allocated in Chrome for
each histogram is proportional to the number of buckets. Therefore, it is
strongly recommended to keep this number low (e.g., 50 is normal, while 100
is probably high).
Q. When should I use an enumeration (linear) histogram vs. a regular
(exponential) histogram?
A. Enumeration histograms should really be used only for sampling enumerated
events and, in some cases, percentages. Normally, you should use a regular
histogram with exponential bucket layout that provides higher resolution at
the low end of the range and lower resolution at the high end. Regular
histograms are generally used for collecting performance data (e.g., timing,
memory usage, power) as well as aggregated event counts.
| 40.166667 | 250 | 0.746728 | eng_Latn | 0.827971 |
9fde40ee22b1a15899d0a2e98c7a22274cc55096 | 51 | md | Markdown | README.md | IceMao/newtest | a09616ae926d7ac672e2d03904b40d680c93b24e | [
"MIT"
] | null | null | null | README.md | IceMao/newtest | a09616ae926d7ac672e2d03904b40d680c93b24e | [
"MIT"
] | null | null | null | README.md | IceMao/newtest | a09616ae926d7ac672e2d03904b40d680c93b24e | [
"MIT"
] | null | null | null | ######学习《Node与Express开发》
######关于node,express的项目
| 17 | 25 | 0.627451 | eng_Latn | 0.129267 |
9fdec8dc085fda8a57ac01369b293d8dc1cae519 | 1,903 | md | Markdown | src/api/todo.md | zaBogdan/zaEngine | cd5ff8f45967765bdadef31681b083bb7268744a | [
"MIT"
] | null | null | null | src/api/todo.md | zaBogdan/zaEngine | cd5ff8f45967765bdadef31681b083bb7268744a | [
"MIT"
] | null | null | null | src/api/todo.md | zaBogdan/zaEngine | cd5ff8f45967765bdadef31681b083bb7268744a | [
"MIT"
] | null | null | null | # Version 0.5 - Pre-Checklist
- [ ] Add Audit system.
- [ ] Add tags
- [ ] Add Error Handler system
- [ ] Autoload files
- [ ] Redesign AdminCP
- [ ] Build Moderation panel
- [ ] Rework the FileSystem
- [ ] Rework the DatabaseSystem
- [ ] Create a routing engine & make sure it's secure
- [ ] Extend database class (generate tables based on classes)
# Version 0.4 - Checklist
- [x] Tokens relationship with database
- [x] Rework the sessions and how they behave.
- [x] Users must be refreshed, must add Restrictions, Roles and Access Levels
- [x] Finish the transfer from oldAdmin to API
- [x] Rebrand it: Zephyrus
- [x] Add categories
- [x] Add pagination
- [x] Finish posts page
- [x] Add `search`
- [ ] Add `edit/delete` posts
- [x] Complete the admin panel (Fields for User & Posts, Categories tab)
- [ ] Finish the linking & release
# Frontend raw content
Access this link: [Click me](https://github.com/zaBogdan/Zephyrus/tree/6743cb4790e57db68d66f722f739b6ab32b00579)
> **Note**: Everything that's under this is not implemented yet. To be done.
# List of permissions (this will be updated with features)
### Moderation
- warnUser
- restrictUser
- modifyForeignUser
- modifyForeignContent
- modifyForeignProfile
- modifyForeignComments
- hidePosts
- hideProfile
- editPosts
### Administrative
- accessAdmin
- assignRole
- assignAdministrativeRole
- revokeForeignToken
- deleteExistingUser
- readTokens
### UserContent
- uploadFiles
- unlimitedSize
- readPosts
- createPosts
- createGroups
- addComments
- removeComments
- noValidationNeeded
# Roles
### Founder
- * (which means everything)
### Administrator
- * \ (assignAdministrativeRole)
### Moderator
- accessAdmin
- * from Moderation
### Trusted User (>100 followers)
- * from UserContent \ (unlimitedSize)
### Reader
- * from UserContent \ (unlimitedSize, noValidationNeeded)
### Guest (non logged user)
- readPosts
| 21.144444 | 112 | 0.725171 | eng_Latn | 0.731963 |
9fdf3e26834b6059f015d8f6f219cdbb849234be | 1,966 | md | Markdown | _posts/2021-05-22-spreadsheets.md | mediamonks/richmedia-docs | a82ba03fc0f420c94e166039a3c75d5e95fff198 | [
"MIT"
] | 1 | 2021-03-23T14:23:30.000Z | 2021-03-23T14:23:30.000Z | _posts/2021-05-22-spreadsheets.md | mediamonks/richmedia-docs | a82ba03fc0f420c94e166039a3c75d5e95fff198 | [
"MIT"
] | null | null | null | _posts/2021-05-22-spreadsheets.md | mediamonks/richmedia-docs | a82ba03fc0f420c94e166039a3c75d5e95fff198 | [
"MIT"
] | 3 | 2021-01-08T09:34:43.000Z | 2021-04-28T08:59:21.000Z | ---
layout: post
title: Using google spreadsheets in the feeds
subtitle: using google spreadsheets in the feeds
author: mientjan
tags: [dataBind, inline]
comments: true
---
So you have a richmedia unit and you need generate 19 different versions with different copy for different sizes and languages.
This is now possible with `contentSource` by adding contentSource to your richmediarc you can link to a spreadsheet and use that as a content source.
i created a example spreadsheet here. [https://docs.google.com/spreadsheets/d/1BImA3lgTJsbVl56GQTFT-b1dx4FIoeQFBe9WLp0wWxc/edit#gid=0](https://docs.google.com/spreadsheets/d/1BImA3lgTJsbVl56GQTFT-b1dx4FIoeQFBe9WLp0wWxc/edit#gid=0)
as you can see it has 6 columns with the first row defining the name of the column. These rows with their content will be used as the source for
the content property of your richmediarc.
```json
{
"settings": {
"bundleName": "${content.size}_${settings.version}_${settings.language}",
"entry":{
"js":"./script/main.js",
"html":"index.hbs"
},
"contentSource":{
"url":"https://docs.google.com/spreadsheets/d/1BImA3lgTJsbVl56GQTFT-b1dx4FIoeQFBe9WLp0wWxc/edit#gid=0",
"apiKey": "API_KEY",
"tabName": "main",
"filter": {
"version": "beauty"
}
}
},
"content":{
"title":"default title",
"copy0":"default copy",
"cta":"default cta"
}
}
```
You just need to replace API_KEY placeholder with your own generated key. You can generate a key here [https://developers.google.com/sheets/api/guides/authorizing#APIKey](https://developers.google.com/sheets/api/guides/authorizing#APIKey)
in contentSource you also see a property called tabName and filter.
- `tabName` will let you define what tab you want to use of your spreadsheet.
- `filter` will let you filter the only values you want. so in this example it will only select rows with the value "beauty" in the version column.
Try it out.. | 38.54902 | 238 | 0.725839 | eng_Latn | 0.974927 |
9fdf70e4b6626437f95fc6c8f6b3f8f2e390da73 | 180 | md | Markdown | app/posts/manage-teacher-training-applications/user-needs/MN017.md | tvararu/bat-design-history | 21b7c127631e1a6ea2645777a9ae9151bcc50881 | [
"MIT"
] | 1 | 2020-01-07T18:43:57.000Z | 2020-01-07T18:43:57.000Z | app/posts/manage-teacher-training-applications/user-needs/MN017.md | tvararu/bat-design-history | 21b7c127631e1a6ea2645777a9ae9151bcc50881 | [
"MIT"
] | 4 | 2020-01-07T18:42:20.000Z | 2020-01-13T19:08:34.000Z | app/posts/manage-teacher-training-applications/user-needs/MN017.md | tvararu/bat-design-history | 21b7c127631e1a6ea2645777a9ae9151bcc50881 | [
"MIT"
] | null | null | null | ---
status: validated
---
As a provider
I need to look at a candidate’s previous applications
So that I can see if they’ve improved their latest application based on the feedback
| 22.5 | 84 | 0.772222 | eng_Latn | 0.99976 |
9fdf8c8dcc6349bffa8b4d9b3e19aebbc9ed9960 | 3,068 | md | Markdown | README.md | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 11 | 2016-03-23T20:34:19.000Z | 2019-07-16T13:21:48.000Z | README.md | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 5 | 2016-03-22T05:35:46.000Z | 2019-04-02T16:44:00.000Z | README.md | douglascamata/cep | 042aa6d2bcb64b459ac6ac281add2f2f753a6877 | [
"MIT"
] | 3 | 2019-03-26T18:54:59.000Z | 2020-07-06T22:41:51.000Z | # Cep
[](https://travis-ci.org/douglascamata/cep)
A package to query Brazilian zip (CEP) codes.
Has support for multiple source APIs (Correios, ViaCep, Postmon, etc).
It can query one specific source or query until one source returns a valid
result.
## Table of Contents
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Sources](#sources)
- [Future](#future)
## Installation
It's is available as an [Hex](https://hex.pm) package and thus can be installed
as:
1. Add cep to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:cep, "~> 0.0.2"}]
end
```
## Usage
To query for the address of any given Brazilian CEP code:
```elixir
{:ok, address} = Cep.Client.get_address("29375-000")
IO.inspect address
```
The default `Cep.Client.get_address` will first try to access the official Brazilian
Post Office web service to get the information. If the web service is down,
timeout or doesn't have information about one specific CEP the next source will
be automatically and transparently used. If none of the sources give good reply
it will return a proper error, as in the following example:
```elixir
{status, reason} = Cep.Client.get_address("00000-000")
IO.inspect status
IO.inspect reason
```
You can modify the sources that a query will use by using the `sources` keyword
argument and sending as its value any combination of the element from
`Cep.sources` as follows:
```elixir
available_sources = Keyword.delete(Cep.sources, :correios)
{:ok, address} = Cep.Client.get_address("28016-811", sources: available_sources)
```
To query just one specific source there is a sugar: just send the `source` with
the desired source:
```elixir
Cep.Client.get_address("28016-811", source: :viacep)
```
## Configuration
### Sources
You can change the default sources used when no `source` or `sources` keywords
are sent to `Cep.Client.get_address` by modifying your config file like this:
```elixir
config :cep, sources: [:correios, :viacep]
```
**IMPORTANT**: even if you add the default sources in config file, the `source`
and `sources` keywords can override this configuration.
#### Add a custom source
```elixir
defmodule Cep.Sources.Custom.YourNewGreateSource do
import Cep.Sources.Base
@behaviour Cep.Source
def get_address(cep) do
# implement your source returning:
# { :ok, %Cep.Address{...} }
# or
# { :error, "reason" }
# or
# { :not_found, _ }
end
end
```
and then pass it as the default sources in config file or as `sources` keywords.
```elixir
config :cep, sources: [:correios, Cep.Sources.Custom.YourNewGreateSource]
# or
client.get_address("00010-100", sources: [:correios, Cep.Sources.Custom.YourNewGreateSource])
```
## Future
Future features that are planned:
1. Use the circuit breaker pattern to avoid querying sources that return
unexpected errors too often.
2. Use [Mox](https://github.com/plataformatec/mox) in the specs
| 26 | 117 | 0.730769 | eng_Latn | 0.887491 |
9fdfa86e57d93bcc70083aa2305a6bfc10fef925 | 114 | md | Markdown | README.md | AndresGallop/Java-and-Data-HW | dd06455f80cf10b058017c10680eaccf969f4fa1 | [
"MIT"
] | null | null | null | README.md | AndresGallop/Java-and-Data-HW | dd06455f80cf10b058017c10680eaccf969f4fa1 | [
"MIT"
] | null | null | null | README.md | AndresGallop/Java-and-Data-HW | dd06455f80cf10b058017c10680eaccf969f4fa1 | [
"MIT"
] | null | null | null | # Java-and-Data-HW
This is my last homework of Multimedia Authoring
# MIT License
This falls under the MIT lice
| 19 | 49 | 0.77193 | eng_Latn | 0.989974 |
9fe03f97a1fdb215feb1d750e5a8d3a5a42bd962 | 991 | md | Markdown | _posts/2018-08-26-RSG-Coaching-Retreat.md | wjmmx/wjmmx.github.io | ac7aecfb06d19074ffa7bef90bd230c993437204 | [
"MIT"
] | 1 | 2019-04-13T15:35:54.000Z | 2019-04-13T15:35:54.000Z | _posts/2018-08-26-RSG-Coaching-Retreat.md | wjmmx/wjmmx.github.io | ac7aecfb06d19074ffa7bef90bd230c993437204 | [
"MIT"
] | 8 | 2019-02-17T08:32:24.000Z | 2020-03-19T03:36:21.000Z | _posts/2018-08-26-RSG-Coaching-Retreat.md | wjmmx/wjmmx.github.io | ac7aecfb06d19074ffa7bef90bd230c993437204 | [
"MIT"
] | null | null | null | ---
title: RSG Coaching Retreat 2018
key: 20180826
tags: Coaching, learning
---
# Coaching Retreat
2018年8月26日上海浦东假日酒店教练静修
<!--more-->

> Safe environment - how to help to create the environment safe for (Senior manag, team, HR, sales, ...)
下面是一个可能的思考示例,遵循这样的结构化思维,Coach可以和Coachee有一个谈话,来inspire他思考和形成行动方案。
- 什么是Safe Environment?它的典型特征是什么?
- 物理工作环境
- 言论自由
- 允许失败
- 如何创建Safe Environment?
> Coaching - In situations where management resists changing because they feel it will impact their career
> How to effectively use intrinsic motivation factors to inspire teams
> Mentor the ways of thinking instead of doing (e.g. 不仅仅知道怎么开站会,更要知道为什么开站会)
---
- 我们为什么想要人们改变?
- 他们为什么要改变?他们是否看到自己的需求?
- Activity的价值是什么?帮助Coachee看到Activity的价值
- 也可以先帮助Coachee改变做事的方式
----
### Action List
- [ ] Try something new crazily
- [ ] Team consensus
- [ ] Systems thinking
- [ ] Stop asking "Why"
| 21.085106 | 106 | 0.738648 | eng_Latn | 0.687162 |
9fe04d2ff80d9e934097935864408c63bd657006 | 22,856 | md | Markdown | docs/user_guides/nlp_case/label_semantic_roles/README.cn.md | shiyutang/docs | b05612213a08daf9f225abce08fc42f924ef51ad | [
"Apache-2.0"
] | 104 | 2018-09-04T08:16:05.000Z | 2021-05-06T20:45:26.000Z | docs/user_guides/nlp_case/label_semantic_roles/README.cn.md | shiyutang/docs | b05612213a08daf9f225abce08fc42f924ef51ad | [
"Apache-2.0"
] | 1,582 | 2018-06-25T06:14:11.000Z | 2021-05-14T16:00:43.000Z | docs/user_guides/nlp_case/label_semantic_roles/README.cn.md | shiyutang/docs | b05612213a08daf9f225abce08fc42f924ef51ad | [
"Apache-2.0"
] | 387 | 2018-06-20T07:42:32.000Z | 2021-05-14T08:35:28.000Z | # 语义角色标注
本教程源代码目录在[book/label_semantic_roles](https://github.com/PaddlePaddle/book/tree/develop/07.label_semantic_roles),初次使用请您参考[Book文档使用说明](https://github.com/PaddlePaddle/book/blob/develop/README.cn.md#运行这本书)。
### 说明
1. 本教程可支持在 CPU/GPU 环境下运行
2. Docker镜像支持的CUDA/cuDNN版本
如果使用了Docker运行Book,请注意:这里所提供的默认镜像的GPU环境为 CUDA 8/cuDNN 5,对于NVIDIA Tesla V100等要求CUDA 9的 GPU,使用该镜像可能会运行失败;
3. 文档和脚本中代码的一致性问题
请注意:为使本文更加易读易用,我们拆分、调整了[train.py](https://github.com/PaddlePaddle/book/tree/develop/07.label_semantic_roles/train.py)的代码并放入本文。本文中代码与train.py的运行结果一致,可直接运行train.py进行验证。
## 背景介绍
自然语言分析技术大致分为三个层面:词法分析、句法分析和语义分析。语义角色标注是实现浅层语义分析的一种方式。在一个句子中,谓词是对主语的陈述或说明,指出“做什么”、“是什么”或“怎么样,代表了一个事件的核心,跟谓词搭配的名词称为论元。语义角色是指论元在动词所指事件中担任的角色。主要有:施事者(Agent)、受事者(Patient)、客体(Theme)、经验者(Experiencer)、受益者(Beneficiary)、工具(Instrument)、处所(Location)、目标(Goal)和来源(Source)等。
请看下面的例子,“遇到” 是谓词(Predicate,通常简写为“Pred”),“小明”是施事者(Agent),“小红”是受事者(Patient),“昨天” 是事件发生的时间(Time),“公园”是事情发生的地点(Location)。
<p align="center">
<img src = "https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/Eqn1.png?raw=true"><br/>
</p>
语义角色标注(Semantic Role Labeling,SRL)以句子的谓词为中心,不对句子所包含的语义信息进行深入分析,只分析句子中各成分与谓词之间的关系,即句子的谓词(Predicate)- 论元(Argument)结构,并用语义角色来描述这些结构关系,是许多自然语言理解任务(如信息抽取,篇章分析,深度问答等)的一个重要中间步骤。在研究中一般都假定谓词是给定的,所要做的就是找出给定谓词的各个论元和它们的语义角色。
传统的SRL系统大多建立在句法分析基础之上,通常包括5个流程:
1. 构建一棵句法分析树,例如,图1是对上面例子进行依存句法分析得到的一棵句法树。
2. 从句法树上识别出给定谓词的候选论元。
3. 候选论元剪除;一个句子中的候选论元可能很多,候选论元剪除就是从大量的候选项中剪除那些最不可能成为论元的候选项。
4. 论元识别:这个过程是从上一步剪除之后的候选中判断哪些是真正的论元,通常当做一个二分类问题来解决。
5. 对第4步的结果,通过多分类得到论元的语义角色标签。可以看到,句法分析是基础,并且后续步骤常常会构造的一些人工特征,这些特征往往也来自句法分析。
<div align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/dependency_parsing.png?raw=true" width = "80%" align=center /><br>
图1. 依存句法分析句法树示例
</div>
然而,完全句法分析需要确定句子所包含的全部句法信息,并确定句子各成分之间的关系,是一个非常困难的任务,目前技术下的句法分析准确率并不高,句法分析的细微错误都会导致SRL的错误。为了降低问题的复杂度,同时获得一定的句法结构信息,“浅层句法分析”的思想应运而生。浅层句法分析也称为部分句法分析(partial parsing)或语块划分(chunking)。和完全句法分析得到一颗完整的句法树不同,浅层句法分析只需要识别句子中某些结构相对简单的独立成分,例如:动词短语,这些被识别出来的结构称为语块。为了回避 “无法获得准确率较高的句法树” 所带来的困难,一些研究\[[1](#参考文献)\]也提出了基于语块(chunk)的SRL方法。基于语块的SRL方法将SRL作为一个序列标注问题来解决。序列标注任务一般都会采用BIO表示方式来定义序列标注的标签集,我们先来介绍这种表示方法。在BIO表示法中,B代表语块的开始,I代表语块的中间,O代表语块结束。通过B、I、O 三种标记将不同的语块赋予不同的标签,例如:对于一个由角色A拓展得到的语块组,将它所包含的第一个语块赋予标签B-A,将它所包含的其它语块赋予标签I-A,不属于任何论元的语块赋予标签O。
我们继续以上面的这句话为例,图1展示了BIO表示方法。
<div align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/bio_example.png?raw=true" width = "90%" align=center /><br>
图2. BIO标注方法示例
</div>
从上面的例子可以看到,根据序列标注结果可以直接得到论元的语义角色标注结果,是一个相对简单的过程。这种简单性体现在:(1)依赖浅层句法分析,降低了句法分析的要求和难度;(2)没有了候选论元剪除这一步骤;(3)论元的识别和论元标注是同时实现的。这种一体化处理论元识别和论元标注的方法,简化了流程,降低了错误累积的风险,往往能够取得更好的结果。
与基于语块的SRL方法类似,在本教程中我们也将SRL看作一个序列标注问题,不同的是,我们只依赖输入文本序列,不依赖任何额外的语法解析结果或是复杂的人造特征,利用深度神经网络构建一个端到端学习的SRL系统。我们以[CoNLL-2004 and CoNLL-2005 Shared Tasks](http://www.cs.upc.edu/~srlconll/)任务中SRL任务的公开数据集为例,实践下面的任务:给定一句话和这句话里的一个谓词,通过序列标注的方式,从句子中找到谓词对应的论元,同时标注它们的语义角色。
## 模型概览
循环神经网络(Recurrent Neural Network)是一种对序列建模的重要模型,在自然语言处理任务中有着广泛地应用。不同于前馈神经网络(Feed-forward Neural Network),RNN能够处理输入之间前后关联的问题。LSTM是RNN的一种重要变种,常用来学习长序列中蕴含的长程依赖关系,我们在[情感分析](https://github.com/PaddlePaddle/book/tree/develop/06.understand_sentiment)一篇中已经介绍过,这一篇中我们依然利用LSTM来解决SRL问题。
### 栈式循环神经网络(Stacked Recurrent Neural Network)
深层网络有助于形成层次化特征,网络上层在下层已经学习到的初级特征基础上,形成更复杂的高级特征。尽管LSTM沿时间轴展开后等价于一个非常“深”的前馈网络,但由于LSTM各个时间步参数共享,$t-1$时刻状态到$t$时刻的映射,始终只经过了一次非线性映射,也就是说单层LSTM对状态转移的建模是 “浅” 的。堆叠多个LSTM单元,令前一个LSTM$t$时刻的输出,成为下一个LSTM单元$t$时刻的输入,帮助我们构建起一个深层网络,我们把它称为第一个版本的栈式循环神经网络。深层网络提高了模型拟合复杂模式的能力,能够更好地建模跨不同时间步的模式\[[2](#参考文献)\]。
然而,训练一个深层LSTM网络并非易事。纵向堆叠多个LSTM单元可能遇到梯度在纵向深度上传播受阻的问题。通常,堆叠4层LSTM单元可以正常训练,当层数达到4~8层时,会出现性能衰减,这时必须考虑一些新的结构以保证梯度纵向顺畅传播,这是训练深层LSTM网络必须解决的问题。我们可以借鉴LSTM解决 “梯度消失梯度爆炸” 问题的智慧之一:在记忆单元(Memory Cell)这条信息传播的路线上没有非线性映射,当梯度反向传播时既不会衰减、也不会爆炸。因此,深层LSTM模型也可以在纵向上添加一条保证梯度顺畅传播的路径。
一个LSTM单元完成的运算可以被分为三部分:(1)输入到隐层的映射(input-to-hidden) :每个时间步输入信息$x$会首先经过一个矩阵映射,再作为遗忘门,输入门,记忆单元,输出门的输入,注意,这一次映射没有引入非线性激活;(2)隐层到隐层的映射(hidden-to-hidden):这一步是LSTM计算的主体,包括遗忘门,输入门,记忆单元更新,输出门的计算;(3)隐层到输出的映射(hidden-to-output):通常是简单的对隐层向量进行激活。我们在第一个版本的栈式网络的基础上,加入一条新的路径:除上一层LSTM输出之外,将前层LSTM的输入到隐层的映射作为的一个新的输入,同时加入一个线性映射去学习一个新的变换。
图3是最终得到的栈式循环神经网络结构示意图。
<p align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/stacked_lstm.png?raw=true" width = "40%" align=center><br>
图3. 基于LSTM的栈式循环神经网络结构示意图
</p>
### 双向循环神经网络(Bidirectional Recurrent Neural Network)
在LSTM中,$t$时刻的隐藏层向量编码了到$t$时刻为止所有输入的信息,但$t$时刻的LSTM可以看到历史,却无法看到未来。在绝大多数自然语言处理任务中,我们几乎总是能拿到整个句子。这种情况下,如果能够像获取历史信息一样,得到未来的信息,对序列学习任务会有很大的帮助。
为了克服这一缺陷,我们可以设计一种双向循环网络单元,它的思想简单且直接:对上一节的栈式循环神经网络进行一个小小的修改,堆叠多个LSTM单元,让每一层LSTM单元分别以:正向、反向、正向 …… 的顺序学习上一层的输出序列。于是,从第2层开始,$t$时刻我们的LSTM单元便总是可以看到历史和未来的信息。图4是基于LSTM的双向循环神经网络结构示意图。
<p align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/bidirectional_stacked_lstm.png?raw=true" width = "60%" align=center><br>
图4. 基于LSTM的双向循环神经网络结构示意图
</p>
需要说明的是,这种双向RNN结构和Bengio等人在机器翻译任务中使用的双向RNN结构\[[3](#参考文献), [4](#参考文献)\] 并不相同,我们会在后续[机器翻译](https://github.com/PaddlePaddle/book/blob/develop/08.machine_translation/README.cn.md)任务中,介绍另一种双向循环神经网络。
### 条件随机场 (Conditional Random Field)
使用神经网络模型解决问题的思路通常是:前层网络学习输入的特征表示,网络的最后一层在特征基础上完成最终的任务。在SRL任务中,深层LSTM网络学习输入的特征表示,条件随机场(Conditional Random Filed, CRF)在特征的基础上完成序列标注,处于整个网络的末端。
CRF是一种概率化结构模型,可以看作是一个概率无向图模型,结点表示随机变量,边表示随机变量之间的概率依赖关系。简单来讲,CRF学习条件概率$P(X|Y)$,其中 $X = (x_1, x_2, ... , x_n)$ 是输入序列,$Y = (y_1, y_2, ... , y_n)$ 是标记序列;解码过程是给定 $X$序列求解令$P(Y|X)$最大的$Y$序列,即$Y^* = \mbox{arg max}_{Y} P(Y | X)$。
序列标注任务只需要考虑输入和输出都是一个线性序列,并且由于我们只是将输入序列作为条件,不做任何条件独立假设,因此输入序列的元素之间并不存在图结构。综上,在序列标注任务中使用的是如图5所示的定义在链式图上的CRF,称之为线性链条件随机场(Linear Chain Conditional Random Field)。
<p align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/linear_chain_crf.png?raw=true" width = "35%" align=center><br>
图5. 序列标注任务中使用的线性链条件随机场
</p>
根据线性链条件随机场上的因子分解定理\[[5](#参考文献)\],在给定观测序列$X$时,一个特定标记序列$Y$的概率可以定义为:
<p align="center">
<img src = "https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/Eqn2.gif?raw=true"><br/>
</p>
其中$Z(X)$是归一化因子,$t_j$ 是定义在边上的特征函数,依赖于当前和前一个位置,称为转移特征,表示对于输入序列$X$及其标注序列在 $i$及$i - 1$位置上标记的转移概率。$s_k$是定义在结点上的特征函数,称为状态特征,依赖于当前位置,表示对于观察序列$X$及其$i$位置的标记概率。$\lambda_j$ 和 $\mu_k$ 分别是转移特征函数和状态特征函数对应的权值。实际上,$t$和$s$可以用相同的数学形式表示,再对转移特征和状态特在各个位置$i$求和有:$f_{k}(Y, X) = \sum_{i=1}^{n}f_k({y_{i - 1}, y_i, X, i})$,把$f$统称为特征函数,于是$P(Y|X)$可表示为:
<p align="center">
<img src = "https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/Eqn3.gif?raw=true"><br/>
</p>
$\omega$是特征函数对应的权值,是CRF模型要学习的参数。训练时,对于给定的输入序列和对应的标记序列集合$D = \left[(X_1, Y_1), (X_2 , Y_2) , ... , (X_N, Y_N)\right]$ ,通过正则化的极大似然估计,求解如下优化目标:
<p align="center">
<img src = "https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/Eqn4.png?raw=true"><br/>
</p>
这个优化目标可以通过反向传播算法和整个神经网络一起求解。解码时,对于给定的输入序列$X$,通过解码算法(通常有:维特比算法、Beam Search)求令出条件概率$\bar{P}(Y|X)$最大的输出序列 $\bar{Y}$。
### 深度双向LSTM(DB-LSTM)SRL模型
在SRL任务中,输入是 “谓词” 和 “一句话”,目标是从这句话中找到谓词的论元,并标注论元的语义角色。如果一个句子含有$n$个谓词,这个句子会被处理$n$次。一个最为直接的模型是下面这样:
1. 构造输入;
- 输入1是谓词,输入2是句子
- 将输入1扩展成和输入2一样长的序列,用one-hot方式表示;
2. one-hot方式的谓词序列和句子序列通过词表,转换为实向量表示的词向量序列;
3. 将步骤2中的2个词向量序列作为双向LSTM的输入,学习输入序列的特征表示;
4. CRF以步骤3中模型学习到的特征为输入,以标记序列为监督信号,实现序列标注;
大家可以尝试上面这种方法。这里,我们提出一些改进,引入两个简单但对提高系统性能非常有效的特征:
- 谓词上下文:上面的方法中,只用到了谓词的词向量表达谓词相关的所有信息,这种方法始终是非常弱的,特别是如果谓词在句子中出现多次,有可能引起一定的歧义。从经验出发,谓词前后若干个词的一个小片段,能够提供更丰富的信息,帮助消解歧义。于是,我们把这样的经验也添加到模型中,为每个谓词同时抽取一个“谓词上下文” 片段,也就是从这个谓词前后各取$n$个词构成的一个窗口片段;
- 谓词上下文区域标记:为句子中的每一个词引入一个0-1二值变量,表示它们是否在“谓词上下文”片段中;
修改后的模型如下(图6是一个深度为4的模型结构示意图):
1. 构造输入
- 输入1是句子序列,输入2是谓词序列,输入3是谓词上下文,从句子中抽取这个谓词前后各$n$个词,构成谓词上下文,用one-hot方式表示,输入4是谓词上下文区域标记,标记了句子中每一个词是否在谓词上下文中;
- 将输入2~3均扩展为和输入1一样长的序列;
2. 输入1~4均通过词表取词向量转换为实向量表示的词向量序列;其中输入1、3共享同一个词表,输入2和4各自独有词表;
3. 第2步的4个词向量序列作为双向LSTM模型的输入;LSTM模型学习输入序列的特征表示,得到新的特性表示序列;
4. CRF以第3步中LSTM学习到的特征为输入,以标记序列为监督信号,完成序列标注;
<div align="center">
<img src="https://github.com/PaddlePaddle/book/blob/develop/07.label_semantic_roles/image/db_lstm_network.png?raw=true" width = "60%" align=center /><br>
图6. SRL任务上的深层双向LSTM模型
</div>
## 数据介绍
在此教程中,我们选用[CoNLL 2005](http://www.cs.upc.edu/~srlconll/)SRL任务开放出的数据集作为示例。需要特别说明的是,CoNLL 2005 SRL任务的训练数集和开发集在比赛之后并非免费进行公开,目前,能够获取到的只有测试集,包括Wall Street Journal的23节和Brown语料集中的3节。在本教程中,我们以测试集中的WSJ数据为训练集来讲解模型。但是,由于测试集中样本的数量远远不够,如果希望训练一个可用的神经网络SRL系统,请考虑付费获取全量数据。
原始数据中同时包括了词性标注、命名实体识别、语法解析树等多种信息。本教程中,我们使用test.wsj文件夹中的数据进行训练和测试,并只会用到words文件夹(文本序列)和props文件夹(标注结果)下的数据。本教程使用的数据目录如下:
```text
conll05st-release/
└── test.wsj
├── props # 标注结果
└── words # 输入文本序列
```
标注信息源自Penn TreeBank\[[7](#参考文献)\]和PropBank\[[8](#参考文献)\]的标注结果。PropBank标注结果的标签和我们在文章一开始示例中使用的标注结果标签不同,但原理是相同的,关于标注结果标签含义的说明,请参考论文\[[9](#参考文献)\]。
原始数据需要进行数据预处理才能被PaddlePaddle处理,预处理包括下面几个步骤:
1. 将文本序列和标记序列其合并到一条记录中;
2. 一个句子如果含有$n$个谓词,这个句子会被处理$n$次,变成$n$条独立的训练样本,每个样本一个不同的谓词;
3. 抽取谓词上下文和构造谓词上下文区域标记;
4. 构造以BIO法表示的标记;
5. 依据词典获取词对应的整数索引。
预处理完成之后一条训练样本数据包含9个域,分别是:句子序列、谓词、谓词上下文(占 5 列)、谓词上下区域标志、标注序列。下表是一条训练样本的示例。
| 句子序列 | 谓词 | 谓词上下文(窗口 = 5) | 谓词上下文区域标记 | 标注序列 |
|---|---|---|---|---|
| A | set | n't been set . × | 0 | B-A1 |
| record | set | n't been set . × | 0 | I-A1 |
| date | set | n't been set . × | 0 | I-A1 |
| has | set | n't been set . × | 0 | O |
| n't | set | n't been set . × | 1 | B-AM-NEG |
| been | set | n't been set . × | 1 | O |
| set | set | n't been set . × | 1 | B-V |
| . | set | n't been set . × | 1 | O |
除数据之外,我们同时提供了以下资源:
| 文件名称 | 说明 |
|---|---|
| word_dict | 输入句子的词典,共计44068个词 |
| label_dict | 标记的词典,共计106个标记 |
| predicate_dict | 谓词的词典,共计3162个词 |
| emb | 一个训练好的词表,32维 |
我们在英文维基百科上训练语言模型得到了一份词向量用来初始化SRL模型。在SRL模型训练过程中,词向量不再被更新。关于语言模型和词向量可以参考[词向量](https://github.com/PaddlePaddle/book/blob/develop/04.word2vec/README.cn.md) 这篇教程。我们训练语言模型的语料共有995,000,000个token,词典大小控制为4900,000词。CoNLL 2005训练语料中有5%的词不在这4900,000个词中,我们将它们全部看作未登录词,用`<unk>`表示。
获取词典,打印词典大小:
```python
from __future__ import print_function
import math, os
import numpy as np
import paddle
import paddle.dataset.conll05 as conll05
import paddle.fluid as fluid
import six
import time
with_gpu = os.getenv('WITH_GPU', '0') != '0'
word_dict, verb_dict, label_dict = conll05.get_dict()
word_dict_len = len(word_dict)
label_dict_len = len(label_dict)
pred_dict_len = len(verb_dict)
print('word_dict_len: ', word_dict_len)
print('label_dict_len: ', label_dict_len)
print('pred_dict_len: ', pred_dict_len)
```
## 模型配置说明
- 定义输入数据维度及模型超参数。
```python
mark_dict_len = 2 # 谓上下文区域标志的维度,是一个0-1 2值特征,因此维度为2
word_dim = 32 # 词向量维度
mark_dim = 5 # 谓词上下文区域通过词表被映射为一个实向量,这个是相邻的维度
hidden_dim = 512 # LSTM隐层向量的维度 : 512 / 4
depth = 8 # 栈式LSTM的深度
mix_hidden_lr = 1e-3 # linear_chain_crf层的基础学习率
IS_SPARSE = True # 是否以稀疏方式更新embedding
PASS_NUM = 10 # 训练轮数
BATCH_SIZE = 10 # batch size 大小
embedding_name = 'emb'
```
这里需要特别说明的是,参数 `hidden_dim = 512` 实际指定了LSTM隐层向量的维度为128,关于这一点请参考PaddlePaddle官方文档中[dynamic_lstm](http://www.paddlepaddle.org/documentation/docs/zh/1.2/api_cn/layers_cn.html#dynamic-lstm)的说明。
- 如上文提到,我们用基于英文维基百科训练好的词向量来初始化序列输入、谓词上下文总共6个特征的embedding层参数,在训练中不更新。
```python
# 这里加载PaddlePaddle保存的二进制参数
def load_parameter(file_name, h, w):
with open(file_name, 'rb') as f:
f.read(16) # skip header.
return np.fromfile(f, dtype=np.float32).reshape(h, w)
```
## 训练模型
- 我们根据网络拓扑结构和模型参数来进行训练,在构造时还需指定优化方法,这里使用最基本的SGD方法(momentum设置为0),同时设定了学习率、正则等。
定义训练过程的超参数
```python
use_cuda = False #在cpu上执行训练
save_dirname = "label_semantic_roles.inference.model" #训练得到的模型参数保存在文件中
is_local = True
```
### 数据输入层定义
定义了模型输入特征的格式,包括句子序列、谓词、谓词上下文的5个特征、和谓词上下区域标志
```python
# 句子序列
word = fluid.data(
name='word_data', shape=[None, 1], dtype='int64', lod_level=1)
# 谓词
predicate = fluid.data(
name='verb_data', shape=[None, 1], dtype='int64', lod_level=1)
# 谓词上下文5个特征
ctx_n2 = fluid.data(
name='ctx_n2_data', shape=[None, 1], dtype='int64', lod_level=1)
ctx_n1 = fluid.data(
name='ctx_n1_data', shape=[None, 1], dtype='int64', lod_level=1)
ctx_0 = fluid.data(
name='ctx_0_data', shape=[None, 1], dtype='int64', lod_level=1)
ctx_p1 = fluid.data(
name='ctx_p1_data', shape=[None, 1], dtype='int64', lod_level=1)
ctx_p2 = fluid.data(
name='ctx_p2_data', shape=[None, 1], dtype='int64', lod_level=1)
# 谓词上下区域标志
mark = fluid.data(
name='mark_data', shape=[None, 1], dtype='int64', lod_level=1)
```
### 定义网络结构
首先预训练并定义模型输入层
```python
#预训练谓词和谓词上下区域标志
predicate_embedding = fluid.embedding(
input=predicate,
size=[pred_dict_len, word_dim],
dtype='float32',
is_sparse=IS_SPARSE,
param_attr='vemb')
mark_embedding = fluid.embedding(
input=mark,
size=[mark_dict_len, mark_dim],
dtype='float32',
is_sparse=IS_SPARSE)
#句子序列和谓词上下文5个特征并预训练
word_input = [word, ctx_n2, ctx_n1, ctx_0, ctx_p1, ctx_p2]
# 因词向量是预训练好的,这里不再训练embedding表,
# 参数属性trainable设置成False阻止了embedding表在训练过程中被更新
emb_layers = [
fluid.embedding(
size=[word_dict_len, word_dim],
input=x,
param_attr=fluid.ParamAttr(
name=embedding_name, trainable=False)) for x in word_input
]
#加入谓词和谓词上下区域标志的预训练结果
emb_layers.append(predicate_embedding)
emb_layers.append(mark_embedding)
```
定义8个LSTM单元以“正向/反向”的顺序对所有输入序列进行学习。
```python
# 共有8个LSTM单元被训练,每个单元的方向为从左到右或从右到左,
# 由参数`is_reverse`确定
# 第一层栈结构
hidden_0_layers = [
fluid.layers.fc(input=emb, size=hidden_dim, act='tanh')
for emb in emb_layers
]
hidden_0 = fluid.layers.sums(input=hidden_0_layers)
lstm_0 = fluid.layers.dynamic_lstm(
input=hidden_0,
size=hidden_dim,
candidate_activation='relu',
gate_activation='sigmoid',
cell_activation='sigmoid')
# 用直连的边来堆叠L-LSTM、R-LSTM
input_tmp = [hidden_0, lstm_0]
# 其余的栈结构
for i in range(1, depth):
mix_hidden = fluid.layers.sums(input=[
fluid.layers.fc(input=input_tmp[0], size=hidden_dim, act='tanh'),
fluid.layers.fc(input=input_tmp[1], size=hidden_dim, act='tanh')
])
lstm = fluid.layers.dynamic_lstm(
input=mix_hidden,
size=hidden_dim,
candidate_activation='relu',
gate_activation='sigmoid',
cell_activation='sigmoid',
is_reverse=((i % 2) == 1))
input_tmp = [mix_hidden, lstm]
# 取最后一个栈式LSTM的输出和这个LSTM单元的输入到隐层映射,
# 经过一个全连接层映射到标记字典的维度,来学习 CRF 的状态特征
feature_out = fluid.layers.sums(input=[
fluid.layers.fc(input=input_tmp[0], size=label_dict_len, act='tanh'),
fluid.layers.fc(input=input_tmp[1], size=label_dict_len, act='tanh')
])
# 标注序列
target = fluid.data(
name='target', shape=[None, 1], dtype='int64', lod_level=1)
# 学习 CRF 的转移特征
crf_cost = fluid.layers.linear_chain_crf(
input=feature_out,
label=target,
param_attr=fluid.ParamAttr(
name='crfw', learning_rate=mix_hidden_lr))
avg_cost = fluid.layers.mean(crf_cost)
# 使用最基本的SGD优化方法(momentum设置为0)
sgd_optimizer = fluid.optimizer.SGD(
learning_rate=fluid.layers.exponential_decay(
learning_rate=0.01,
decay_steps=100000,
decay_rate=0.5,
staircase=True))
sgd_optimizer.minimize(avg_cost)
```
数据介绍部分提到CoNLL 2005训练集付费,这里我们使用测试集训练供大家学习。conll05.test()每次产生一条样本,包含9个特征,shuffle和组完batch后作为训练的输入。
```python
crf_decode = fluid.layers.crf_decoding(
input=feature_out, param_attr=fluid.ParamAttr(name='crfw'))
train_data = paddle.batch(
paddle.reader.shuffle(
paddle.dataset.conll05.test(), buf_size=8192),
batch_size=BATCH_SIZE)
place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace()
```
通过feeder来指定每一个数据和data_layer的对应关系, 下面的feeder表示 conll05.test()产生数据的第0列对应的data_layer是 `word`。
```python
feeder = fluid.DataFeeder(
feed_list=[
word, ctx_n2, ctx_n1, ctx_0, ctx_p1, ctx_p2, predicate, mark, target
],
place=place)
exe = fluid.Executor(place)
```
开始训练
```python
main_program = fluid.default_main_program()
exe.run(fluid.default_startup_program())
embedding_param = fluid.global_scope().find_var(
embedding_name).get_tensor()
embedding_param.set(
load_parameter(conll05.get_embedding(), word_dict_len, word_dim),
place)
start_time = time.time()
batch_id = 0
for pass_id in six.moves.xrange(PASS_NUM):
for data in train_data():
cost = exe.run(main_program,
feed=feeder.feed(data),
fetch_list=[avg_cost])
cost = cost[0]
if batch_id % 10 == 0:
print("avg_cost: " + str(cost))
if batch_id != 0:
print("second per batch: " + str((time.time(
) - start_time) / batch_id))
# Set the threshold low to speed up the CI test
if float(cost) < 60.0:
if save_dirname is not None:
fluid.io.save_inference_model(save_dirname, [
'word_data', 'verb_data', 'ctx_n2_data',
'ctx_n1_data', 'ctx_0_data', 'ctx_p1_data',
'ctx_p2_data', 'mark_data'
], [feature_out], exe)
break
batch_id = batch_id + 1
```
## 应用模型
训练完成之后,需要依据某个我们关心的性能指标选择最优的模型进行预测,可以简单的选择测试集上标记错误最少的那个模型。以下我们给出一个使用训练后的模型进行预测的示例。
首先设置预测过程的参数
```python
use_cuda = False #在cpu上进行预测
save_dirname = "label_semantic_roles.inference.model" #调用训练好的模型进行预测
place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace()
exe = fluid.Executor(place)
```
设置输入,用LoDTensor来表示输入的词序列,这里每个词的形状 base_shape都是[1],是因为每个词都是用一个id来表示的。假如基于长度的LoD是[[3, 4, 2]],这是一个单层的LoD,那么构造出的LoDTensor就包含3个序列,其长度分别为3、4和2。
注意LoD是个列表的列表
```python
lod = [[3, 4, 2]]
base_shape = [1]
# 构造假数据作为输入,整数随机数的范围是[low, high]
word = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
pred = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=pred_dict_len - 1)
ctx_n2 = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
ctx_n1 = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
ctx_0 = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
ctx_p1 = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
ctx_p2 = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=word_dict_len - 1)
mark = fluid.create_random_int_lodtensor(
lod, base_shape, place, low=0, high=mark_dict_len - 1)
```
使用fluid.io.load_inference_model加载inference_program,feed_target_names是模型的输入变量的名称,fetch_targets是预测对象。
```python
[inference_program, feed_target_names,
fetch_targets] = fluid.io.load_inference_model(save_dirname, exe)
```
构造feed字典 {feed_target_name: feed_target_data},results是由预测目标构成的列表
```python
assert feed_target_names[0] == 'word_data'
assert feed_target_names[1] == 'verb_data'
assert feed_target_names[2] == 'ctx_n2_data'
assert feed_target_names[3] == 'ctx_n1_data'
assert feed_target_names[4] == 'ctx_0_data'
assert feed_target_names[5] == 'ctx_p1_data'
assert feed_target_names[6] == 'ctx_p2_data'
assert feed_target_names[7] == 'mark_data'
```
执行预测
```python
results = exe.run(inference_program,
feed={
feed_target_names[0]: word,
feed_target_names[1]: pred,
feed_target_names[2]: ctx_n2,
feed_target_names[3]: ctx_n1,
feed_target_names[4]: ctx_0,
feed_target_names[5]: ctx_p1,
feed_target_names[6]: ctx_p2,
feed_target_names[7]: mark
},
fetch_list=fetch_targets,
return_numpy=False)
```
输出结果
```python
print(results[0].lod())
np_data = np.array(results[0])
print("Inference Shape: ", np_data.shape)
```
## 总结
语义角色标注是许多自然语言理解任务的重要中间步骤。这篇教程中我们以语义角色标注任务为例,介绍如何利用PaddlePaddle进行序列标注任务。教程中所介绍的模型来自我们发表的论文\[[10](#参考文献)\]。由于 CoNLL 2005 SRL任务的训练数据目前并非完全开放,教程中只使用测试数据作为示例。在这个过程中,我们希望减少对其它自然语言处理工具的依赖,利用神经网络数据驱动、端到端学习的能力,得到一个和传统方法可比、甚至更好的模型。在论文中我们证实了这种可能性。关于模型更多的信息和讨论可以在论文中找到。
<a name="参考文献"></a>
## 参考文献
1. Sun W, Sui Z, Wang M, et al. [Chinese semantic role labeling with shallow parsing](http://www.aclweb.org/anthology/D09-1#page=1513)[C]//Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing: Volume 3-Volume 3. Association for Computational Linguistics, 2009: 1475-1483.
2. Pascanu R, Gulcehre C, Cho K, et al. [How to construct deep recurrent neural networks](https://arxiv.org/abs/1312.6026)[J]. arXiv preprint arXiv:1312.6026, 2013.
3. Cho K, Van Merriënboer B, Gulcehre C, et al. [Learning phrase representations using RNN encoder-decoder for statistical machine translation](https://arxiv.org/abs/1406.1078)[J]. arXiv preprint arXiv:1406.1078, 2014.
4. Bahdanau D, Cho K, Bengio Y. [Neural machine translation by jointly learning to align and translate](https://arxiv.org/abs/1409.0473)[J]. arXiv preprint arXiv:1409.0473, 2014.
5. Lafferty J, McCallum A, Pereira F. [Conditional random fields: Probabilistic models for segmenting and labeling sequence data](https://repository.upenn.edu/cgi/viewcontent.cgi?article=1162&context=cis_papers)[C]//Proceedings of the eighteenth international conference on machine learning, ICML. 2001, 1: 282-289.
6. 李航. 统计学习方法[J]. 清华大学出版社, 北京, 2012.
7. Marcus M P, Marcinkiewicz M A, Santorini B. [Building a large annotated corpus of English: The Penn Treebank](http://repository.upenn.edu/cgi/viewcontent.cgi?article=1246&context=cis_reports)[J]. Computational linguistics, 1993, 19(2): 313-330.
8. Palmer M, Gildea D, Kingsbury P. [The proposition bank: An annotated corpus of semantic roles](http://www.mitpressjournals.org/doi/pdfplus/10.1162/0891201053630264)[J]. Computational linguistics, 2005, 31(1): 71-106.
9. Carreras X, Màrquez L. [Introduction to the CoNLL-2005 shared task: Semantic role labeling](http://www.cs.upc.edu/~srlconll/st05/papers/intro.pdf)[C]//Proceedings of the Ninth Conference on Computational Natural Language Learning. Association for Computational Linguistics, 2005: 152-164.
10. Zhou J, Xu W. [End-to-end learning of semantic role labeling using recurrent neural networks](http://www.aclweb.org/anthology/P/P15/P15-1109.pdf)[C]//Proceedings of the Annual Meeting of the Association for Computational Linguistics. 2015.
<br/>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://paddlepaddleimage.cdn.bcebos.com/bookimage/camo.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">本教程</span> 由 <a xmlns:cc="http://creativecommons.org/ns#" href="http://book.paddlepaddle.org" property="cc:attributionName" rel="cc:attributionURL">PaddlePaddle</a> 创作,采用 <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享 署名-相同方式共享 4.0 国际 许可协议</a>进行许可。
| 39.888307 | 589 | 0.744312 | yue_Hant | 0.41085 |
9fe157a085d86eb5f73d0ca24f22d23e47214e8b | 140 | md | Markdown | README.md | aleclarson/StrictMap | 40bb3ea36afda48fb24dc05fb612e06b74e92a0c | [
"MIT"
] | null | null | null | README.md | aleclarson/StrictMap | 40bb3ea36afda48fb24dc05fb612e06b74e92a0c | [
"MIT"
] | null | null | null | README.md | aleclarson/StrictMap | 40bb3ea36afda48fb24dc05fb612e06b74e92a0c | [
"MIT"
] | null | null | null |
# StrictMap v1.1.2 
**TODO:** Write tests & documentation?!
| 28 | 97 | 0.721429 | yue_Hant | 0.747222 |
9fe160361cdf5020419cf9f20c576d762e000048 | 877 | md | Markdown | README.md | akkybm/netflix-clone | 03b258580c9c9dd3216c2e8abc3723747bbe7ec6 | [
"Apache-2.0"
] | null | null | null | README.md | akkybm/netflix-clone | 03b258580c9c9dd3216c2e8abc3723747bbe7ec6 | [
"Apache-2.0"
] | null | null | null | README.md | akkybm/netflix-clone | 03b258580c9c9dd3216c2e8abc3723747bbe7ec6 | [
"Apache-2.0"
] | null | null | null | # Netflix Clone using Astra DB and GraphQL
[](https://gitpod.io/from-referrer/)
[](http://www.apache.org/licenses/LICENSE-2.0)
A simple **ReactJS** Netflix homepage clone running on Astra DB that leverages a GraphQL API with paging and infinite scrolling.
## LIVE WEBSITE
<!--- ENDEXCLUDE --->
- [CLICK HERE](https://akashbm-netflix-clone.netlify.app/)

## Objectives
* Deploy a Netflix clone to production
* Learn **GraphQL API** and how to use it with a database to create the tables and navigate the data.
* Learn about **paging** and **infinite scrolling** in web ui
* Leverage Netlify and DataStax Astra DB
## Table of contents
### DB Setup & Data Ingest
### Deploy to Production
| 31.321429 | 129 | 0.724059 | kor_Hang | 0.319362 |
9fe1a81ce602540f381daf9648a8aaa23f2e881a | 32 | md | Markdown | README.md | Aggelis-Dimitris/Frontpage-Task | 0939ffc51ff572a5baf30e71b6837f95582b5aa9 | [
"MIT"
] | null | null | null | README.md | Aggelis-Dimitris/Frontpage-Task | 0939ffc51ff572a5baf30e71b6837f95582b5aa9 | [
"MIT"
] | null | null | null | README.md | Aggelis-Dimitris/Frontpage-Task | 0939ffc51ff572a5baf30e71b6837f95582b5aa9 | [
"MIT"
] | null | null | null | # Frontpage-Task
Frontpage Task
| 10.666667 | 16 | 0.8125 | dan_Latn | 0.40447 |
9fe20f0a6036698fc00e0952306792dcce2b91ba | 1,711 | md | Markdown | articles/cognitive-services/Academic-Knowledge/FieldsOfStudyEntityAttributes.md | peder-andfrankly/azure-docs.sv-se | 49435a06686fc72ca9cd8c83883c3c3704a6ec72 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/cognitive-services/Academic-Knowledge/FieldsOfStudyEntityAttributes.md | peder-andfrankly/azure-docs.sv-se | 49435a06686fc72ca9cd8c83883c3c3704a6ec72 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/cognitive-services/Academic-Knowledge/FieldsOfStudyEntityAttributes.md | peder-andfrankly/azure-docs.sv-se | 49435a06686fc72ca9cd8c83883c3c3704a6ec72 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Fält för entitetens attribut för undersökning – Academic Knowledge API
titlesuffix: Azure Cognitive Services
description: Lär dig de attribut som du kan använda med fältet för studie entiteten i Academic Knowledge API.
services: cognitive-services
author: darrine
manager: kuansanw
ms.service: cognitive-services
ms.subservice: academic-knowledge
ms.topic: conceptual
ms.date: 11/14/2019
ms.author: darrine
ROBOTS: NOINDEX
ms.openlocfilehash: b6bb5e0fd822541a0a4c10ef5f275d46664f8e10
ms.sourcegitcommit: 5cfe977783f02cd045023a1645ac42b8d82223bd
ms.translationtype: MT
ms.contentlocale: sv-SE
ms.lasthandoff: 11/17/2019
ms.locfileid: "74146486"
---
# <a name="field-of-study-entity"></a>Fält för studie enhet
> [!NOTE]
> Följande attribut är speciella för en entitets-understudie. (Ty = ' 6 ')
Namn | Beskrivning | Typ | Åtgärder
--- | --- | --- | ---
CC |Fält för antal undersökningar totalt antal citat |Int32 |Ingen
DFN |Fält för visnings namn för studie |Sträng |Ingen
ECC |Fält med totalt antal beräknade antal hänvisningar|Int32 |Ingen
Florida |Nivå i fält för studie hierarki |Int32 |Lika med, IsBetween
FN |Fält för förnormaliserat studie namn |Sträng |Lika med
Betraktas. FId |Underordnat studie-ID |Int64 |Lika med
Betraktas. FN |Underordnat namn på studiens namn |Sträng |Lika med
FP. FId |Överordnat fält för studie-ID |Int64 |Lika med
FP. FN |Överordnat fält för studie namn |Sträng |Lika med
Id |Enhets-ID |Int64 |Lika med
PC | Fält för totalt antal publikationer för studie | Int32 | Ingen
| 43.871795 | 109 | 0.691409 | swe_Latn | 0.984298 |
9fe2deebe89258c65a3eb7fb30ca48b1cd509c7c | 9,288 | md | Markdown | content/microsoft-365-pnp-weekly/microsoft-365-pnp-weekly-episode-126-d-arce-hess/index.md | garrytrinder/blog | 4103796b3468fb4c80d90fd1cdd93a1fafc51501 | [
"MIT"
] | 5 | 2022-01-23T00:44:34.000Z | 2022-03-14T23:36:25.000Z | content/microsoft-365-pnp-weekly/microsoft-365-pnp-weekly-episode-126-d-arce-hess/index.md | garrytrinder/blog | 4103796b3468fb4c80d90fd1cdd93a1fafc51501 | [
"MIT"
] | 19 | 2022-01-17T23:59:49.000Z | 2022-03-21T23:13:11.000Z | content/microsoft-365-pnp-weekly/microsoft-365-pnp-weekly-episode-126-d-arce-hess/index.md | garrytrinder/blog | 4103796b3468fb4c80d90fd1cdd93a1fafc51501 | [
"MIT"
] | 13 | 2022-01-17T21:32:08.000Z | 2022-03-21T08:26:44.000Z | ---
title: "Microsoft 365 PnP Weekly - Episode 126 - D'arce Hess"
date: 2021-05-11T04:40:00-04:00
author: "Vesa Juvonen"
githubname: VesaJuvonen
categories: ["PnP Weekly"]
images:
- images/Thumb-Ep126.png
tags: []
type: "regular"
summary: "In this installment of the weekly discussion revolving around the latest news and topics on Microsoft 365, hosts -- Vesa Juvonen (Microsoft), Waldek Mastykarz (Microsoft) are joined by Rhode Island, US-based, MVP, professional archer, blogger and presenter specializing in UI/UX, information architecture and user adoption at TrnDigital, D'arce Hess. Topics discussed in this session include: The path to IT and on becoming an MVP, reflections on UX/UI changes over the years and designing custom experiences that addresses business processes. In post pandemic times, organizations will be circling back to optimize Microsoft Teams experiences while vendors will continue efforts to land the right extensibility stories. Microsoft Viva -- with great power comes great responsibility and ideas about prepping for Viva. Finally, thoughts on women in IT and on using what we learn in school in the field. "
videos:
- https://www.youtube.com/watch?v=5lhYr6kP-BY
---
In this installment of the weekly discussion revolving around the latest news and topics on Microsoft 365, hosts -- [Vesa Juvonen](https://twitter.com/vesajuvonen) (Microsoft) | @vesajuvonen, [Waldek Mastykarz](https://twitter.com/waldekm) (Microsoft) | @waldekm are joined by Rhode Island, US-based, MVP, professional archer, blogger and presenter specializing in UI/UX, information architecture and user adoption at TrnDigital, [D'arce Hess](https://twitter.com/DarceHess) | @ DarceHess. Topics discussed in this session include: The path to IT and on becoming an MVP, reflections on UX/UI changes over the years and designing custom experiences that addresses business processes. In post pandemic times, organizations will be circling back to optimize Microsoft Teams experiences while vendors will continue efforts to land the right extensibility stories. Microsoft Viva -- with great power comes great responsibility and ideas about prepping for Viva. Finally, thoughts on women in IT and on using what we learn in school in the field.
Microsoft and the Community delivered 18 articles in this last week.
This session was recorded on Monday, May 10, 2021. Please remember to keep on providing us feedback on how we can help on this journey. We always welcome feedback on making the community more inclusive and diverse.
This episode was recorded on Monday, May 10, 2021.
- Video at [Microsoft 365 Community YouTube
channel](https://aka.ms/m365pnp-videos)
{{< youtube 5lhYr6kP-BY >}}
- Podcast format
at [https://pnpweekly.podbean.com.](https://pnpweekly.podbean.com/)
{{< podbean pb-necki-1032403 >}}
These videos and podcasts are published each week and are intended to be roughly 45 - 60 minutes in length. Please do give us feedback on this video and podcast series and also do let us know if you have done something cool/useful so that we can cover that in the next weekly summary! The easiest way to let us know is to share your work on Twitter and add the hashtag [#PnPWeekly](https://twitter.com/search?q=%23pnpweekly). We are always on the lookout for refreshingly new content. "*Sharing is caring!"*
Here are all the links and people mentioned in this recording. Thanks,
everyone for your contributions to the community!
## Events
- May 25-27, 2021- [Microsoft Build
2021](https://mybuild.microsoft.com/?WT.mc_id=m365-27875-wmastyka)
- August 9-11, 2021 - [North American Collaboration
Summit](https://www.collabsummit.org/)
- Register with coupon code "PnP" for 25% off from the prize
at <https://nacs.ticketspice.com/nacs2021>
## Microsoft articles
- [Use SharePoint's new site templates
today!](https://techcommunity.microsoft.com/t5/microsoft-sharepoint-blog/use-sharepoint-s-new-site-templates-today/ba-p/2304372?WT.mc_id=m365-27875-wmastyka) -
[Nicole Woon](https://twitter.com/NovelNicole) (Microsoft) |
@NovelNicole and Holland Kaviani (Microsoft)
- [New ways to use Microsoft Whiteboard for
Education](https://techcommunity.microsoft.com/t5/microsoft-365-blog/new-ways-to-use-microsoft-whiteboard-for-education/ba-p/2295661?WT.mc_id=m365-27875-wmastyka) -
[Ian Mikutel](http://www.twitter.com/ianmikutel) (Microsoft)
| @ianmikutel
- [Understanding the Office Add-ins
runtime](https://developer.microsoft.com/microsoft-365/blogs/understanding-office-add-ins-runtime/?WT.mc_id=m365-27875-wmastyka) -
Microsoft
- [Application permissions support for assignments API in Microsoft
Graph now
available](https://developer.microsoft.com/microsoft-365/blogs/application-permissions-support-for-assignments-api-in-microsoft-graph-now-available/?WT.mc_id=m365-27875-wmastyka) -
Microsoft
- [SharePoint Syntex Updates - April
2021](https://techcommunity.microsoft.com/t5/sharepoint-syntex/sharepoint-syntex-updates-april-2021/ba-p/2280653?WT.mc_id=m365-27875-wmastyka) -
[Chris McNulty](https://twitter.com/cmcnulty2000) (Microsoft)
| @cmcnulty2000
## Community articles
- [SharePoint App Catalog Development
Tips](https://julieturner.net/2021/05/sharepoint-app-catalog-development-tips/?utm_source=rss&utm_medium=rss&utm_campaign=sharepoint-app-catalog-development-tips) -
[Julie Turner](https://twitter.com/jfj1997) (Sympraxis Consulting)
| @jfj1997
- [Upgrade your SharePoint Framework (SPFx) projects to v1.12.1 with
CLI for Microsoft
365](https://yhabersaat.ch/2021/05/02/upgrade-your-spfx-projects-to-v1-12-1-with-cli-for-microsoft-365/)
- [Yves Habersaat](https://twitter.com/yhabersaat) (Sword Group)
| @yhabersaat
- [Adding custom formatting to all list
views](https://www.donkirkham.com/blog/list-formatting/) - [Don
Kirkham](https://twitter.com/DonKirkham) (GM Financial)
| @DonKirkham
- [Get Started with the New SharePoint App
Bar](https://mattjimison.com/2021/04/30/get-started-with-the-new-sharepoint-app-bar/) -
[Matt Jimison](https://twitter.com/mjimison) (DMI) | @mjimison
- [How to update an AdaptiveCard with a Teams Messaging
Extension](https://mmsharepoint.wordpress.com/2021/05/05/how-to-update-an-adaptivecard-with-a-teams-messaging-extension/) -
[Markus Möller](https://twitter.com/Moeller2_0) (Avanade) |
@Moeller2_0
- [React Groups and
Teams](https://graphgod.dev/2021/05/04/react-groups-and-teams-2/) -
Alison Collins
- [spfx-fast-serve 2.0: new architecture, better extensibility,
support of the latest
SPFx](https://spblog.net/post/2021/05/04/spfx-fast-serve-2-0-new-architecture-better-extensibility-support-of-the-latest-spfx) -
[Sergei Sergeev](https://twitter.com/sergeev_srg) (Mastaq)
| @sergeev_srg
- [Restrict SharePoint list item attachments by file type using a
custom
form](https://michelcarlo.com/2021/05/08/restrict-sharepoint-list-attachments-by-file-type/)
- [Michel Mendes](https://twitter.com/michelcarlo) (Storm
Technology)
| @michelcarlo
- [Organization Chart web
part](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-organization-chart)
- [João Mendes](https://twitter.com/joaojmendes) (Storm Technology)
| [joaojmendes](https://github.com/joaojmendes)
- [Episode #153 - Batching with Microsoft Graph SDK for
.NET](https://www.youtube.com/watch?v=LHcn8INyYAg) - [Paolo
Pialorsi](https://twitter.com/PaoloPia) (PiaSys) | @PaoloPia
- [SharePoint Framework What's New 1.12.1 \[Teams - Web Part
APIs\]](https://www.youtube.com/watch?v=6Q3mKio9rXs) - [Giuliano De
Luca](https://twitter.com/DeLucaGiulian){.yt-simple-endpoint
.style-scope
.yt-formatted-string} | @delucagiulian
- [Save Microsoft Forms Attachments to SharePoint with Power
Automate](https://www.youtube.com/watch?v=Xb_k8vOERpU) - [April
Dunnam](https://twitter.com/aprildunnam) (Microsoft)
| @aprildunnam
- [Access files offline in Teams
mobile](https://regarding365.com/access-files-offline-in-teams-mobile-e804a32eafa8)
- [Daniel Glenn](https://twitter.com/DanielGlenn) (InfoWorks Inc)
| @DanielGlenn & [Darrel Webster](https://twitter.com/DarrellaaS)
(WM Reply) | @DarrellaaS
## Additional resources
- [Power Platform Sample
Gallery](https://aka.ms/powerplatform-samples) - for finding easily
samples from the GitHub - contributions from the community are
welcome!
- [PnP Sharing is Caring
initiative](https://aka.ms/sharing-is-caring) - Getting started
guidance and training for using GitHub and contributing to the
community
- Want to ask a question or in general engage with the community - Add
a note in the Microsoft 365 PnP Community hub
at <https://aka.ms/m365pnp/community>
- Check out all the great community calls, SDKs, and tooling for
Microsoft 365 from <https://aka.ms/m365pnp>
If you'd like to hear from a specific community member in an upcoming recording and/or have specific questions for Microsoft 365 engineering or visitors -- please let us know. We will do our best to address your requests or questions.
*"Sharing is caring!"*
| 64.5 | 1,051 | 0.748708 | eng_Latn | 0.782451 |
9fe3c9c5a8f5771d0ad45d619062301065b1b4bf | 317 | md | Markdown | README.md | kysela-petr/boilerplate | 90d5e16b52c4b0dad3398dc6e45a101900342bc4 | [
"MIT"
] | null | null | null | README.md | kysela-petr/boilerplate | 90d5e16b52c4b0dad3398dc6e45a101900342bc4 | [
"MIT"
] | null | null | null | README.md | kysela-petr/boilerplate | 90d5e16b52c4b0dad3398dc6e45a101900342bc4 | [
"MIT"
] | null | null | null | # Boilerplate
## Dependencies
* https://git-scm.com
* https://nodejs.org
* http://gruntjs.com
* http://bower.io/
## Install
```
#!bash
$ git clone https://github.com/kysela-petr/boilerplate.git
$ cd boilerplate
$ chmod +x install.sh
$ ./install.sh
$ grunt
```
### Open "dist/styleguide/index.html" in your browser. | 16.684211 | 58 | 0.678233 | kor_Hang | 0.515283 |
9fe432098e4eeb28a38d89f26c80ee1df8f79fe1 | 586 | md | Markdown | README.md | AhmedAElhamid/FriendlyChat | cac9f5bf0861fefa38a38961c5129ffc0e5e82a1 | [
"CC-BY-4.0"
] | null | null | null | README.md | AhmedAElhamid/FriendlyChat | cac9f5bf0861fefa38a38961c5129ffc0e5e82a1 | [
"CC-BY-4.0"
] | null | null | null | README.md | AhmedAElhamid/FriendlyChat | cac9f5bf0861fefa38a38961c5129ffc0e5e82a1 | [
"CC-BY-4.0"
] | null | null | null | # FriendlyChat
A basic chat application with the use of Firebase and its tools.
## Firebase Tools/Products used:
* Firebase Realtime Database
* Firebase Authentication
* Firebase UI
* Firebase Storage
This is a companion app in the Udacity course [Firebase in a Weekend](https://www.udacity.com/course/firebase-in-a-weekend-by-google-android--ud0352): Android by Google.
## Setup
* Setup requires creating a Firebase project. See https://firebase.google.com/ for more information.
* Create a new app under your firebase project.
* Add your google-services.json file to app directory.
| 39.066667 | 169 | 0.78157 | eng_Latn | 0.834136 |
9fe487babff893bc5cf9bf78bb3163ffb1cd10ff | 791 | md | Markdown | _posts/2018-02-18-PMIvalue.md | gengsuning/gengsuning.github.io | d9b1631dc52299e9ac39dfb1b0474bd8a9320989 | [
"Apache-2.0"
] | null | null | null | _posts/2018-02-18-PMIvalue.md | gengsuning/gengsuning.github.io | d9b1631dc52299e9ac39dfb1b0474bd8a9320989 | [
"Apache-2.0"
] | null | null | null | _posts/2018-02-18-PMIvalue.md | gengsuning/gengsuning.github.io | d9b1631dc52299e9ac39dfb1b0474bd8a9320989 | [
"Apache-2.0"
] | null | null | null | ---
layout: post
title: 项目管理的二十二条军规
date: 2018-2-18
categories: blog
tags: PMI主义 二十二条军规 价值观
description: 什么才是真正的PMI价值观
---
做任何事情,最后看的都是价值观。
项目管理的二十二条军规,就是项目管理的价值观,俗称PMI主义:
1. 你是专业的项目经理,管理是你的核心职能。
2. 以专业的方法做项目,即遵循PMI-PMBOK的要求。
3. 强调事业环境因素和组织过程资产。
4. 问题重在预防,而非解决。
5. 必须有明确的目标,有正式的计划,才可行动。
6. 利害关系者(干系人),尽早识别并让其参与。
7. 项目经理必须正式任命,PM是管理工作的核心责任点。
8. 项目是系统工程,PM是整合者,三重(多重)约束牢记在心。
9. 项目管理以结果为导向,项目成功是PM最终责任。
10. 变更影响项目成功,PM应影响变更发生,管理变更。
11. PM要花75% - 90%时间用于沟通。
12. PM应该拒绝提供不重要的信息要求。
13. 工作必须被详细描述,责任必须明确。
14. 质量都要达到客户满意,削减费用不能降低质量。
15. PM必须遵守职业道德(个人、公司、社会、道德、法律)。
16. PM必须主动。
17. 正确的程序由于正确的结果。
18. 防止范围潜变,杜绝质量镀金。
19. 必须收尾。
20. 公正、公平、公开,勇敢、诚实地面对。
21. 双赢概念。
22. 决策要遵守四大价值观:责任、尊重、公平、诚信。
无论项目管理的内涵、外延如何变化,价值观相对稳定。理解了上面的这二十二条军规,并且像张三丰教导张无忌学习太极拳一样,全部忘掉,才算是真正了把项目管理精髓融入了自身的血液。
| 19.775 | 85 | 0.747155 | yue_Hant | 0.616894 |
9fe5634b34fb4ec628defc6a91328854ac255007 | 131 | md | Markdown | _posts/0000-01-02-a-a-omkar32.md | omkar32/github-slideshow | 7cc27dd76e7dd5c2f61075563ac6c8bca7783f9b | [
"MIT"
] | null | null | null | _posts/0000-01-02-a-a-omkar32.md | omkar32/github-slideshow | 7cc27dd76e7dd5c2f61075563ac6c8bca7783f9b | [
"MIT"
] | 2 | 2022-03-25T07:16:04.000Z | 2022-03-25T14:31:30.000Z | _posts/0000-01-02-a-a-omkar32.md | omkar32/github-slideshow | 7cc27dd76e7dd5c2f61075563ac6c8bca7783f9b | [
"MIT"
] | null | null | null | ---
layout: slide
title: "Welcome to our second slide!"
---
"Just believe in youeself" -VIRAT KHOLi
Use the left arrow to go back!
| 18.714286 | 39 | 0.709924 | eng_Latn | 0.994113 |
9fe5690f3465eaf693f0354a1a751a6ba80db76e | 370 | md | Markdown | _posts/2021-09-14-server_wts.md | jacking75/jacking75.github.io | 0d5a05f2ae3f5d0211907ea50102e7594bf962ad | [
"MIT"
] | 1 | 2020-11-13T08:10:34.000Z | 2020-11-13T08:10:34.000Z | _posts/2021-09-14-server_wts.md | jacking75/jacking75.github.io | 0d5a05f2ae3f5d0211907ea50102e7594bf962ad | [
"MIT"
] | null | null | null | _posts/2021-09-14-server_wts.md | jacking75/jacking75.github.io | 0d5a05f2ae3f5d0211907ea50102e7594bf962ad | [
"MIT"
] | 3 | 2017-04-07T05:41:10.000Z | 2018-06-07T13:19:38.000Z | ---
layout: post
title: [GDC 2016] Engineering Decisions Behind World of Tanks Server
published: true
categories: [Server]
tags: server gameserver gdc2016 wts
---
<iframe width="800" height="900" src="https://docs.google.com/document/d/e/2PACX-1vSPGEUkWXCAp8ioPhV-RerdxKhNNZP2b33upstsSKd4dTb6KNqEhVa7jWSAHFo4hSXCBppuO8mb8_LA/pub?embedded=true"></iframe>
| 37 | 193 | 0.767568 | eng_Latn | 0.196057 |
9fe631cd900bce7853ec8408cf253aaa00c437da | 714 | md | Markdown | _posts/2016-03-15-mailinglist.md | openrisc/openrisc.github.io | d8cf4b9e76cbf56e6bcc575e17b61ae0ff70c47f | [
"MIT"
] | 13 | 2016-11-12T07:47:06.000Z | 2021-06-29T20:12:23.000Z | _posts/2016-03-15-mailinglist.md | openrisc/openrisc.github.io | d8cf4b9e76cbf56e6bcc575e17b61ae0ff70c47f | [
"MIT"
] | 12 | 2016-04-11T06:33:06.000Z | 2020-07-20T23:09:03.000Z | _posts/2016-03-15-mailinglist.md | openrisc/openrisc.github.io | d8cf4b9e76cbf56e6bcc575e17b61ae0ff70c47f | [
"MIT"
] | 12 | 2015-08-16T03:36:31.000Z | 2021-03-27T15:52:46.000Z | ---
layout: post
title: "Mailing list has moved"
description: ""
category:
tags: []
author: Stefan Wallentowitz
---
{% include JB/setup %}
As the previous mailing list at opencores.org is not fully maintained
anymore, we have created a new one under the umbrella of the community
project [librecores.org](http://librecores.org). By having this
mailing list under control of the active maintainers of the OpenRISC
project we hope to give it much more stability.
Please subscribe to the mailing list
[here](https://lists.librecores.org/listinfo/openrisc) to get involved
in the discussion. You can also ask your question by sending a mail to
[[email protected]](mailto:[email protected]).
| 34 | 70 | 0.778711 | eng_Latn | 0.997363 |
9fe6df021e46dc094bc3c03361c35658d0ea5084 | 74 | md | Markdown | README.md | mistafido/python-lap | 789a442aafae77be9d8af713f85b31a19e315d49 | [
"Apache-2.0"
] | null | null | null | README.md | mistafido/python-lap | 789a442aafae77be9d8af713f85b31a19e315d49 | [
"Apache-2.0"
] | null | null | null | README.md | mistafido/python-lap | 789a442aafae77be9d8af713f85b31a19e315d49 | [
"Apache-2.0"
] | null | null | null | # python-lap
A list of python lap programs used during the course session
| 24.666667 | 60 | 0.797297 | eng_Latn | 0.99926 |
9fe939135c905d0c2cba0f2736d1dbe6930a8839 | 71 | md | Markdown | tag/image.md | nguyenhuuhuy/nguyenhuuhuy.github.io | 8cb7dc1300b363e840f3cb1fc8f4e04ca23ce9e0 | [
"MIT"
] | null | null | null | tag/image.md | nguyenhuuhuy/nguyenhuuhuy.github.io | 8cb7dc1300b363e840f3cb1fc8f4e04ca23ce9e0 | [
"MIT"
] | null | null | null | tag/image.md | nguyenhuuhuy/nguyenhuuhuy.github.io | 8cb7dc1300b363e840f3cb1fc8f4e04ca23ce9e0 | [
"MIT"
] | 3 | 2016-11-06T05:09:00.000Z | 2019-11-27T13:54:09.000Z | ---
layout: tagpage
title: "Tag: image"
tag: image
robots: noindex
---
| 10.142857 | 19 | 0.661972 | tgl_Latn | 0.1369 |
9fe992415ca963539ca38b8a3fef43b19446d695 | 202 | md | Markdown | README.md | beadone/stm32f103c8t6_servo_pwm1 | 7440e5668e28537289af6f0619dbb436b97a70ff | [
"MIT"
] | null | null | null | README.md | beadone/stm32f103c8t6_servo_pwm1 | 7440e5668e28537289af6f0619dbb436b97a70ff | [
"MIT"
] | null | null | null | README.md | beadone/stm32f103c8t6_servo_pwm1 | 7440e5668e28537289af6f0619dbb436b97a70ff | [
"MIT"
] | null | null | null | # stm32f103c8t6_servo_pwm1
3 buttons pa0, pa1 and pa2 are used to control pb6 (in pwm mode). They set the futaba s3003 forward, backward or stop.
This code can be imported into the eclispe environment
| 40.4 | 118 | 0.792079 | eng_Latn | 0.997807 |
9fe9d7bdc9066ba488c69119e62b61b97fde2482 | 296 | md | Markdown | README.md | bulfaitelo/UTF-8-e-Windows-1252-ISO-8859-1- | 3e113ada5ca978f2e2300cda50d6d0ddf04d8ba0 | [
"Apache-2.0"
] | 3 | 2017-05-08T23:21:04.000Z | 2018-12-01T00:41:30.000Z | README.md | bulfaitelo/UTF-8-e-Windows-1252-ISO-8859-1- | 3e113ada5ca978f2e2300cda50d6d0ddf04d8ba0 | [
"Apache-2.0"
] | null | null | null | README.md | bulfaitelo/UTF-8-e-Windows-1252-ISO-8859-1- | 3e113ada5ca978f2e2300cda50d6d0ddf04d8ba0 | [
"Apache-2.0"
] | null | null | null | # UTF-8-e-Windows-1252-ISO-8859-1-
Como reparar problema com caracteres em UTF-8 e Windows-1252 (ISO 8859-1)
Micro código de como repara os problemas com exportação de caracteres UTF-8 Windows-1252
Link do Post:
http://www.bulfaitelo.com.br/2016/10/como-reparar-problema-com-caracteres-em.html
| 37 | 88 | 0.783784 | por_Latn | 0.848507 |
9fea676e247395c7b30216658799d9c583865c0a | 1,639 | md | Markdown | memdocs/intune/user-help/you-need-to-turn-on-scanning-for-security-threats-android.md | Mr-Tbone/memdocs.sv-se | e369d5c63d1706200c13c9606c9d7d4f536f0395 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | memdocs/intune/user-help/you-need-to-turn-on-scanning-for-security-threats-android.md | Mr-Tbone/memdocs.sv-se | e369d5c63d1706200c13c9606c9d7d4f536f0395 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | memdocs/intune/user-help/you-need-to-turn-on-scanning-for-security-threats-android.md | Mr-Tbone/memdocs.sv-se | e369d5c63d1706200c13c9606c9d7d4f536f0395 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Du måste aktivera sökning efter säkerhetshot
description: Lär dig hur du aktiverar sökning efter säkerhetshot på din enhet
keywords: ''
author: lenewsad
ms.author: lanewsad
manager: dougeby
ms.date: 01/23/2017
ms.topic: end-user-help
ms.prod: ''
ms.service: microsoft-intune
ms.subservice: end-user
ms.technology: ''
ms.assetid: b3e5994c-d215-4c72-8915-349bd0b2504d
searchScope:
- User help
ROBOTS: ''
ms.custom: intune-enduser
ms.collection: ''
ms.openlocfilehash: 6825a6b6dbab206d528d6063afb818510c75971d
ms.sourcegitcommit: a77ba49424803fddcaf23326f1befbc004e48ac9
ms.translationtype: HT
ms.contentlocale: sv-SE
ms.lasthandoff: 05/27/2020
ms.locfileid: "83882494"
---
# <a name="enable-security-threat-scans-on-your-device"></a>Aktivera sökning efter säkerhetshot på din enhet
Om du installerar en osäker app utan vetskap, kanske dina data på enheten utsätts för risk. För att skydda data på enheten, rekommenderar vi att du:
* Endast hämta appar från verifierade källor, till exempel Google Play-butiken.
* Aktiverar sökning efter säkerhetshot på din enhet. Dessa genomsökningar utförs av Google och verifierar att appar är säkra att installera.
Om du vill aktivera sökningar på din enhet, gå till **Inställningar** > **Google** > **Säkerhet**. Sätt på **Genomsök enheten efter säkerhetshot**.
På vissa Samsung-enheter kan du hitta inställningen i **Inställningar** > **Google** > **Säkerhet** > **Google Play Protect**.
Behöver du fortfarande hjälp? Kontakta företagssupporten. Titta efter IT-administratörens kontaktuppgifter på [företagsportalens webbplats](https://go.microsoft.com/fwlink/?linkid=2010980).
| 43.131579 | 190 | 0.784625 | swe_Latn | 0.995578 |
9feb29c3c61bd873cd73ff62352c247776ae8405 | 750 | md | Markdown | providerService/README.md | jarensaa/transparent-healthcare | 6af636cf0b782faabc00f2717269c6d17c0d1f4a | [
"MIT"
] | 3 | 2020-04-28T07:56:44.000Z | 2021-04-01T06:34:10.000Z | providerService/README.md | jarensaa/transparent-healthcare | 6af636cf0b782faabc00f2717269c6d17c0d1f4a | [
"MIT"
] | 1 | 2021-03-08T17:50:46.000Z | 2021-03-08T17:50:46.000Z | providerService/README.md | jarensaa/transparent-healthcare | 6af636cf0b782faabc00f2717269c6d17c0d1f4a | [
"MIT"
] | 3 | 2021-04-20T15:07:00.000Z | 2022-01-26T16:06:54.000Z | ## Prerequisites
1. Run the ganache blockchain in `../ganache` with `yarn start`
2. Run a contract compile and migration in `../contracts` with `truffle migrate`
## Development
Use intellij for development on the project
### Generate IDEA Files
Use gradle to generate IDEA config files before opening the project. This can be done with:
```bash
./gradlew idea
```
### Enable annotation processing
The program uses some annotation processing, for example for Immutables. (read: java records were not in LTS during writing)
Annotation processing must be enabled in intellij for the best experience
Do so under `file > settings > Build, execution, deployment > Compiler > annotation processors`
## Running application
```
./gradlew bootRun
```
| 28.846154 | 124 | 0.758667 | eng_Latn | 0.981196 |
9febb6d09b9ddc9e9ada5bf06be14ff4683ee4ba | 927 | md | Markdown | Frends.Salesforce.UpdateSObject/README.md | FrendsPlatform/Frends.Salesforce | bf5a03b46c8cc00d9042b3dc4b646f753cc5d784 | [
"MIT"
] | null | null | null | Frends.Salesforce.UpdateSObject/README.md | FrendsPlatform/Frends.Salesforce | bf5a03b46c8cc00d9042b3dc4b646f753cc5d784 | [
"MIT"
] | 3 | 2022-01-27T08:44:22.000Z | 2022-03-10T11:27:19.000Z | Frends.Salesforce.UpdateSObject/README.md | FrendsPlatform/Frends.Salesforce | bf5a03b46c8cc00d9042b3dc4b646f753cc5d784 | [
"MIT"
] | null | null | null | # Frends.Salesforce.UpdateSObject
Frends Task for updating sobject in Salesforce
[](https://opensource.org/licenses/MIT)
[](https://github.com/FrendsPlatform/Frends.Salesforce/actions)


## Installing
You can install the Task via frends UI Task View or you can find the NuGet package from the following NuGet feed
https://www.myget.org/F/frends-tasks/api/v2.
## Building
Rebuild the project
`dotnet build`
Run tests
`dotnet test`
Create a NuGet package
`dotnet pack --configuration Release`
| 34.333333 | 193 | 0.795038 | kor_Hang | 0.307459 |
9febf36a9fdc3ec5b6ff49b769a0fd0cad2b5d16 | 1,334 | md | Markdown | docs/ado/reference/adox-api/users-collection-properties-methods-and-events.md | zelanko/sql-docs.de-de | 16c23f852738744f691dbc66fb5057c4eb907a95 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/ado/reference/adox-api/users-collection-properties-methods-and-events.md | zelanko/sql-docs.de-de | 16c23f852738744f691dbc66fb5057c4eb907a95 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/ado/reference/adox-api/users-collection-properties-methods-and-events.md | zelanko/sql-docs.de-de | 16c23f852738744f691dbc66fb5057c4eb907a95 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-12-30T12:52:58.000Z | 2020-12-30T12:52:58.000Z | ---
description: Users-Collection – Eigenschaften, Methoden und Ereignisse
title: Benutzer Auflistungs Eigenschaften, Methoden und Ereignisse | Microsoft-Dokumentation
ms.prod: sql
ms.prod_service: connectivity
ms.technology: ado
ms.custom: ''
ms.date: 01/19/2017
ms.reviewer: ''
ms.topic: conceptual
helpviewer_keywords:
- Users collection [ADOX], members
ms.assetid: 1b89a12f-96bc-48b3-a88d-4da74780ea40
author: rothja
ms.author: jroth
ms.openlocfilehash: 7e211214f1b269b47b7a981d2648e35e0c3a5ac2
ms.sourcegitcommit: 18a98ea6a30d448aa6195e10ea2413be7e837e94
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 08/27/2020
ms.locfileid: "88983021"
---
# <a name="users-collection-properties-methods-and-events"></a>Users-Collection – Eigenschaften, Methoden und Ereignisse
## <a name="properties"></a>Eigenschaften
[Count-Eigenschaft](../ado-api/count-property-ado.md)
[Item-Eigenschaft](../ado-api/item-property-ado.md)
## <a name="methods"></a>Methoden
[Append-Methode (Benutzer)](./append-method-adox-users.md)
[Delete-Methode (Auflistungen)](./delete-method-adox-collections.md)
[Refresh-Methode](../ado-api/refresh-method-ado.md)
## <a name="events"></a>Ereignisse
Keine.
## <a name="see-also"></a>Weitere Informationen
[Users-Collection (ADOX)](./users-collection-adox.md) | 33.35 | 120 | 0.751124 | yue_Hant | 0.181754 |
9fec9308dd4821a1afaa655bea7167045fe7ff82 | 134 | md | Markdown | README.md | Monster2408/AutoSneak | 62211d97a8c8b87ff0ca78749c0a6f679f28c85e | [
"MIT"
] | null | null | null | README.md | Monster2408/AutoSneak | 62211d97a8c8b87ff0ca78749c0a6f679f28c85e | [
"MIT"
] | null | null | null | README.md | Monster2408/AutoSneak | 62211d97a8c8b87ff0ca78749c0a6f679f28c85e | [
"MIT"
] | null | null | null | # AutoSneak for 1.12.2
### Download
[Download(v1.0)](https://github.com/Monster2408/AutoSneak/releases/download/1.0/AutoSneak-1.0.jar) | 44.666667 | 98 | 0.753731 | yue_Hant | 0.576773 |
9feca0981b9148589bdfd962141eb625b7488674 | 400 | md | Markdown | README.md | Arshatt/python2_ass1 | e54ba92c7e0bd75e0686b7624ce416074f214757 | [
"MIT"
] | null | null | null | README.md | Arshatt/python2_ass1 | e54ba92c7e0bd75e0686b7624ce416074f214757 | [
"MIT"
] | null | null | null | README.md | Arshatt/python2_ass1 | e54ba92c7e0bd75e0686b7624ce416074f214757 | [
"MIT"
] | null | null | null | # ToDo app with authentication in Django
# Installation
```
pip3 install django
```
# Usage
cd desktop
django-admin startproject todo_list
# Examples
Firstly you should create superuser in the terminal, then login. Overall 3 functions available in the ToDoApp: create, update, delete. Also description, complete checkbox is placed. You can create more users and work further with the TaskList!
| 25 | 243 | 0.785 | eng_Latn | 0.991481 |
9fee4e7710d785154f4b175e5eb92484c2918afe | 56 | md | Markdown | ChangeLog.md | skiros8732/cursed-pfp-maker | 1a4a9f8e462f0c5dc58a2a5f18a45a79ac07ed5d | [
"BSD-3-Clause"
] | null | null | null | ChangeLog.md | skiros8732/cursed-pfp-maker | 1a4a9f8e462f0c5dc58a2a5f18a45a79ac07ed5d | [
"BSD-3-Clause"
] | null | null | null | ChangeLog.md | skiros8732/cursed-pfp-maker | 1a4a9f8e462f0c5dc58a2a5f18a45a79ac07ed5d | [
"BSD-3-Clause"
] | null | null | null | # Changelog for cursed-pfp-maker
## Unreleased changes
| 14 | 32 | 0.767857 | eng_Latn | 0.988185 |
9fee51ada7e2e508e306790f4779832637529f35 | 876 | md | Markdown | RuboCop/Performance-DeleteSuffix.md | r3yn0ld4/docs-for-code-review-tools | a1590fce3b30891679373ec284787b227b21df05 | [
"MIT"
] | 4 | 2019-07-17T18:16:06.000Z | 2021-03-28T23:53:10.000Z | RuboCop/Performance-DeleteSuffix.md | r3yn0ld4/docs-for-code-review-tools | a1590fce3b30891679373ec284787b227b21df05 | [
"MIT"
] | null | null | null | RuboCop/Performance-DeleteSuffix.md | r3yn0ld4/docs-for-code-review-tools | a1590fce3b30891679373ec284787b227b21df05 | [
"MIT"
] | 5 | 2018-09-29T17:02:14.000Z | 2021-12-26T16:53:04.000Z | Pattern: Missing use of `delete_suffix('suffix')`
Issue: -
## Description
In Ruby 2.5, `String#delete_suffix` has been added.
This rule identifies places where `gsub(/suffix\z/, '')` and `sub(/suffix\z/, '')` can be replaced by `delete_suffix('suffix')`.
This rule has `SafeMultiline` configuration option that true by default because `suffix$` is unsafe as it will behave incompatible with `delete_suffix?` for receiver is multi-line string.
The `delete_suffix('suffix')` method is faster than `gsub(/suffix\z/, '')`.
### Examples
```ruby
# bad
str.gsub(/suffix\z/, '')
str.gsub!(/suffix\z/, '')
str.sub(/suffix\z/, '')
str.sub!(/suffix\z/, '')
# good
str.delete_suffix('suffix')
str.delete_suffix!('suffix')
```
## Further Reading
* [RuboCop - Performance/DeleteSuffix](https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancedeletesuffix)
| 26.545455 | 187 | 0.712329 | eng_Latn | 0.945677 |
9fee6641d15ed62db6ca9b85f4aea0ff8a316389 | 241 | md | Markdown | about.md | zaniar/zaniar.github.io | 931982e2c779c30409e4591c4a63cdfb76bb1223 | [
"MIT"
] | null | null | null | about.md | zaniar/zaniar.github.io | 931982e2c779c30409e4591c4a63cdfb76bb1223 | [
"MIT"
] | null | null | null | about.md | zaniar/zaniar.github.io | 931982e2c779c30409e4591c4a63cdfb76bb1223 | [
"MIT"
] | null | null | null | ---
layout: page
title: About
---
In a mere mortal. Doing programming for living. Sometimes doing cooking, baking, and hacking. Basically, I love creating something. Hopefully, someday I will create some useful things.
Thanks for reading!
| 26.777778 | 184 | 0.767635 | eng_Latn | 0.996572 |
9feec0ef48dcb87707fe9326bda033a66ca7376e | 1,805 | md | Markdown | README.md | zbq/cmake-parser | 276b54187af1980c116a0e99d9e41f624fd3361f | [
"MIT"
] | 3 | 2018-07-20T13:54:33.000Z | 2022-03-05T19:50:20.000Z | README.md | zbq/cmake-parser | 276b54187af1980c116a0e99d9e41f624fd3361f | [
"MIT"
] | null | null | null | README.md | zbq/cmake-parser | 276b54187af1980c116a0e99d9e41f624fd3361f | [
"MIT"
] | null | null | null | # cmake-parser
This is a project to parse cmake scripts, it will parse script into a list of command invocation.
## API
1. expand-argument (arg binding)
Expand argument if it contains variable reference.
You should provide a variable binding hash-table.
Ex. arg: 'Hello ${someone}', binding: 'someone'->'Bob',
it will expand to 'Hello Bob'.
2. grammar ()
Return the cmake grammar.
3. parse-string (str)
Parse cmake script string, return a list of command invocation.
4. parse-file (pathname)
Parse cmake script file, return a list of command invocation.
## Example
(defun common-usage ()
(let ((binding (make-hash-table :test 'equal))
(prod (cmake-parser:parse-string "# A demo helloworld
SET(TARGET_NAME \"HelloWorld\")
ADD_EXECUTABLE(${TARGET_NAME} hello.cpp world.cpp)")))
(loop for call in prod
do (progn
(format t "~{~A ~}~%" call)
(cond
((string-equal "SET" (first call))
(setf (gethash (second call) binding) (third call)))
((string-equal "ADD_EXECUTABLE" (first call))
(format t "bin: ~A, src: ~{~A ~}~%"
(cmake-parser:expand-argument (second call) binding)
(cddr call)))
(t (format t "Not Supported Command Invocation")))))))
This will output:
- SET TARGET_NAME HelloWorld
- ADD_EXECUTABLE ${TARGET_NAME} hello.cpp world.cpp
- bin: HelloWorld, src: hello.cpp world.cpp
## CMake language grammar
https://cmake.org/cmake/help/v3.12/manual/cmake-language.7.html
## Repository
https://github.com/zbq/cmake-parser.git
## License
MIT
| 30.59322 | 100 | 0.581717 | eng_Latn | 0.494623 |
9fef0daae63b4df4bfff59a82064e4d03dfcb5d7 | 1,896 | md | Markdown | AlchemyInsights/commercial-dialogues/use-eop-to-enable-dkim.md | isabella232/OfficeDocs-AlchemyInsights-pr.lv-LV | adf4768355ef570e9932eecb193599d2930398fb | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-05-19T19:07:08.000Z | 2020-05-19T19:07:08.000Z | AlchemyInsights/commercial-dialogues/use-eop-to-enable-dkim.md | MicrosoftDocs/OfficeDocs-AlchemyInsights-pr.lv-LV | 96359061cbdf14f4c39b06fe9d9d29d8721dfcfb | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-06-02T23:28:33.000Z | 2022-02-09T06:51:14.000Z | AlchemyInsights/commercial-dialogues/use-eop-to-enable-dkim.md | isabella232/OfficeDocs-AlchemyInsights-pr.lv-LV | adf4768355ef570e9932eecb193599d2930398fb | [
"CC-BY-4.0",
"MIT"
] | 3 | 2019-10-11T18:38:02.000Z | 2021-10-09T10:41:24.000Z | ---
title: PowerShell Exchange Online DKIM iespējošana konkrētam domēnam
ms.author: v-smandalika
author: v-smandalika
manager: dansimp
ms.date: 02/23/2021
audience: Admin
ms.topic: article
ms.service: o365-administration
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Normal
ms.collection: Adm_O365
ms.custom:
- "9002531"
- "7375"
ms.openlocfilehash: ba627c6da96624914b858aa09d6eff9de709134c2c986fe363845c5ab2b66434
ms.sourcegitcommit: b5f7da89a650d2915dc652449623c78be6247175
ms.translationtype: MT
ms.contentlocale: lv-LV
ms.lasthandoff: 08/05/2021
ms.locfileid: "54070314"
---
# <a name="use-exchange-online-powershell-to-enable-dkim-for-a-specific-domain"></a>PowerShell Exchange Online DKIM iespējošana konkrētam domēnam
Ja nevarat izveidot DKIM DNS ierakstus administrēšanas centrā, mēģiniet izmantot Exchange Online PowerShell.
Lai izveidotu DKIM DNS ierakstu, izmantojot Exchange Online PowerShell, veiciet šādas darbības:
1. Atveriet Windows PowerShell kā administrators un izpildiet tālāk norādītās komandas aprakstītajā secībā.
a. `$UserCredential = Get-Credential`
b. `$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection`
c. `Import-PSSession $Session -DisableNameChecking`
Ja rodas problēmas, veidojot savienojumu ar Exchange Online PowerShell, [skatiet rakstu Savienošana Exchange Online PowerShell.](https://docs.microsoft.com/powershell/exchange/connect-to-exchange-online-powershell)
2. Kad ir izveidots savienojums ar Exchange Online PowerShell, izpildiet šādu komandu:
`New-DkimSigningConfig -DomainName < CustomDomain > -Enabled $true`
3. Kad iepriekš minētā komanda ir sekmīgi izpildīta, izpildiet šādu komandu, lai pārtrauktu Exchange Online PowerShell sesiju:
`Remove-PSSession $Session`
| 38.693878 | 214 | 0.810654 | lvs_Latn | 0.836145 |
9fef162712d3d953a021974135b2c4be0cfcec92 | 527 | md | Markdown | _pages/about.md | babybelanja/samuroh.github.io | c8548e7ac7effae7ea69f443b6d26498312eee94 | [
"MIT"
] | null | null | null | _pages/about.md | babybelanja/samuroh.github.io | c8548e7ac7effae7ea69f443b6d26498312eee94 | [
"MIT"
] | null | null | null | _pages/about.md | babybelanja/samuroh.github.io | c8548e7ac7effae7ea69f443b6d26498312eee94 | [
"MIT"
] | null | null | null | ---
title: About
layout: post
permalink: /about/
---
Menjual pakaian muslimah & anak-anak sejak 2010, telah menjual berbagai macam brand dan terus berkembang. Kini memberi kesempatan untuk yang mau mulai jualan atau sudah lama berjualan untuk bermitra dengan kami dengan cara menjadi sub-agen ataupun reseller. Atau sudah punya toko dan butuh supplier gamisnya, bisa kontak kami.
Yuk ah... Cek media sosial kita juga!
- [Facebook](www.facebook.com/samurohbandung/)
- [Instagram](https://www.instagram.com/samuroh_bandung/)
| 37.642857 | 326 | 0.781784 | ind_Latn | 0.97775 |
9fefbc52f2e8513745ee6c7139447bf3d97ca557 | 1,333 | md | Markdown | README.md | GiGurra/drunken_walker | 45f49a4bffc900a592c1ea0c0ddcdba3a22ac832 | [
"MIT"
] | null | null | null | README.md | GiGurra/drunken_walker | 45f49a4bffc900a592c1ea0c0ddcdba3a22ac832 | [
"MIT"
] | null | null | null | README.md | GiGurra/drunken_walker | 45f49a4bffc900a592c1ea0c0ddcdba3a22ac832 | [
"MIT"
] | null | null | null | # drunken_walker
### Stuff left todo.. mvp
..all done..
### Future stuff that's nice to have
* Walk to the left :)
* More intelligent decision making on when to 'change lifted leg'
* Smoother vertical leg movement (perhaps a simple sine instead of current bang-bang)
* Jumping
* Obstacles for jumping
* Some text/ui on screen
* Modern OpenGL
* Full screen?
* More user control
* More dynamic camera
* sound effects? :)
* Finish line vs flappy bird :S
* Auto-create more terrain on demand
* A better inverse kinematics solver
* Refactor & Remove/de-bloat the 'GameState' class
## Build Instructions
* clone the repo
* create a directory inside named target/
* cd target
* cmake ../src/
* make on linux || open the generated VS solution on windows
## Build Dependencies
* [CMake](https://cmake.org/) >= 3.1
* make & g++ on linux || vs2015 on windows
Then:
* On Windows: Builds on Visual Studio 2015 without any external dependencies
* On Ubuntu: Install dependencies listed in deps/ubuntu.sh
* Others: Check CMakelists.txt & contents of deps/ubuntu.sh to figure out what you need
## Bundled Dependencies
* [GLFW](http://www.glfw.org/) for creating an OpenGL capable window
* [GLM](https://github.com/g-truc/glm) for some vector math
* [Easylogging](https://github.com/easylogging/easyloggingpp) for logging
| 27.770833 | 87 | 0.725431 | eng_Latn | 0.909589 |
9fefca6a7821c1d10a17da6cc7e646814552f70f | 42 | md | Markdown | src/galleries/misc/still-life/index.md | Uvacoder/photography-nhoizey | 43a7d50c56d5cc856aca8af632e3540bb3980514 | [
"MIT"
] | 2 | 2021-09-20T11:39:45.000Z | 2021-11-09T12:53:49.000Z | src/galleries/misc/still-life/index.md | Uvacoder/photography-nhoizey | 43a7d50c56d5cc856aca8af632e3540bb3980514 | [
"MIT"
] | 117 | 2021-05-15T22:38:44.000Z | 2022-03-07T13:12:30.000Z | src/misc/still-life/index.md | nhoizey/synthese.photo | 5c43267045bae99cd093b727119df241b5105f97 | [
"MIT"
] | 1 | 2021-08-06T06:40:05.000Z | 2021-08-06T06:40:05.000Z | ---
title: Still life
nav:
order: 2
---
| 7 | 17 | 0.547619 | eng_Latn | 0.813183 |
9ff02908b54f6c79b06414b8e62c3ec5e80ca199 | 13,833 | md | Markdown | articles/cognitive-services/cognitive-services-container-support.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/cognitive-services/cognitive-services-container-support.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/cognitive-services/cognitive-services-container-support.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Stöd för containrar
titleSuffix: Azure Cognitive Services
description: Läs om hur Docker-behållare kan få Cognitive Services närmare dina data.
services: cognitive-services
author: aahill
manager: nitinme
ms.custom: seodec18
ms.service: cognitive-services
ms.topic: article
ms.date: 04/01/2020
ms.author: aahi
ms.openlocfilehash: 7a38ec47d416027e8ea3fa772ae01e4f6264197a
ms.sourcegitcommit: 2d7910337e66bbf4bd8ad47390c625f13551510b
ms.translationtype: MT
ms.contentlocale: sv-SE
ms.lasthandoff: 04/08/2020
ms.locfileid: "80876849"
---
# <a name="container-support-in-azure-cognitive-services"></a>Behållarstöd i Azure Cognitive Services
Behållarstöd i Azure Cognitive Services gör det möjligt för utvecklare att använda samma avancerade API:er som är tillgängliga i Azure och möjliggör flexibilitet i var de kan distribuera och vara värd för de tjänster som med [sig med Docker-behållare](https://www.docker.com/what-container). Behållarsupport är för närvarande tillgängligt för en delmängd av Azure Cognitive Services, inklusive delar av:
> [!div class="checklist"]
> * [Avvikelseidentifiering][ad-containers]
> * [Visuellt innehåll][cv-containers]
> * [Ansikte][fa-containers]
> * [Formigenkänning][fr-containers]
> * [Language Understanding (LUIS)][lu-containers]
> * [Speech Service API][sp-containers]
> * [Textanalys][ta-containers]
> [!VIDEO https://www.youtube.com/embed/hdfbn4Q8jbo]
Containerization är en metod för programvarudistribution där ett program eller en tjänst, inklusive dess beroenden & konfiguration, paketerars tillsammans som en behållaravbildning. Med liten eller ingen ändring kan en behållaravbildning distribueras på en behållarvärd. Behållare är isolerade från varandra och det underliggande operativsystemet, med ett mindre fotavtryck än en virtuell dator. Behållare kan instansieras från behållaravbildningar för kortsiktiga uppgifter och tas bort när de inte längre behövs.
Cognitive Services-resurser är tillgängliga på [Microsoft Azure](https://azure.microsoft.com). Logga in på [Azure-portalen](https://portal.azure.com/) för att skapa och utforska Azure-resurser för dessa tjänster.
## <a name="features-and-benefits"></a>Funktioner och fördelar
- **Oföränderlig infrastruktur**: Aktivera DevOps-teamens för att utnyttja en konsekvent och tillförlitlig uppsättning kända systemparametrar, samtidigt som de kan anpassa sig till förändringar. Behållare ger flexibiliteten att svänga inom ett förutsägbart ekosystem och undvika konfigurationsdrift.
- **Kontroll över data:** Tillåt kunder att välja var dessa Cognitive Services behandlar sina data. Detta är viktigt för kunder som inte kan skicka data till molnet men behöver åtkomst till Cognitive Services-teknik. Stöd konsekvens i hybridmiljöer – över data, hantering, identitet och säkerhet.
- **Kontroll över modelluppdateringar:** Ge kunderna flexibilitet i versionshantering och uppdatering av modeller som distribueras i deras lösningar.
- **Bärbar arkitektur**: Aktivera skapandet av en bärbar programarkitektur som kan distribueras på Azure, lokalt och på kanten. Behållare kan distribueras direkt till [Azure Kubernetes Service,](../aks/index.yml) [Azure Container Instances](../container-instances/index.yml)eller till ett [Kubernetes-kluster](https://kubernetes.io/) som distribueras till [Azure Stack](/azure-stack/operator). Mer information finns i [Distribuera Kubernetes till Azure Stack](/azure-stack/user/azure-stack-solution-template-kubernetes-deploy).
- **Hög dataflöde / låg latens:** Ge kunderna möjlighet att skala för hög dataflöde och låg latens krav genom att göra det möjligt för Cognitive Services att köra fysiskt nära deras program logik och data. Behållare tak inte transaktioner per sekund (TPS) och kan göras för att skala både upp och ut för att hantera efterfrågan om du tillhandahåller nödvändiga maskinvaruresurser.
- **Skalbarhet**: Med den ständigt växande populariteten för containerisering och containerorkestreringsprogram, såsom Kubernetes; skalbarhet är i framkant av tekniska framsteg. Programutveckling bygger på en skalbar klustergrund och tillgodoser hög tillgänglighet.
## <a name="containers-in-azure-cognitive-services"></a>Behållare i Azure Cognitive Services
Azure Cognitive Services-behållare innehåller följande uppsättning Docker-behållare, som var och en innehåller en delmängd av funktioner från tjänster i Azure Cognitive Services:
| Tjänst | Prisnivå som stöds | Container | Beskrivning |
|---------|----------|----------|-------------|
|[Avvikelsedetektor][ad-containers] |F0, S0|**Avvikelsedetektor** |Med API:et för avvikelsedetektorer kan du övervaka och identifiera avvikelser i dina tidsseriedata med maskininlärning.<br>[Begär åtkomst](https://aka.ms/adcontainer)|
|[Visuellt innehåll][cv-containers] |F0, S1|**Läsa** |Extraherar tryckt text från bilder av olika objekt med olika ytor och bakgrunder, till exempel kvitton, affischer och visitkort. Läs-behållaren identifierar också *handskriven text* i bilder och ger PDF/TIFF/multi-page-stöd.<br/><br/>**Viktigt:** Läs-behållaren fungerar för närvarande endast med engelska.|
|[Ansikte][fa-containers] |F0, S0|**Ansikte** |Upptäcker mänskliga ansikten i bilder och identifierar attribut, inklusive ansiktslandmärken (till exempel näsor och ögon), kön, ålder och andra maskinspåverkade ansiktsdrag. Förutom identifiering kan Face kontrollera om två ansikten i samma bild eller olika bilder är desamma genom att använda en konfidenspoäng, eller jämföra ansikten mot en databas för att se om det redan finns ett liknande eller identiskt ansikte. Det kan också organisera liknande ansikten i grupper, med hjälp av delade visuella egenskaper.<br>[Begär åtkomst](Face/face-how-to-install-containers.md#request-access-to-the-private-container-registry) |
|[Formulärigenkänning][fr-containers] |F0, S0|**Formigenkänning** |Formulärförståelse tillämpar maskininlärningsteknik för att identifiera och extrahera nyckelvärdespar och tabeller från formulär.<br>[Begär åtkomst](https://aka.ms/FormRecognizerContainerRequestAccess)|
|[LUIS][lu-containers] |F0, S0|**LUIS** ([bild](https://go.microsoft.com/fwlink/?linkid=2043204&clcid=0x409))|Läser in en tränad eller publicerad språkförståelsemodell, även känd som en LUIS-app, i en docker-behållare och ger åtkomst till frågeförutsägelserna från behållarens API-slutpunkter. Du kan samla in frågeloggar från behållaren och överföra dessa tillbaka till [LUIS-portalen](https://www.luis.ai) för att förbättra appens förutsägelsenoggrannhet.|
|[Speech Service API][sp-containers-stt] |F0, S0|**Tal till text** |Transkriberar kontinuerlig realtidsöversättning av tal till text.|
|[Speech Service API][sp-containers-cstt] |F0, S0|**Anpassad tal-till-text** |Transkriberar kontinuerligt tal i realtid till text med hjälp av en anpassad modell.|
|[Speech Service API][sp-containers-tts] |F0, S0|**Text till tal** |Konverterar text till naturligt tal.|
|[Speech Service API][sp-containers-ctts] |F0, S0|**Anpassad text till tal** |Konverterar text till naturligt klingande tal med en anpassad modell.|
|[Textanalys][ta-containers-keyphrase] |F0, S|**Extraktion av nyckelfraser** ([bild](https://go.microsoft.com/fwlink/?linkid=2018757&clcid=0x409)) |Extraherar nyckelfraser för att identifiera de viktigaste punkterna. Exempel: För den inmatade texten ”Maten var härlig och personalen var underbar” returnerar API:et de huvudsakliga diskussionsämnena: ”mat” och ”underbar personal”. |
|[Textanalys][ta-containers-language]|F0, S|**Språkidentifiering** ([bild](https://go.microsoft.com/fwlink/?linkid=2018759&clcid=0x409)) |För upp till 120 språk upptäcker du vilket språk indatatexten är skriven i och rapporterar en enda språkkod för varje dokument som skickas in på begäran. Språkkoden paras med poäng som anger styrkan hos poängen. |
|[Textanalys][ta-containers-sentiment]|F0, S|**Sentimentanalys** ([bild](https://go.microsoft.com/fwlink/?linkid=2018654&clcid=0x409)) |Analyserar rå text för ledtrådar om positiva eller negativa känslor. Detta API returnerar attitydpoäng mellan 0 och 1 för varje dokument, där 1 är det mest positiva. Analysmodellerna är förutbildade med hjälp av en omfattande mängd text- och naturligt språkteknik från Microsoft. För [utvalda språk](./text-analytics/language-support.md) kan API:et analysera och poängsätta råtext som du anger, och direkt returnera resultat till det anropande programmet. |
<!--
|[Personalizer](https://go.microsoft.com/fwlink/?linkid=2083923&clcid=0x409) |F0, S0|**Personalizer** ([image](https://go.microsoft.com/fwlink/?linkid=2083928&clcid=0x409))|Azure Personalizer is a cloud-based API service that allows you to choose the best experience to show to your users, learning from their real-time behavior.|
-->
Dessutom stöds vissa behållare i Cognitive Services [**Allt-i-ett-erbjudande om**](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resursnycklar. Du kan skapa en enda Allt-i-ett-resurs för Cognitive Services och använda samma faktureringsnyckel för tjänster som stöds för följande tjänster:
* Visuellt innehåll
* Ansikte
* LUIS
* Textanalys
## <a name="container-availability-in-azure-cognitive-services"></a>Behållarinstans i Azure Cognitive Services
Azure Cognitive Services-behållare är allmänt tillgängliga via din Azure-prenumeration och Docker-behållaravbildningar kan hämtas från antingen Microsoft Container Registry eller Docker Hub. Du kan använda [docker pull-kommandot](https://docs.docker.com/engine/reference/commandline/pull/) för att hämta en behållaravbildning från rätt register.
> [!IMPORTANT]
> För närvarande måste du slutföra en registreringsprocess för att komma åt följande behållare, där du fyller i och skickar en enkät med frågor om dig, ditt företag och användningsfallet som du vill implementera behållarna för. När du har beviljats åtkomst och angett autentiseringsuppgifter kan du sedan hämta behållaravbildningarna från ett privat behållarregister som finns i Azure Container Registry.
> * [Avvikelsedetektor](Anomaly-Detector/anomaly-detector-container-howto.md#request-access-to-the-container-registry)
> * [Ansikte](Face/face-how-to-install-containers.md)
> * [Formigenkänning](form-recognizer/form-recognizer-container-howto.md#request-access-to-the-container-registry)
> * [Läsa](computer-vision/computer-vision-how-to-install-containers.md)
> * [Tal-till-text och text-till-tal](Speech-Service/speech-container-howto.md#request-access-to-the-container-registry)
[!INCLUDE [Container repositories and images](containers/includes/cognitive-services-container-images.md)]
## <a name="prerequisites"></a>Krav
Du måste uppfylla följande förutsättningar innan du använder Azure Cognitive Services-behållare:
**Docker Motor:** Du måste ha Docker Engine installerat lokalt. Docker tillhandahåller paket som konfigurerar Docker-miljön på [macOS](https://docs.docker.com/docker-for-mac/), [Linux](https://docs.docker.com/engine/installation/#supported-platforms)och [Windows](https://docs.docker.com/docker-for-windows/). I Windows måste Docker konfigureras för att stödja Linux-behållare. Docker-behållare kan också distribueras direkt till [Azure Kubernetes Service](../aks/index.yml) eller [Azure Container Instances](../container-instances/index.yml).
Docker måste konfigureras så att behållarna kan ansluta till och skicka faktureringsdata till Azure.
**Förtrogenhet med Microsoft Container Registry och Docker:** Du bör ha en grundläggande förståelse för både Microsoft Container Registry och Docker begrepp, `docker` som register, databaser, behållare och containeravbildningar, samt kunskap om grundläggande kommandon.
En introduktion till grunderna för Docker och containrar finns i [Docker-översikt](https://docs.docker.com/engine/docker-overview/).
Enskilda behållare kan ha sina egna krav, inklusive server- och minnesallokeringskrav.
[!INCLUDE [Cognitive Services container security](containers/includes/cognitive-services-container-security.md)]
[!INCLUDE [Discoverability of more container information](../../includes/cognitive-services-containers-discoverability.md)]
## <a name="next-steps"></a>Nästa steg
Lär dig mer om [behållarrecept](containers/container-reuse-recipe.md) som du kan använda med Cognitive Services.
Installera och utforska funktionerna som tillhandahålls av behållare i Azure Cognitive Services:
* [Behållare för avvikelsedetektor][ad-containers]
* [Behållare för datorseende][cv-containers]
* [Ansiktsbehållare][fa-containers]
* [Formulärconkänningsbehållare][fr-containers]
* [LUIS-behållare (Language Understanding)][lu-containers]
* [API-behållare för taltjänst][sp-containers]
* [Behållare för textanalys][ta-containers]
<!--* [Personalizer containers](https://go.microsoft.com/fwlink/?linkid=2083928&clcid=0x409)
-->
[ad-containers]: anomaly-Detector/anomaly-detector-container-howto.md
[cv-containers]: computer-vision/computer-vision-how-to-install-containers.md
[fa-containers]: face/face-how-to-install-containers.md
[fr-containers]: form-recognizer/form-recognizer-container-howto.md
[lu-containers]: luis/luis-container-howto.md
[sp-containers]: speech-service/speech-container-howto.md
[sp-containers-stt]: speech-service/speech-container-howto.md?tabs=stt
[sp-containers-cstt]: speech-service/speech-container-howto.md?tabs=cstt
[sp-containers-tts]: speech-service/speech-container-howto.md?tabs=tts
[sp-containers-ctts]: speech-service/speech-container-howto.md?tabs=ctts
[ta-containers]: text-analytics/how-tos/text-analytics-how-to-install-containers.md
[ta-containers-keyphrase]: text-analytics/how-tos/text-analytics-how-to-install-containers.md?tabs=keyphrase
[ta-containers-language]: text-analytics/how-tos/text-analytics-how-to-install-containers.md?tabs=language
[ta-containers-sentiment]: text-analytics/how-tos/text-analytics-how-to-install-containers.md?tabs=sentiment | 98.807143 | 671 | 0.801706 | swe_Latn | 0.996545 |
9ff038cc2f5328685c7735065e6fc7cfb3b824db | 1,551 | md | Markdown | _posts/node/2019-11-13-node-moment.md | InSeok9068/inseok9068.github.io | 4fa1ebb1b3155564433f1bd178c3bc4c18c3eece | [
"MIT"
] | 1 | 2019-06-30T10:38:57.000Z | 2019-06-30T10:38:57.000Z | _posts/node/2019-11-13-node-moment.md | InSeok9068/inseok9068.github.io | 4fa1ebb1b3155564433f1bd178c3bc4c18c3eece | [
"MIT"
] | 3 | 2020-02-25T23:44:33.000Z | 2021-01-26T08:39:00.000Z | _posts/node/2019-11-13-node-moment.md | InSeok9068/inseok9068.github.io | 4fa1ebb1b3155564433f1bd178c3bc4c18c3eece | [
"MIT"
] | null | null | null | ---
title: "[Node] Moment 패키지로 날짜 이용하기"
categories:
- Node
tag:
- moment
---
자바스크립트에는 `new Date()`로 날짜 값을 불러올 수 있다.
그러나 Node의 패키지인 **moment** 를 이용하면 좀 더 편리하게 날짜 값을 다룰 수 있다.
물론 자바스크립트로도 **moment** 객체를 사용할 수 있다.
몇 가지 예시로 기능들을 알아보도록 하자.
일단 첫 번째로 당연히 해당 패키지를 다운로드해준다.
```shell
npm install moment --save
```
```js
const moment = require("moment");
// 현재시간
console.log(moment());
// moment("2019-11-13T20:20:56.274")
// 원하는 날짜 Date타입 구하기
console.log(moment("2019-01-01"));
console.log(moment("20190101"));
// moment("2019-01-01T00:00:00.000")
// 포맷 설정 1
console.log(moment().format("YYYY-MM-DD"));
// 2019-11-13
// 포맷 설정 2
console.log(moment().format("YYYY년 MM월 DD일"));
// 2019년 11월 13일
// 년도
console.log(moment().year());
// 2019
// 월
console.log(moment().month());
// 10
// 일
console.log(moment().date());
// 13
// 요일
console.log(moment().day());
// 3
// 시간
console.log(moment().hours());
// 20
// 분
console.log(moment().minutes());
// 21
// 초
console.log(moment().milliseconds());
// 229
// 현재 날짜로 부터 2년뒤
console.log(moment().add(2, "year"));
// moment("2021-11-13T20:21:17.229")
// 현재 날짜로 부터 1달 뒤
console.log(moment().add(1, "month"));
// moment("2019-12-13T20:21:17.231")
// 달기준으로 몇달 차이나는지 위 두개의 날짜 값의 비교
console.log(
moment()
.add(2, "year")
.diff(moment().add(1, "month"), "month")
);
// 23
// moment객체를 자바스크립트 날짜객체로 변환
console.log(moment().toDate());
// 2019-11-13T11:29:47.367Z
```
이렇게 다양한 기능들을 통해 좀 더 편리하게 날짜 객체를 다룰 수 있게 되었다.
공식 문서 [moment](https://momentjs.com/docs/)를 참고하면 위에 설명한 것보다 훨씬 더 많은 기능을 이용할 수 있다.
| 16.326316 | 81 | 0.623469 | kor_Hang | 0.997659 |
9ff0539ea22114425197321eb69cc7ebed1302cd | 5,269 | md | Markdown | README.md | Daniihh/img-diff-js | fc7e4452ed80875893d38aef4ff78b61b7c3e063 | [
"MIT"
] | null | null | null | README.md | Daniihh/img-diff-js | fc7e4452ed80875893d38aef4ff78b61b7c3e063 | [
"MIT"
] | null | null | null | README.md | Daniihh/img-diff-js | fc7e4452ed80875893d38aef4ff78b61b7c3e063 | [
"MIT"
] | null | null | null | # img-diff-js
[](https://circleci.com/gh/reg-viz/img-diff-js)
[](https://travis-ci.org/reg-viz/img-diff-js)
[](https://greenkeeper.io/)
[](https://badge.fury.io/js/img-diff-js)
[](https://opensource.org/licenses/MIT)
:art: Node.js library to compare 2 images without native libs.
| Actual | Expected | Difference |
|:-----------------------------:|:---------------------------------:|:-------------------------:|
|  |  |  |
## Install
```sh
npm install img-diff-js
```
```js
const {imgDiff} = require('img-diff-js');
imgDiff({
actual: 'example/actual.png',
expected: 'example/expected.png',
diffFilename: 'example/diff.png',
}).then(result => console.log(result));
```
## API Usage
### `imgDiff(opt: ImgDiffOptions): Promise<ImgDiffResult>`
Create image differential between two images.
#### `ImgDiffOptions`
```ts
{
actualFilename?: string,
actualContent?: Buffer | NodeJS.ReadStream,
actualType?: string,
actual?: string | Buffer | NodeJS.ReadStream,
expectedFilename?: string,
expectedContent?: Buffer | NodeJS.ReadStream,
expectedType?: string,
expected?: string | Buffer | NodeJS.ReadStream,
diffFilename?: string,
generateOnlyDiffFile?: boolean, //Defaults to false.
options?: {
threshold?: number; //Defaults to 0.1.
includeAA?: boolean; //Defaults to false.
}
}
```
- `actualFilename` - *Required* - *Mutually exclusive with `actualContent` and `actual`* - Path of actual image file. Must be a string.
- `actualContent` - *Required* - *Mutually exclusive with `actualFilename` and `actual`* - Image data of actual image. Can be either a stream or buffer.
- `actual` - *Required* - *Mutually exclusive with `actualFilename` and `actualContent`* - Combination property of `actualFilename` and `actualContent`. Accepts both a path or data of the actual image. Can be either a stream, string or buffer.
- `actualType` - *Required if `actualContent` is used or `actual` is used with a stream or buffer* - *Optional otherwise* - The mime type of the actual image. If used in a scenario where a mime type can be resolved from the actual image, this property overrides the original mime type. Must be a string that conforms to the regular expression `/^[-\w.]+\/[-\w.]+$/`.
- `expectedFilename` - *Required* - *Mutually exclusive with `expectedContent` and `expected`* - Path of expected image file. Must be a string.
- `expectedContent` - *Required* - *Mutually exclusive with `expectedFilename` and `expected`* - Image data of expected image. Can be either a stream or buffer.
- `expected` - *Required* - *Mutually exclusive with `expectedFilename` and `expectedContent`* - Combination property of `expectedFilename` and `expectedContent`. Accepts both a path or data of the expected image. Can be either a stream, string or buffer.
- `expectedType` - *Required if `expectedContent` is used or `expected` is used with a stream or buffer* - *Optional otherwise* - The mime type of the expected image. If used in a scenario where a mime type can be resolved from the expected image, this property overrides the original mime type. Must be a string that conforms to the regular expression `/^[-\w.]+\/[-\w.]+$/`.
- `diffFilename` - *Optional* - Path to differential image file. If omitted, `imgDiff` does not output image file.
- `generateOnlyDiffFile` - *Optional* - Generate only files with difference
- `options` - *Optional* - An object to pass through [pixelmatch](https://github.com/mapbox/pixelmatch#api).
#### `ImgDiffResult`
```ts
{
width: number;
height: number;
imagesAreSame: boolean;
diffCount: number;
}
```
- `width` - Differential image's width.
- `height` - Differential image's height.
- `imagesAreSame` - It'll be true only if 2 images are same perfectly.
- `diffCount` - The number of differential pixels.
## Available format
The following codecs are available for input image files.
- [x] png
- [x] jpeg
- [x] tiff (limited. See https://github.com/Quramy/decode-tiff#compatibility )
- [ ] bmp
`imgDiff` detects the input image format from it's extension name. For example, if the input file name ends with ".jpeg", `imgDiff` attempts to decode in JPEG way regardless of the actual file format.
The output image format is PNG only.
## Performance
| case name | img-diff-js | image-difference | image-diff |
|:---|---:|---:|---:|
| 50 same dimension PNGs | 936 msec | 11018 msec | 16539 msec |
| 50 different dimension PNGs | 715 msec | 16077 msec | 16639 msec |
| 50 same dimension JPEGs | 1076 msec | 10910 msec | 19078 msec |
The above table was captured under [Travis-CI](https://travis-ci.org/reg-viz/img-diff-js). If you want the latest result, check the raw log.
## Contributing
Pull requests and issues are welcome. ;)
## License
MIT License. See LICENSE under this repository.
| 50.180952 | 376 | 0.697096 | eng_Latn | 0.889703 |
9ff2ac2f826ed2b6142945675b94036b6e8b1124 | 3,700 | md | Markdown | README.md | Dukejung/consul-on-kubernetes | d8ceb11fdf0de2d853daed27d0d410f392f56f46 | [
"Apache-2.0"
] | null | null | null | README.md | Dukejung/consul-on-kubernetes | d8ceb11fdf0de2d853daed27d0d410f392f56f46 | [
"Apache-2.0"
] | null | null | null | README.md | Dukejung/consul-on-kubernetes | d8ceb11fdf0de2d853daed27d0d410f392f56f46 | [
"Apache-2.0"
] | null | null | null | # Running Consul on Kubernetes
This tutorial will walk you through deploying a three (3) node [Consul](https://www.consul.io) cluster on Kubernetes.
## Overview
* Three (3) node Consul cluster using a [StatefulSet](http://kubernetes.io/docs/concepts/abstractions/controllers/statefulsets)
## Usage
Clone this repo:
```
git clone https://github.com/Dukejung/consul-on-kubernetes.git
```
Change into the `consul-on-kubernetes` directory:
```
cd consul-on-kubernetes
```
### Create Consul Acl Token
Create acl token and configuration files using script.
```
./createAclToken.sh
```
Above script will create bootstrap token using [uuidgen](https://man7.org/linux/man-pages/man1/uuidgen.1.html) and save at aclToken.txt.
Consul configuration files using bootstrap token will be created as configs/server-acl-config.json and configs/client-acl-config.json.
### Create the Consul Secret and Configmap
The Consul cluster will be configured using a combination of CLI flags and configuration files, which reference Kubernetes configmaps and secrets.
Create a Secret that stores the gossip encryption key and part of server configuration files with acl token using script:
```
./createSecret.sh
```
Create a ConfigMap that stores the Consul server configuration using script:
```
./createConfigMap.sh
```
### Create the Consul Service
Create a headless service to expose each Consul member internally to the cluster:
```
kubectl create -f services/consul.yaml
```
Create a load balance service that exposes 8500 port:
```
kubectl create -f services/consul-ui.yaml
```
### Create the Consul Service Account
```
kubectl apply -f serviceaccounts/consul.yaml
```
```
kubectl apply -f roles/consul.yaml
```
### Create the Consul StatefulSet
Deploy a three (3) node Consul cluster using a StatefulSet:
```
kubectl create -f statefulsets/consul.yaml
```
Each Consul member will be created one by one. Verify each member is `Running` before moving to the next step.
```
kubectl get pods
```
```
NAME READY STATUS RESTARTS AGE
consul-0 1/1 Running 0 20s
consul-1 1/1 Running 0 20s
consul-2 1/1 Running 0 20s
```
### Verification
At this point the Consul cluster has been bootstrapped and is ready for operation. To verify things are working correctly, review the logs for one of the cluster members.
```
kubectl logs consul-0
```
The consul CLI can also be used to check the health of the cluster. In a new terminal start a port-forward to the `consul-0` pod.
```
kubectl port-forward consul-0 8500:8500
```
```
Forwarding from 127.0.0.1:8500 -> 8500
Forwarding from [::1]:8500 -> 8500
```
Run the `consul members` command to view the status of each cluster member.
```
consul members
```
```
Node Address Status Type Build Protocol DC Segment
consul-0 10.32.2.8:8301 alive server 1.4.0rc1 2 dc1 <all>
consul-1 10.32.1.7:8301 alive server 1.4.0rc1 2 dc1 <all>
consul-2 10.32.0.13:8301 alive server 1.4.0rc1 2 dc1 <all>
```
### Accessing the Web UI
There are two ways to access the web UI.
a. Using kubectl port-forward
Start a port-forward session to the `consul-0` Pod in a new terminal.
```
kubectl port-forward consul-0 8500:8500
```
Visit http://127.0.0.1:8500 in your web browser.
b. Using exposed ip.
Get EXTERNAL-IP assigned to the load balancer service named _consul-ui_.
```
kubectl get svc
```
Visit http://[EXTERNAL-IP]:8500 in your web browser.

## Cleanup
Run the `cleanup` script to remove the Kubernetes resources created during this tutorial:
```
bash cleanup
```
| 23.717949 | 170 | 0.713514 | eng_Latn | 0.930699 |
9ff474b0f188866dc948ea951385fad4d7baec62 | 448 | md | Markdown | README.md | matheusgomes062/techno-project-website | 4023003f6a0be3c5e0ead2369fffb744058afaf6 | [
"MIT"
] | 1 | 2019-12-09T17:18:17.000Z | 2019-12-09T17:18:17.000Z | README.md | matheusgomes062/techno-project-website | 4023003f6a0be3c5e0ead2369fffb744058afaf6 | [
"MIT"
] | null | null | null | README.md | matheusgomes062/techno-project-website | 4023003f6a0be3c5e0ead2369fffb744058afaf6 | [
"MIT"
] | null | null | null | # Techno-project-vue
Site usado para vender produtos eletrônicos.
Feito incialmente em um "code along" com a Origamid.
No momento ainda não melhorei o código. Aqui vão algumas fotos do projeto.
Imagem do site principal

Imagem do produto

Imagem do alert

Imagem do carrinho

Tudo bem simples mas com bastante amor.
| 24.888889 | 74 | 0.767857 | por_Latn | 0.999297 |
9ff5584e8462f6e90e469123a0a3babd022673ca | 2,116 | md | Markdown | src/pages/skill/Software.md | BluesYoung-web/blog-vitessg | b9b844f86942fce0eff153d89d18662346d7a9d6 | [
"MIT"
] | 1 | 2022-01-27T03:07:00.000Z | 2022-01-27T03:07:00.000Z | src/pages/skill/Software.md | BluesYoung-web/blog-vitessg | b9b844f86942fce0eff153d89d18662346d7a9d6 | [
"MIT"
] | null | null | null | src/pages/skill/Software.md | BluesYoung-web/blog-vitessg | b9b844f86942fce0eff153d89d18662346d7a9d6 | [
"MIT"
] | null | null | null | ---
title: 好用的软件
description: 好用的软件
date: 2021-12-29 14:47:08
---
[[toc]]
## 跨平台软件
### Tabby
一个高度可定制的开源终端软件
[下载](https://github.com/Eugeny/tabby/releases/)
### pad 扩展为电脑的副屏
[官网](https://www.spacedesk.net/)
[蓝奏云](https://pc.woozooo.com/mydisk.php)
[网页版-接收端](http://viewer.spacedesk.net/)
<n-alert type="info">**电脑端需要修改对应的显示器属性,否则会看起来很模糊**</n-alert>
## Linux
### tree
以字符形式输出目录结构
```bash
tree
###
.
├── bin
│ ├── createNewPage.js
│ └── package.json
├── dist
├── index.html
├── LICENSE
├── node_modules
├── package.json
├── public
│ └── favicon.ico
├── README.md
├── src
│ ├── api
│ │ ├── _config.ts
│ │ └── user.ts
│ │
......
17 directories, 55 files
###
```
### ranger
基于终端的文件资源管理器
可以直接在命令行内浏览目录与预览文件
```bash
# 生成默认的配置
ranger --copy-config=all
# 编辑配置文件
nano ~/.config/ranger/rc.conf
```
### 钉钉
[官方 Linux 版本](https://alidocs.dingtalk.com/i/p/nb9XJlJ7QbxN8GyA/docs/nb9XJOPQ3K25LmyA)
### Shell Clash
[GitHub](https://github.com/juewuy/ShellClash/blob/master/README_CN.md)
```bash
# jsdelivrCDN源
export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
# 读取环境变量
source ~/.bashrc &> /dev/null
# 直接运行
clash
# 配置文件存放位置(非root用户)
# /home/young/.local/share/clash/config.yaml
```
### git
```bash
# 前置条件,安装 add-apt-repository
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo apt-get update
# add-apt-repository 如果存在则可以跳过上面的安装步骤
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
```
### ssh
```bash
# 安装服务器端程序
sudo apt-get install openssh-server
# 查看服务是否已经启动
ps -e | grep ssh
# 如果出现 sshd 就是已经启动了
# 启动 | 关闭 | 重启服务
sudo service ssh start | stop | restart
# 编辑配置文件
sudo nano /etc/ssh/sshd_config
```
### 铜豌豆常用软件源
```bash
# 添加软件源
sudo apt-add-repository 'deb https://apt.atzlinux.com/atzlinux buster main contrib non-free'
# 解决证书报错
wget -O public.key https://www.atzlinux.com/atzlinux/download/public.key
sudo apt-key add public.key
# 更新
sudo apt-get update
# 安装 钉钉
sudo apt-get install dingtalk-electron
```
| 16.030303 | 143 | 0.682892 | yue_Hant | 0.388123 |
9ff585fbb0a3d427e6a3e24b7cea667b367fc3dd | 539 | md | Markdown | it/python/variables/9.md | nank1ro/Codigo-Questions | 559cf998c8b5fbf7a9aee2db08fe57c8abc63408 | [
"BSD-3-Clause"
] | 5 | 2021-08-30T05:36:45.000Z | 2022-03-18T16:25:39.000Z | it/python/variables/9.md | nank1ro/Codigo-Questions | 559cf998c8b5fbf7a9aee2db08fe57c8abc63408 | [
"BSD-3-Clause"
] | 33 | 2021-10-04T12:52:45.000Z | 2022-03-07T11:32:13.000Z | it/python/variables/9.md | nank1ro/Codigo-Questions | 559cf998c8b5fbf7a9aee2db08fe57c8abc63408 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T16:04:12.000Z | 2021-12-07T16:04:12.000Z | ---
language: python
exerciseType: 1
---
# --instructions--
Assegna il valore `True` a `musica_attiva`
# --seed--
```python
musica_attiva True
```
# --before-asserts--
```python
import unittest
class CodigoTests(unittest.TestCase):
```
# --asserts--
`musica_attiva` deve essere uguale a `True`.
```python
def test_1(self):
self.assertEqual(musica_attiva, True, "--err-t1--")
```
# --after-asserts--
```python
if __name__ == "__main__":
unittest.main()
```
# --solutions--
```python
musica_attiva = True
```
| 11.977778 | 59 | 0.632653 | ita_Latn | 0.227246 |
9ff624552e0fd8902756d6e814bc9d9f0402517e | 296 | md | Markdown | README.md | osamja/myreact_site | ebc2fe164f1ba4bf35d4efb41e84e7000977d4b0 | [
"MIT"
] | null | null | null | README.md | osamja/myreact_site | ebc2fe164f1ba4bf35d4efb41e84e7000977d4b0 | [
"MIT"
] | null | null | null | README.md | osamja/myreact_site | ebc2fe164f1ba4bf35d4efb41e84e7000977d4b0 | [
"MIT"
] | null | null | null | # myreact_site
Rebuilding my personal website using the React framework.
### TODO
-. Clicking on a grid box will open up a modal (in transition) with the content info.
a. Clicking anywhere should close that modal.
b. row x 2 layout. There should be at most two columns.
| 26.909091 | 86 | 0.699324 | eng_Latn | 0.998199 |
9ff6a4cb7b28b2d47d4aa660a13b68032fc955f4 | 4,677 | md | Markdown | README.md | CarouselSMS/perfect_price | 6fc37d6811ea06139fbb0e7ebae4069a815fa95b | [
"MIT"
] | 2 | 2015-11-05T01:20:06.000Z | 2017-03-16T17:31:28.000Z | README.md | CarouselSMS/perfect_price | 6fc37d6811ea06139fbb0e7ebae4069a815fa95b | [
"MIT"
] | null | null | null | README.md | CarouselSMS/perfect_price | 6fc37d6811ea06139fbb0e7ebae4069a815fa95b | [
"MIT"
] | null | null | null | Perfect Price
=============
* Define your plans and features
* Use the definition to:
* calculate the total for your billing
* get data for the plans section of your page
Features
--------
* Plan definitions with:
* Name
* Setup and monthly fees
* Features
* Feature definitions with:
* Custom labels for rendering
* Limits and units
* Metered pricing (base price per unit, volume discounts)
* Credits handling
What it's not
-------------
* It doesn't handle your charging
* It doesn't update your models
Defining a plan
---------------
Plans are defined in `config/initializers/perfect_price.rb` like this:
PerfectPrice.configure do
feature :projects, :label => "Projects", :limit => 35
feature :storage, :label => "Storage", :limit => 15, :units => "Gb"
feature :users, :label => "Users", :limit => PerfectPrice::UNLIMITED
feature :mo
feature :mt, :unit_price => 0.05,
:bundled => 100
:volume_discounts => {
20000 => 0.005,
50000 => 0.01,
100000 => 0.015,
250000 => 0.02,
500000 => 0.025,
1000000 => 0.03 }
plan :max, :label => 'Max' do
setup_fee 100
monthly_fee 149
meta :label => "Top-of-the-line"
feature :projects => PerfectPrice::UNLIMITED
feature :storage => 75
feature :notes => PerfectPrice::UNLIMITED
end
plan :premium, :label => 'Premium' do
setup_fee 100
monthly_feee 99
meta :label => "The Sweet Spot"
feature :projects, :limit => 100
feature :storage, :limit => 30
end
plan :plus, :label => 'Plus' do
setup_fee 100
monthly_fee 49
meta :label => "For Small Groups"
end
end
Calculating the total
---------------------
Assuming that you have an `Account` model that's responsible for all account handling logic, you might want to have the `process_payment` call like this:
def Account.process_payment(payment)
# Try charging with the total and return false if it didn't work
return false unless self.subscription.charge(payment[:total])
# Update credits
self.credits = payment[:credits]
save
# Record the payment in log
subscription_payments.create(:total => payment[:total], :details => payment[:details])
return true
end
And here's how you use the library to calculate the total amount for initial payment:
# Initial payment
plan = account.plan
payment = PerfectPrice.initial_payment(plan)
unless account.process_payment(payment)
# Notification
end
When the time comes to calculate the monthly payment you do it like this:
# Then monthly
payment = PerfectPrice.monthly_payment(plan,
:credits => { :feature_a => 100 },
:usage => { :feature_a => 150, :feature_b => 1 })
unless account.process_payment(payment)
# Notification
end
In both cases the `payment` structure being returned contains the following:
payment.total # X + Y
payment.details # { 'monthy_fee' => X, 'feature_a' => Y }
When handling monthly payments, there also will be the updated `credits` section:
payment.credits # { :feature_a => 0 }
It's the intention that you get the details of the calculation in the `details` section for your records. This way you can explain how'd you come up with the number.
The `credits` section contains the updated credits hash that you can put back into your `account` upon the successful transaction.
Snapshots
---------
Sometimes you need to save a plan defition with all its features. The most common case
is to freeze a plan for all existing subscribers, so that when you make changes to your
current plans, it didn't affect billing of existing customers.
Both plans and features support this by taking a snapshot into a JSON string and restoring
everything from such JSON string.
plan.to_snapshot # { :name => 'abc', :features => { :mo => {}, ... } }
When you want to restore the plan, you do:
plan = Plan.from_snapshot(snapshot_hash)
License
=======
perfect_price is Copyright © 2013 [Aleksey Gureiev](mailto:[email protected]) and [Recess Mobile](http://recess.im/).
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
| 29.601266 | 165 | 0.611289 | eng_Latn | 0.978138 |
9ff754a6ea935dbb9f09f2f5e9392eb788691d54 | 1,641 | md | Markdown | content/about/_index.md | MasonEgger/website | 62f942cdd056ff05da44612f086d5180544a17a9 | [
"MIT"
] | null | null | null | content/about/_index.md | MasonEgger/website | 62f942cdd056ff05da44612f086d5180544a17a9 | [
"MIT"
] | 1 | 2021-02-20T07:45:51.000Z | 2022-01-03T17:37:14.000Z | content/about/_index.md | MasonEgger/website | 62f942cdd056ff05da44612f086d5180544a17a9 | [
"MIT"
] | null | null | null | ---
title: "About"
hero_image: "gen2-banner-full.png"
nometadata: true
noshare: true
nocomments: true
---
# Professional Biography / `tl;dr`
_I'm terrible at having to write bios for talks that I want to present, so I'm
putting it here just to keep everything together. If you need a bio for me,
please take this one_.
Mason is currently a Developer Advocate at DigitalOcean who specializes in
cloud infrastructure, distributed systems, and Python. Prior to his work
at DigitalOcean he was an SRE helping build and maintain a highly available
hybrid multicloud PaaS. He is an avid programmer, speaker, educator, and
writer. He is an organizer of PyTexas and actively contributes to open source
projects. In his spare time he enjoys reading, camping, kayaking,
and exploring new places.
# Longer, More Robust Biography
I am currently a Developer Advocate at DigitalOcean.
## Previous Roles
### HomeAway/Vrbo - Expedia Group.
While at Vrbo I was a Senior Site Reliability Engineer for the Cloud Platform Team
at HomeAway (a member of Expedia Group) in Austin, Texas. My team and I build
and maintain a Platform as a Service for all HomeAway developers.
We are currently running tens of thousands of containers running on hundreds of
nodes in datacenters in multiple datacenters around the world.
I have worked as both a software/systems engineer and systems administrator.
I am passionate about Python, Education, Security, Privacy, all things Open
Source (technologies, communities, oddly licenses...) just to name a few.
I'm a graduate of Texas State University, receiving dual degrees in Computer
Science (BS) and Music (BA).
| 40.02439 | 82 | 0.786106 | eng_Latn | 0.998368 |
9ffa2afe63bd81d2d90ffd13917375f59cb22875 | 43 | md | Markdown | README.md | Felipe-Gabriel/employee-crud-api | 9f84f01af5d597da322976f54819f3595005e452 | [
"MIT"
] | null | null | null | README.md | Felipe-Gabriel/employee-crud-api | 9f84f01af5d597da322976f54819f3595005e452 | [
"MIT"
] | null | null | null | README.md | Felipe-Gabriel/employee-crud-api | 9f84f01af5d597da322976f54819f3595005e452 | [
"MIT"
] | null | null | null | # employee-crud-api
Aplicação CRUD com api
| 14.333333 | 22 | 0.790698 | por_Latn | 0.910467 |
9ffa2bec568b15b332d5fb003b1ea83106ce63d8 | 158 | md | Markdown | README.md | crazyimp/renogy-rover-modbus | 6edd0637b1ab8a7924f8605b642490f710393f2c | [
"MIT"
] | null | null | null | README.md | crazyimp/renogy-rover-modbus | 6edd0637b1ab8a7924f8605b642490f710393f2c | [
"MIT"
] | null | null | null | README.md | crazyimp/renogy-rover-modbus | 6edd0637b1ab8a7924f8605b642490f710393f2c | [
"MIT"
] | null | null | null | # renogy-rover-modbus
Scripts read and write Renogy Rover registers
# TODO
- [ ] upgrade `renogy-rover-settings.py` to python3 and new minimalmodbus version
| 26.333333 | 81 | 0.778481 | eng_Latn | 0.884761 |
9ffc9bf4982882e2e798f9ae8a5f23849f951e3d | 557 | md | Markdown | docs/WinNotes/github.md | yequanrui/CloudNotes | 19fac9b428d1936b4b9ea0260a463b82b3bdf501 | [
"MIT"
] | 2 | 2022-02-27T06:41:40.000Z | 2022-03-06T21:45:49.000Z | docs/WinNotes/github.md | yequanrui/CloudNotes | 19fac9b428d1936b4b9ea0260a463b82b3bdf501 | [
"MIT"
] | null | null | null | docs/WinNotes/github.md | yequanrui/CloudNotes | 19fac9b428d1936b4b9ea0260a463b82b3bdf501 | [
"MIT"
] | null | null | null | ### 解决Github页面无法访问或访问速度慢等问题
1. 修改本地host文件
访问链接:<https://raw.hellogithub.com/hosts>
使用工具自动更新:<https://github.com/oldj/SwitchHosts>
手动更新:使用管理员权限编辑host文件
1. 按住`Win+X`组合键或右击开始菜单,选择`Windows 终端(管理员)`
2. 输入`notepad C:\Windows\System32\drivers\etc\hosts`,回车
2. Github镜像或加速网站
通过GitHub镜像访问:
> <https://hub.fastgit.xyz/>
>
> <https://gitclone.com/>(此镜像是直接搜索相关仓库,然后克隆)
>
> <https://ghproxy.com/>(GitHub文件、Releases、archive、gist、raw.githubusercontent.com文件代理加速下载服务)
>
> <https://toolwa.com/github/>(GitHub加速下载)
| 22.28 | 96 | 0.675045 | yue_Hant | 0.891613 |
9ffe40ae7db362d755c54c931ec121ce105ab222 | 2,538 | md | Markdown | 动漫/I Say Yes-零之使魔-双月的骑士/README.md | hsdllcw/everyonepiano-music-database | d440544ad31131421c1f6b5df0f039974521eb8d | [
"MIT"
] | 17 | 2020-12-01T05:27:50.000Z | 2022-03-28T05:03:34.000Z | 动漫/I Say Yes-零之使魔-双月的骑士/README.md | hsdllcw/everyonepiano-music-database | d440544ad31131421c1f6b5df0f039974521eb8d | [
"MIT"
] | null | null | null | 动漫/I Say Yes-零之使魔-双月的骑士/README.md | hsdllcw/everyonepiano-music-database | d440544ad31131421c1f6b5df0f039974521eb8d | [
"MIT"
] | 2 | 2021-08-24T08:58:58.000Z | 2022-02-08T08:22:52.000Z |
I SAY YES为日本动画TV零之使魔之双月的骑士的主题歌。
《零之使魔-双月的骑士》(Zero no Tsukaima: Futatsuki no Kishi)
日文名: ゼロの使い魔 ~双月の骑士~
监督:红优
制作·发行:J.C. Staff
出品年份: 2007-07-08
总共集数: 12 [TV]
### I SAY YES歌词:
I SAY YES ずっと 君の傍にいるよ
I say yes zu tto ki mi no so ba ni i ru yo
我愿答应你 永远陪伴在你身边
どんな未来が仆らを试したって きっと
do n na mi ra i ga bo ku ra o ta me shi ta tte ki tto
无论未来会给予我们怎样的考验 一定能够…
Ah ふたりの运命 めぐり逢えたのは
Ah fu ta ri no u n me i me gu ri a e ta no wa
我们的命运之所以会偶然相遇
君の声 聴こえたから
ki mi no ko e ki ko e ta ka ra
是因为我听见了你的呼唤
そう ピンチな出来事 押し寄せて来ても
so u pi n chi na de ki ko to o shi yo se te ki te mo
即使危机不断向我们袭来
君といれば 乗り越えられる
ki mi to i re ba no ri ko e ra re ru
只要与你相伴就能够一同跨越
ときめきと 负けん気と
to ki me ki to ma ke n ki to
无论是心动的我 还是好强的我
裏腹でハラハラするけど
u ra ha ra de ha ra ha ra su ru ke do
口是心非的我 其实是为你担忧
STAY WITH ME ただ 君を守りたいよ
stay with me ta da ki mi o ma mo ri ta i yo
留下来陪我 我只希望将你守护
远い世界で生まれたふたりだけど
to o i se ka i de u ma re ta fu ta ri da ke do
哪怕我们来自于相隔遥远的世界
I SAY YES ずっと 君の傍にいるよ
I say yes zu tto ki mi no so ba ni i ru yo
我愿答应你 永远陪伴在你身边
どんな未来も希望に変えよう Forever
do n na mi ra i mo ki bo u ni ka e yo o Forever
无论未来会给予我们怎样的考验 直到永远…
Ah たとえばこの恋 魔法だとしても
Ah ta to e ba ko no ko i ma ho o da to si te mo
即使这份爱情只是魔法的结果
永远に解けないはず
e i e n ni to ke na i ha su
它的效果也永远不会消失
そう もどれやしないよ 遥かなあの日に
so u mo do re ya si na i yo ha ru ka na a mo hi ni
再也不要回到遥远的往日
君と出会う前の自分に
ki mi to de a u ma e no ji bu n ni
不要变回与你相遇之前的自己
ひたむきで 生意気で
hi ta mu ki de na ma i ki de
无论是专注的我 还是任性的我
时々はドキドキするけど
to ki to ki wa do ki do ki su ru ke do
有的时候 还是会为你心跳加速
STAY WITH ME もう ひとりにはしないよ
Stay with me mo o hi to ri ni wa shi na i yo
留下来陪我 我再也不会扔下你
奇迹みたいに出会えた仆らだから
ki se ki mi ta i ni de a e ta bo ku ra da ka ra
因为我们的相遇就好像奇迹一般
I SAY YES ずっと 君を支えたいよ
I say yes zu tto ki mi wo sa sa e ta i yo
我愿答应你 永远成为你的依靠
时间がすべての景色をかえても Forever
to ki ga su be te no ke shi ki o ka e te mo Forever
哪怕周遭的一切都被时光所改变 直到永远…
强がりで 弱虫で
tsu yo ga ri de yo wa mu shi de
无论是逞强的我 还是软弱的我
裏腹でハラハラするけど
u ra ha ra de ha ra ha ra su ru ke do
口是心非的我 其实是为你担忧
STAY WITH ME ただ 君を守りたいよ
stay with me ta da ki mi wo ma mo ri ta i yo
留下来陪我 我只希望将你守护
远い世界で生まれたふたりだけど
to o i se ka i de u ma re ta fu ta ri da ke do
哪怕我们来自于相隔遥远的世界
STAY WITH ME もう ひとりにはしないよ
Stay with me mo o hi to ri ni wa shi na i yo
留下来陪我 我再也不会扔下你
奇迹みたいに出会えた仆らだから
ki se ki mi da i ni de a e ta bo ku ra da ka ra
因为我们的相遇就好像奇迹一般
I SAY YES ずっと 君の傍にいるよ
I say yes zu tto ki mi no so ba ni i ru yo
我愿答应你 永远陪伴在你身边
どんな未来も希望に変えよう Forever
do n na mi ra i mo ki bo u ni ka e yo u Forever
无论未来会给予我们怎样的考验 直到永远…
| 12.753769 | 53 | 0.71907 | diq_Latn | 0.437622 |
9ffe726196237b7901c0b359c0cfc5bea8cea339 | 463 | md | Markdown | README.md | thezoid/UnityTalentTree | f09f6ba526897e250ecfd46761e148cc7321ba07 | [
"MIT"
] | 9 | 2019-05-20T14:55:23.000Z | 2021-12-30T03:34:05.000Z | README.md | thezoid/UnityTalentTree | f09f6ba526897e250ecfd46761e148cc7321ba07 | [
"MIT"
] | null | null | null | README.md | thezoid/UnityTalentTree | f09f6ba526897e250ecfd46761e148cc7321ba07 | [
"MIT"
] | null | null | null | # UnityTalentTree
A free, open source talent tree for Unity
# How To Use
Download the ZIP and extract it. Take the contents of the TalentTree folder and place it in your project folder. Open the scene to see how to use the talent system.
To create your own talent, create your own class that extends the trait class.
# Permission
This is licensed under the MIT license, and is free to use for any purpose, including commercial, as long as credit is atributed.
| 42.090909 | 164 | 0.784017 | eng_Latn | 0.999803 |
9fff75dd59622428917d50b5316125c4b205d160 | 238 | md | Markdown | extensions/dock/CHANGELOG.md | blessanm86/extensions | 1486d8efb0137f793c64cc2327bd729110c57dfa | [
"MIT"
] | null | null | null | extensions/dock/CHANGELOG.md | blessanm86/extensions | 1486d8efb0137f793c64cc2327bd729110c57dfa | [
"MIT"
] | null | null | null | extensions/dock/CHANGELOG.md | blessanm86/extensions | 1486d8efb0137f793c64cc2327bd729110c57dfa | [
"MIT"
] | null | null | null | # Dock Changelog
## [Initial Version] - 2022-04-12
- Added one click "Move Dock To The Left" command
- Added one click "Move Dock To The Right" command
- Added one click "Move Dock To The Bottom" command
Thanks to Koin for your icons.
| 23.8 | 51 | 0.726891 | eng_Latn | 0.962575 |
9fffb20e673ef4913fcee9b0f9fbcf2302a47814 | 5,333 | md | Markdown | source/_posts/Voice-over-for-OSX-Keyboard-Shortcuts.md | CatherineLiyuankun/Hexo-theme-zilan | 5ec8faa6c32dc6e23b4b6e8eaed4ae53c59cc21f | [
"Apache-2.0"
] | 6 | 2018-08-23T10:09:20.000Z | 2022-01-08T16:55:41.000Z | source/_posts/Voice-over-for-OSX-Keyboard-Shortcuts.md | CatherineLiyuankun/Hexo-theme-zilan | 5ec8faa6c32dc6e23b4b6e8eaed4ae53c59cc21f | [
"Apache-2.0"
] | 2 | 2019-04-01T03:49:57.000Z | 2020-04-17T08:09:03.000Z | source/_posts/Voice-over-for-OSX-Keyboard-Shortcuts.md | CatherineLiyuankun/Hexo-theme-zilan | 5ec8faa6c32dc6e23b4b6e8eaed4ae53c59cc21f | [
"Apache-2.0"
] | 5 | 2018-12-06T08:16:15.000Z | 2019-09-02T13:25:34.000Z | ---
title: Voice over for OSX Keyboard Shortcuts
catalog: true
date: 2019-01-21 18:20:07
subtitle:
header-img: "https://github.com/CatherineLiyuankun/PictureBed/raw/master/blog/post/Voice-over-for-OSX-Keyboard-Shortcuts/header-VoiceOver.png"
tags:
- Voice over
categories:
- TECH
- FrontEnd
- Accessibility
---
# Basic
| Task |Command| |
| --- | --- | --- |
| VO | Control 键 + Option 键 | |
| turn VoiceOver on or off | Command-F5 or Fn-Command-F5
| or hold Command and triple-press Touch ID on supported models1 |
| 教程 | VO-Command-F8 | |
| Keyboard Help | VO-K | |
| Activate Link| Enter| |
| Activate button | Enter or Space Bar| |
| Read next/previous item | VO + Right/Left Arrow| |
| Go to next heading | VO + Command + H| |
| Go to next table | VO + command + T| |
| Go to previous (heading, table, etc.) | VO + Command + [H, T, etc.] | |
| Interact with (go into/out of) objects(like iframes, menus, application regions, etc.) | VO + Shift + Down/Up Arrows| |
| Dock | VO-D | To move between icons in the Dock, press VO-Left Arrow or VO-Right Arrow |
| mac menu bar | VO-M | navigate to the status menus, press VO-M-M. |
| Lock (or unlock) VO keys | VO + | |
| Adjust the Voice | | |
| | VO-Command-Shift-Right Arrow several times| start setting |
| | VO-Command-Shift-Up/Down Arrow | increase/decrease the setting’s value |
# Navigation
| Task |Command| |
| --- | --- | --- |
| Go to next/previous focusable item | Tab / Shift + Tab|(link, button, input, etc.) |
| Move to the next control when a text field is selected | Control-Tab
| Move the focus to the previous grouping of controls | Control-Shift-Tab| |
| Move to the adjacent item in a list, tab group, or menu;Move sliders and adjusters (Up Arrow to increase values, Down Arrow to decrease values) | Arrow keys| |
| move the VoiceOver cursor | VO-Up/Down/Left/Right Arrow | |
| Move to a control adjacent to the text field | Control–Arrow keys| |
| Click the default button or perform the default action | Return or Enter| |
| Click the Cancel button or close a menu without choosing an item| Esc| |
|Navigate Webpages|VO + U| Open rotor (see explanation below) | |
|auto web spot|VO-Command-N / VO-Command-Shift-N|To jump to the next or previous auto web spot |
| VO-Right/Left Arrow|To move to the item before or after an auto web spot||
| select controls | VO-Space | interact with checkboxes, radio buttons, pop-up menus, and other onscreen controls |
| start/stop Interact with Elements | VO-Shift-Down/Up Arrow | |
| Next link | VO + command + L| |
| Next visited link| VO + command + V| |
| Next form control | VO + command + J| |
| Next list | VO + command + X| |
| Next graphic | VO + command + G| |
| Move the focus to the previous panel | Control-Shift-F6| |
| Move to the status menu in the menu bar| Control-F8
| Activate the next open window in the front app| Command-Accent (`) | |
| Activate the previous open window in the front app| Shift-Command-Accent (`)| |
| Move the focus to the window drawer| Option-Command-Accent (`)| |
# Data Tables
| Task |Command| |
| --- | --- | --- |
| Go to next table | VO + command + T | |
| Read column header | VO + C | |
| Read row header | VO + R | /row from VO cursor location to end of row |
| read a table column| VO-C-C| |
| read a row| VO-R-R| |
| Read column from VO cursor location to bottom of column | VO + R + C | |
| Navigate table cells | O + Arrow Keys ( or  or  or  )| |
# Reading
| Task |Command| |
| --- | --- | --- |
| Start reading | VO + A| |
| Stop reading | Control| |
| Read next item VO + Right Arrow
| Read previous item VO + Left Arrow
| Read paragraph VO + P
| Read sentence VO + S
| Read word (press W multiple times to spell words alphabetically and phonetically) | VO + W| |
| Read from top to current location | VO + B| |
| Jump to top of page (on desktop keyboard) | VO + Home| | | |
| Jump to top of page (on laptop keyboards) | VO + fn + Left Arrow| |
| Jump to bottom of page (on desktop keyboard) | VO + End| |
| Jump to bottom of page (on laptop keyboards) | VO + fn + Right Arrow| |
| Select speech setting option (speaking rate, voice, pitch, etc.) | VO + command + Right Arrow / Left Arrow| |
| Modify the selected speech setting | VO + command + Up Arrow / Down Arrow| |
# Multi-Touch Trackpad
| Task |Command|
| --- | --- |
| enable/disable the Trackpad Commander | VO + rotate two fingers clockwise/counter clockwise on the trackpad |
| move to the next or previous item | flick right or left |
| start or stop interacting with the current item | flick two fingers right or left |
| select the current item | double tap |
# Reference links
https://dequeuniversity.com/screenreaders/voiceover-keyboard-shortcuts
https://support.apple.com/en-gb/HT204434
| 47.19469 | 588 | 0.689856 | eng_Latn | 0.9101 |
b00010f705e44ea427888330b72bed735d0edc21 | 294 | md | Markdown | day114/day114.md | wuyinlei/WorkSmart | fa691c6cf2448e19fece78507cd47b57427863af | [
"Apache-2.0"
] | null | null | null | day114/day114.md | wuyinlei/WorkSmart | fa691c6cf2448e19fece78507cd47b57427863af | [
"Apache-2.0"
] | null | null | null | day114/day114.md | wuyinlei/WorkSmart | fa691c6cf2448e19fece78507cd47b57427863af | [
"Apache-2.0"
] | null | null | null | # day114
标签(空格分隔): 每日计划
---
##时间--2017年7月9号
###学习时间<br>
* IM即时通讯的学习
###阅读文章<br>
* [Android 获取WebView的内容宽度高度][1]
###每日工作<br>
* 休息
###开源项目规划
* 完成聊天图片发送
* 完成聊天语音发送(有bug)
* 完成聊天表情发送
* 完成聊天表情、语音、图片面板平滑切换
[1]: http://blog.csdn.net/aoshiwenrou/article/details/43228173
| 12.25 | 65 | 0.608844 | yue_Hant | 0.153935 |
b0003e46e1f8f3b7576cc4de419d68e1d1008b7f | 1,450 | md | Markdown | 2020/08/13/2020-08-13 17:55.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | 3 | 2020-07-14T14:54:15.000Z | 2020-08-21T06:48:24.000Z | 2020/08/13/2020-08-13 17:55.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | null | null | null | 2020/08/13/2020-08-13 17:55.md | zhzhzhy/WeiBoHot_history | 32ce4800e63f26384abb17d43e308452c537c902 | [
"MIT"
] | null | null | null | 2020年08月13日17时数据
Status: 200
1.张雨绮身材
微博热度:3226785
2.天眼被注册为烟草商标
微博热度:1441033
3.这世界值得放手一信
微博热度:1431678
4.浙大女生被害案罪犯被执行死刑
微博热度:1425440
5.张若昀 胡编别人女儿小名什么爱好
微博热度:1397874
6.飞科发现未来黄晓明助力
微博热度:1290672
7.杨幂魏大勋
微博热度:1282603
8.北京暴雨有群人一夜无眠
微博热度:998811
9.董明珠回应雷军认输
微博热度:905212
10.赵立坚吐槽蓬佩奥像打了鸡血
微博热度:876972
11.原来吃火锅还可以这样解说
微博热度:855218
12.6岁男童泳池溺水3分钟无人救
微博热度:785235
13.张玉环领取到临时身份证
微博热度:735624
14.江西入室杀两人嫌犯又杀一人
微博热度:653170
15.刘诗诗侧脸生图
微博热度:561215
16.天津67岁男子持刀行凶被批捕
微博热度:495365
17.宁夏大学连续5年手写录取通知书
微博热度:490762
18.微信拍一拍可撤回
微博热度:490731
19.R1SE换手绘头像
微博热度:489585
20.抖音快手回应大胃王吃播
微博热度:488198
21.逆水寒
微博热度:486822
22.乐山大佛佛脚平台被淹
微博热度:483950
23.特朗普称哈里斯和拜登都是社会主义者
微博热度:455505
24.易烊千玺粉雾海
微博热度:397247
25.北京新发地市场不再向个人开放
微博热度:396046
26.陕西的车牌上是兵马俑
微博热度:379280
27.再大的橡皮都有丢失的一天
微博热度:378244
28.东部战区在台湾海峡实战演练
微博热度:322151
29.脚艺人
微博热度:309318
30.公交司机打不还手获委屈奖
微博热度:308755
31.江西警方悬赏30万缉拿曾春亮
微博热度:261549
32.颜怡颜悦脚本 催婚
微博热度:259879
33.印度一公司推行带薪月经假
微博热度:241445
34.中国人民抗日战争胜利75周年
微博热度:236788
35.杨天真发文
微博热度:235524
36.桂花糯米甜酒冰酪
微博热度:235466
37.吃播
微博热度:228307
38.乘风破浪的姐姐复活赛名单
微博热度:224820
39.学校回应主任贪污学生伙食费131万
微博热度:202696
40.陈建新
微博热度:186709
41.女心理师
微博热度:184871
42.流浪犬跑警队找工作
微博热度:159812
43.3200根筷子搭出古风建筑
微博热度:154274
44.北京新发地复市
微博热度:153506
45.FPX V5
微博热度:149736
46.杀害狱警刺伤法官案罪犯被执行死刑
微博热度:145030
47.张文宏谈中外防疫最大区别在小区
微博热度:142600
48.赵立坚借捷克谚语回应美反共反华言论
微博热度:141831
49.生活在树上
微博热度:138777
50.西安进口白虾包装部分样本新冠阳性
微博热度:127709
| 7.107843 | 20 | 0.787586 | yue_Hant | 0.369231 |
b000a9e500aa11e6363f2da31145768958959679 | 63 | md | Markdown | README.md | GeekAthelon/soi_countdown_timer | a5f449ef832cd06fd6ca04ff6fea65d94071dfe1 | [
"MIT"
] | null | null | null | README.md | GeekAthelon/soi_countdown_timer | a5f449ef832cd06fd6ca04ff6fea65d94071dfe1 | [
"MIT"
] | null | null | null | README.md | GeekAthelon/soi_countdown_timer | a5f449ef832cd06fd6ca04ff6fea65d94071dfe1 | [
"MIT"
] | null | null | null | # soi_countdown_timer
A count-down timer to be embedded in SOI
| 21 | 40 | 0.809524 | eng_Latn | 0.997068 |
b001d131bcb32c4695e0b23a19c8132fd98b8d00 | 881 | md | Markdown | TOP.md | rhdeck/walletcluster | c7653dac9f6befb49f2e15e162a5b5f003291f9c | [
"MIT"
] | 1 | 2021-11-30T09:11:54.000Z | 2021-11-30T09:11:54.000Z | TOP.md | rhdeck/walletcluster | c7653dac9f6befb49f2e15e162a5b5f003291f9c | [
"MIT"
] | null | null | null | TOP.md | rhdeck/walletcluster | c7653dac9f6befb49f2e15e162a5b5f003291f9c | [
"MIT"
] | null | null | null | Wallet cluster analyzer
# walletcluster
## Usage (for now)
1. Clone this repo
2. Run `yarn`
3. Run `yarn execute` with arguments of your target addresses. use flags -s for starting block and -e for ending block (defaults to looking at full chain)
```bash
git clone https://github.com/rhdeck/walletcluser
cd walletcluster
yarn
yarn execute 0xdac17f958d2ee523a2206206994597c13d831ec7 0x2b591e99afe9f32eaa6214f7b7629768c40eeb39 # compares Tether to Hex
```
Note that this runs without an API key, so we throttle the requests to make sure they all go.
Also right now this is limited to the first 10,000 transactions on each smartcontract within the specified window. So the intersect will be for wallets involved in one or more of the (up to) 10,000 transactions on both tokens.
Finally, this is restricted to ERC20 fungible tokens - this will not work for NFTs at this time.
| 38.304348 | 226 | 0.788876 | eng_Latn | 0.996295 |
b001ff658931f08be8f2ea9dd75ce087e995d077 | 212 | md | Markdown | _posts/2020-03-03-css-width-height.md | vimsiin/minyeongchung.github.io | c96f59f02b8a2644bcac91a0634dbee50bf2612d | [
"MIT"
] | 2 | 2020-03-11T04:06:36.000Z | 2020-11-27T07:56:36.000Z | _posts/2020-03-03-css-width-height.md | vimsiin/vimsiin.github.io | c96f59f02b8a2644bcac91a0634dbee50bf2612d | [
"MIT"
] | 2 | 2021-09-28T04:25:04.000Z | 2022-02-26T09:02:04.000Z | _posts/2020-03-03-css-width-height.md | minyeong97/vimsiin.github.io | c96f59f02b8a2644bcac91a0634dbee50bf2612d | [
"MIT"
] | null | null | null | ---
layout: post
title: css width height
categories: [web]
---
css를 사용해서 특정 요소의 크기를 정하는 방법이다. 방법은 다음과 같다.
```
#some-id {
width: 20px;
height: 70%;
overflow-x: auto;
overflow-y: hidden;
}
```
와 같이 할 수 있다.
| 10.6 | 42 | 0.617925 | kor_Hang | 0.999981 |
b0023591fc6a83a364652406c3a3e8d2fc56aa70 | 3,621 | md | Markdown | articles/expressroute/expressroute-about-virtual-network-gateways.md | OpenLocalizationTestOrg/azure-docs-pr15_hu-HU | ac1600ab65c96c83848e8b2445ac60e910561a25 | [
"CC-BY-3.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/expressroute/expressroute-about-virtual-network-gateways.md | OpenLocalizationTestOrg/azure-docs-pr15_hu-HU | ac1600ab65c96c83848e8b2445ac60e910561a25 | [
"CC-BY-3.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/expressroute/expressroute-about-virtual-network-gateways.md | OpenLocalizationTestOrg/azure-docs-pr15_hu-HU | ac1600ab65c96c83848e8b2445ac60e910561a25 | [
"CC-BY-3.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | <properties
pageTitle="Információ készült ExpressRoute virtuális hálózati átjárók |} Microsoft Azure"
description="Készült ExpressRoute átjáró virtuális hálózati találhat."
services="expressroute"
documentationCenter="na"
authors="cherylmc"
manager="carmonm"
editor=""
tags="azure-resource-manager, azure-service-management"/>
<tags
ms.service="expressroute"
ms.devlang="na"
ms.topic="article"
ms.tgt_pltfrm="na"
ms.workload="infrastructure-services"
ms.date="10/03/2016"
ms.author="cherylmc" />
# <a name="about-virtual-network-gateways-for-expressroute"></a>Tudnivalók a virtuális hálózati átjárókat készült ExpressRoute
A virtuális hálózati átjáró hálózati forgalmának engedélyezésére Azure virtuális hálózatok között küldi és a helyszíni helyek. Ha készült ExpressRoute kapcsolat beállítása, létrehozása és konfigurálnia kell a virtuális hálózati átjáró és az átjáró virtuális hálózati kapcsolaton.
A virtuális hálózati átjáró létrehozásakor számos beállítást adja meg. A szükséges beállításokat egyik Itt adhatja meg, hogy az átjáró használható készült ExpressRoute vagy a webhely VPN-forgalmat. Az erőforrás-kezelő telepítési modell a értéke "-GatewayType".
Hálózati forgalmának engedélyezésére saját személyes kapcsolat küldésekor az átjáró típus "Készült ExpressRoute" használata. Ez akkor is nevezik egy készült ExpressRoute átjáró. Hálózati forgalmat a nyilvános interneten keresztül küldött titkosított, az átjáró típus "Vpn" használata. Ez egy virtuális Magánhálózati átjárót nevezik. Webhely webhely, webhely pont- és VNet-VNet kapcsolatok összes használja egy virtuális Magánhálózati átjárót.
Minden egyes virtuális hálózati beállíthatja, hogy csak egy virtuális hálózati átjáró átjáró típusonként. Ha például lehet egy virtuális hálózati átjáró - GatewayType Vpn használó és - GatewayType készült ExpressRoute használó. Ez a cikk a virtuális hálózati készült ExpressRoute átjáró szolgáltatásaival.
## <a name="gwsku"></a>Átjáró SKU
[AZURE.INCLUDE [expressroute-gwsku-include](../../includes/expressroute-gwsku-include.md)]
Ha szeretne egy nagyobb teljesítményű átjáró Termékváltozat az átjáró frissítése, a legtöbb esetben is használhatja a "Átméretezés-AzureRmVirtualNetworkGateway" PowerShell-parancsmag. Ez az Standard és HighPerformance termékváltozatok frissítésekhez működni fog. Azonban a UltraPerformance Termékváltozat frissítéséhez szüksége lesz az átjáró újra.
### <a name="aggthroughput"></a>Becsült összesítő átviteli átjáró Termékváltozat szerint
A következő táblázat mutatja az átjáró-típusok és a becsült összesítő kapacitása. Az alábbi táblázat az erőforrás-kezelő és a klasszikus telepítési modellek vonatkozik.
[AZURE.INCLUDE [expressroute-table-aggthroughput](../../includes/expressroute-table-aggtput-include.md)]
## <a name="resources"></a>REST API-hoz és a PowerShell-parancsmagok
További technikai források és adott szintaxiskövetelmények REST API-hoz és a PowerShell-parancsmagok használata virtuális hálózati átjáró konfigurációk esetén című témakörben talál az alábbi lapokon:
|**Klasszikus** | **Erőforrás-kezelő**|
|-----|----|
|[A PowerShell](https://msdn.microsoft.com/library/mt270335.aspx)|[A PowerShell](https://msdn.microsoft.com/library/mt163510.aspx)|
|[REST API-VAL](https://msdn.microsoft.com/library/jj154113.aspx)|[REST API-VAL](https://msdn.microsoft.com/library/mt163859.aspx)|
## <a name="next-steps"></a>Következő lépések
Elérhető a kapcsolat konfigurációk kapcsolatos további tudnivalók a [Készült ExpressRoute áttekintése](expressroute-introduction.md) című témakörben találhat.
| 55.707692 | 443 | 0.802817 | hun_Latn | 1.000004 |
b00236a84979d54add7d746e363d74f6c756b779 | 974 | md | Markdown | documentation/documenting-it.md | aanno/tp-link-list | fa56cd6e84062fd4ff69c2f6149552b13f1337bc | [
"Apache-2.0"
] | 1 | 2019-05-06T00:42:40.000Z | 2019-05-06T00:42:40.000Z | documentation/documenting-it.md | aanno/tp-link-list | fa56cd6e84062fd4ff69c2f6149552b13f1337bc | [
"Apache-2.0"
] | null | null | null | documentation/documenting-it.md | aanno/tp-link-list | fa56cd6e84062fd4ff69c2f6149552b13f1337bc | [
"Apache-2.0"
] | 1 | 2020-11-19T05:01:58.000Z | 2020-11-19T05:01:58.000Z | # Documenting IT
## Architecture
* https://en.wikipedia.org/wiki/C4_model
+ https://c4model.com/
* https://arc42.org/documentation/
### diagrams and modelling
see `diagrams-modelling.md`
### Architecture and Docs-as-Code
(for wikis, see `wiki.md`)
* https://www.oio.de/m/konf/diverse/Kontinuierliche-Architekturdokumentation-JavaLand2017.pdf
* https://docs-as-co.de/
* https://www.informatik-aktuell.de/entwicklung/methoden/docs-as-code-die-werkzeuge.html
#### Docs-as-Code tools
* [antora](https://antora.org/)
+ https://datahandwerk.aisberg.de/2021-04-20-docs-code-mit-asciidoc-und-antora/
+ https://medium.com/codeshake/replace-your-wiki-with-a-documentation-site-4f0da329fe92
* https://github.com/docToolchain/docToolchain
* https://structurizr.org/ toolchain and rendering for c4model
* https://github.com/docsifyjs/docsify _dynamic_ site generator (alternative to jamstack), many plugins
+ https://docsify.js.org/#/
## QA
* https://jqassistant.org/
| 28.647059 | 103 | 0.74538 | yue_Hant | 0.635072 |
b0034c3c58b8a414c34354919da91948337ddaf9 | 597 | md | Markdown | README.md | tasbolat1/pid | 7f983c10625c4467891fe0384715312875a508a3 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T03:17:26.000Z | 2022-01-06T03:17:26.000Z | README.md | tasbolat1/pid | 7f983c10625c4467891fe0384715312875a508a3 | [
"BSD-3-Clause"
] | null | null | null | README.md | tasbolat1/pid | 7f983c10625c4467891fe0384715312875a508a3 | [
"BSD-3-Clause"
] | null | null | null | # pid
PID controller for tactile
### setup BioTac
rosrun biotac_sensors biotac_pub
### setup calibration
rosrun biotac_logger biotac_logger_v3.py
### in another terminal, type
rostopic pub -1 /biotac_sub std_msgs/String "calibrate"
### setup tuned PID
roslaunch pid tactile_pid.launch
### run helper. In pid_helper set goal
rosrun pid pid_helper.py _input:=input _output:=output
### set robotiq rtu timeout to 0.00465
open robotiq/robotiq_modbus_rtu/src/robotic_modbus_rtu.py
self.client = ModbusSerialClient(method='rtu',port=device,stopbits=1, bytesize=8, baudrate=115200, timeout=0.00465)
| 31.421053 | 115 | 0.792295 | eng_Latn | 0.260616 |
b0039ab65a675a2d9186a67e8fb81ff53804a6f9 | 6,601 | md | Markdown | README.md | textcreationpartnership/N24662 | 5eb8a736f728cb67f2e3dbca77455fcfeea5e303 | [
"CC0-1.0"
] | null | null | null | README.md | textcreationpartnership/N24662 | 5eb8a736f728cb67f2e3dbca77455fcfeea5e303 | [
"CC0-1.0"
] | null | null | null | README.md | textcreationpartnership/N24662 | 5eb8a736f728cb67f2e3dbca77455fcfeea5e303 | [
"CC0-1.0"
] | null | null | null | #Certificates of the efficacy of Doctor Perkins's patent metallic instruments.#
Certificates of the efficacy of Doctor Perkins's patent metallic instruments.
##General Summary##
**Links**
[TCP catalogue](http://www.ota.ox.ac.uk/tcp/) •
[HTML](http://tei.it.ox.ac.uk/tcp/Texts-HTML/free/N24/N24662.html) •
[EPUB](http://tei.it.ox.ac.uk/tcp/Texts-EPUB/free/N24/N24662.epub)
**Availability**
This keyboarded and encoded edition of the
work described above is co-owned by the institutions
providing financial support to the Early English Books
Online Text Creation Partnership. This Phase I text is
available for reuse, according to the terms of Creative
Commons 0 1.0 Universal. The text can be copied,
modified, distributed and performed, even for
commercial purposes, all without asking permission.
**Major revisions**
1. __2007-05__ __TCP__ *Assigned for keying and markup*
1. __2007-08__ __AEL Data (Chennai)__ *Keyed and coded from Readex/Newsbank page images*
1. __2007-11__ __Olivia Bottum__ *Sampled and proofread*
1. __2007-11__ __Olivia Bottum__ *Text and markup reviewed and edited*
1. __2008-02__ __pfs.__ *Batch review (QC) and XML conversion*
##Content Summary##
#####Front#####
1. TO THE PUBLIC.
#####Body#####
1. CERTIFICATES, &c.
_ GEN. TYLER, AND MR. LORD.
_ MR. NATHAN GLOVER, & MR. AMOS SIMONS.
_ CAPT. JOSHUA BOTTUM.
_ MR. AND MRS. SNOW.
_ MRS. STERNS.
_ DOCTOR RUFUS JOHNSON, A Member of the Medical Society of the State of Connecticut.
_ DOCTOR T. BACKUS, Member of the Medical Society, of the State of Connecticut.
_ DOCTOR JAREB DYER, Member of the Medical Society of the State of Connecticut, and Surgeon to the 21ſt Regiment.
_ DOCTOR EBENEZER ROBINSON.
_ CART. CYRUS SPAULDING.
_ REV. JOEL BENEDICT.
_ REV. WALTER KING.
_ REV. SOLOMON MORGAN.
_ REV. ELHANAN WINCHESTER.
_ REV. MICAIAH PORTER.
Windham County,Aug. 16, 1796.WE the ſubſcribers certify, that from a variety of caſes, which have oc
_ Extract of a letter from John Vaughan, M. D. State of Delaware.
_ CALVIN GODDARD, ESQ.
_ REV. JOSEPH DANA.
_ MR. NATHAN PEIRCE, Maſter of the Alms-Houſe, Newburyport,
_ REV. LEVI HART.
_ REV. CALEB BRADLEY, and Dr. JAMES GOSS.
_ MR. EDWARD HILL.
_ COL. JONATHAN GLOVER.
_ MR. CONSTANT FREEMAN, Maſter of the Almshouſe, Boſton.
1. EXTRACTS FROM LETTERS.
_ MR. JOHN PUNCHARD.
_ JAMES GLOVER, Eſq—Norwich, County of Tioga, State of New-York, Sept. 19, 1796.
_ REV. WALTER KING.
_ REV. DR. ROBBINS, of Plymouth.
_ BEZALEEL WOODWARD, Eſq. Profeſſor of Philoſophy and Mathematics, Dartmouth College.
_ REV. DOCTOR STILLMAN, of Boſton.
_ PIERPOINT EDWARDS, ESQ. Diſtrict Attorney for the State of Connecticut.
MANY other certificates and letters might have been inſerted relative to the diſcuſſion of biles and
**Types of content**
* Oh, Mr. Jourdain, there is **prose** in there!
There are 4 **ommitted** fragments!
@__reason__ (4) : illegible: indecipherable (4) • @__extent__ (4) : 1 span (1), 1 word (3)
**Character listing**
|Text|string(s)|codepoint(s)|
|---|---|---|
|Latin Extended-A|ſ|383|
|General Punctuation|—…|8212 8230|
|Geometric Shapes|◊|9674|
|CJKSymbolsandPunctuation|〈〉|12296 12297|
##Tag Usage Summary##
###Header Tag Usage###
|No|element name|occ|attributes|
|---|---|---|---|
|1.|__author__|1||
|2.|__availability__|1||
|3.|__biblFull__|1||
|4.|__change__|5||
|5.|__date__|7| @__when__ (1) : 2008-09 (1)|
|6.|__editorialDecl__|1||
|7.|__extent__|2||
|8.|__idno__|6| @__type__ (6) : DLPS (1), TCP (1), STC (1), NOTIS (1), IMAGE-SET (1), EVANS-CITATION (1)|
|9.|__keywords__|1| @__scheme__ (1) : http://authorities.loc.gov/ (1)|
|10.|__label__|5||
|11.|__langUsage__|1||
|12.|__language__|1| @__ident__ (1) : eng (1)|
|13.|__listPrefixDef__|1||
|14.|__note__|4||
|15.|__notesStmt__|2||
|16.|__p__|11||
|17.|__prefixDef__|2| @__ident__ (2) : tcp (1), char (1) • @__matchPattern__ (2) : ([0-9\-]+):([0-9IVX]+) (1), (.+) (1) • @__replacementPattern__ (2) : http://eebo.chadwyck.com/downloadtiff?vid=$1&page=$2 (1), https://raw.githubusercontent.com/textcreationpartnership/Texts/master/tcpchars.xml#$1 (1)|
|18.|__projectDesc__|1||
|19.|__pubPlace__|2||
|20.|__publicationStmt__|2||
|21.|__publisher__|2||
|22.|__ref__|2| @__target__ (2) : https://creativecommons.org/publicdomain/zero/1.0/ (1), http://www.textcreationpartnership.org/docs/. (1)|
|23.|__seriesStmt__|1||
|24.|__sourceDesc__|1||
|25.|__term__|2||
|26.|__textClass__|1||
|27.|__title__|3||
|28.|__titleStmt__|2||
###Text Tag Usage###
|No|element name|occ|attributes|
|---|---|---|---|
|1.|__abbr__|8||
|2.|__closer__|37||
|3.|__date__|29||
|4.|__dateline__|29||
|5.|__desc__|4||
|6.|__div__|37| @__type__ (37) : title_page (1), author_to_the_reader (1), certificates (1), certificate (25), extracts_from_letters (1), letter (7), list_of_names (1)|
|7.|__g__|117| @__ref__ (117) : char:EOLhyphen (117)|
|8.|__gap__|4| @__reason__ (4) : illegible: indecipherable (4) • @__extent__ (4) : 1 span (1), 1 word (3)|
|9.|__head__|34||
|10.|__hi__|136||
|11.|__item__|50||
|12.|__label__|2||
|13.|__list__|6||
|14.|__note__|2| @__n__ (2) : * (2) • @__place__ (2) : bottom (2)|
|15.|__opener__|11||
|16.|__p__|62||
|17.|__pb__|25| @__facs__ (25) : tcp:032669_0000_0FF401A06CC2F818 (1), tcp:032669_0001_0FF3EC7B7B3374E0 (1), tcp:032669_0002_0FF401AC8A6DC8D8 (1), tcp:032669_0003_0FF401B2965DA5A0 (1), tcp:032669_0004_0FF401BA492A40A0 (1), tcp:032669_0005_0FF3EC872ED7CE58 (1), tcp:032669_0006_0FF401C119E8C448 (1), tcp:032669_0007_0FF3EC85A5632AC0 (1), tcp:032669_0008_0FF401CBCC2B6AE0 (1), tcp:032669_0009_0FF401CEC87A1310 (1), tcp:032669_0010_0FF401D1D6E7B948 (1), tcp:032669_0011_0FF401DA3318BFE0 (1), tcp:032669_0012_0FF401DF086D5170 (1), tcp:032669_0013_0FF401E5206D0680 (1), tcp:032669_0014_0FF401EB2E5FB828 (1), tcp:032669_0015_0FF3EC9DEC79E510 (1), tcp:032669_0016_0FF4005BA93FF790 (1), tcp:032669_0017_0FF40060F34EC7E8 (1), tcp:032669_0018_0FF40067DCEEB148 (1), tcp:032669_0019_0FF4006DEC208628 (1), tcp:032669_0020_0FF4007278356398 (1), tcp:032669_0021_0FF3EC110A4CC3B8 (1), tcp:032669_0022_0FF400844A6DFF88 (1), tcp:032669_0023_0FF40085EC162DB8 (1), tcp:032669_0024_0FF4008E58941188 (1) • @__n__ (21) : 4 (1), 5 (1), 6 (1), 7 (1), 8 (1), 9 (1), 10 (1), 11 (1), 12 (1), 13 (1), 14 (1), 15 (1), 16 (1), 17 (1), 18 (1), 19 (1), 20 (1), 21 (1), 22 (1), 23 (1), 24 (1)|
|18.|__postscript__|6||
|19.|__salute__|9||
|20.|__signed__|37||
|21.|__trailer__|3||
| 36.071038 | 1,161 | 0.692622 | yue_Hant | 0.572962 |
b005eae872b1de3f7c8f81abcf24e8015e6343fe | 2,519 | md | Markdown | README.md | JannikEmmerich/websocket-client | d268439be35cfbd600030097a00e0044132f4331 | [
"MIT"
] | null | null | null | README.md | JannikEmmerich/websocket-client | d268439be35cfbd600030097a00e0044132f4331 | [
"MIT"
] | null | null | null | README.md | JannikEmmerich/websocket-client | d268439be35cfbd600030097a00e0044132f4331 | [
"MIT"
] | null | null | null | # WebsocketClient
This is a simple client for developing, testing and debugging websocket servers.
## How to use
Go to [websocket-client.js.org](https://websocket-client.js.org/) and enter a websocket url.
After this is complete, you can enter some Json code and send it to the server, and in the field below you will see the server's response.
**Please note that you probably have [Cross-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) problems.**
But you can clone or [download](https://github.com/MarcelCoding/websocket-client/archive/gh-pages.zip) the `gh-pages` branch and host it yourself or serve it with a local http server (e.g. [http-server](https://www.npmjs.com/package/http-server))
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
### Prerequisites
What things you need to install the software and how to install them
* A JavaScript IDE (e.g. [IntelliJ IDEA](https://www.jetbrains.com/idea/))
* [Node 12](https://nodejs.org/) or highter
* [Yarn](https://yarnpkg.com/)
* [Angular CLI](https://cli.angular.io/)
* [Git](https://git-scm.com/)
### Configure
First you have to run `ng config -g cli.packageManager yarn` to set `Yarn` as your default package manager.
### Installing
To clone the repo run `git clone https://github.com/MarcelCoding/websocket-client.git`.
And when this is finished you can open the repo with your IDE.
### Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
### Documentation
* [Angular](https://angular.io/docs)
### Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
### Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io/).
<!---
### Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
-->
## Built With
* [Angular](https://angular.io/) - The Web Framework
* [Yarn](https://yarnpkg.com/) - The build tool
* [Karma](https://karma-runner.github.io/) - The test tool
## Authors
* [**MarcelCoding**](https://github.com/MarcelCoding/) - *Initial work*
* [**JannikEmmerich**](https://github.com/JannikEmmerich/) - *Some typos and design stuff*
| 39.984127 | 246 | 0.730052 | eng_Latn | 0.916458 |
b00611a51b69a75eaa0ab7746a6fc83452cf7e56 | 253 | md | Markdown | Help.md | datasaver/datasaver | d5c4184b02c6f6ddf53ab58384c0b37c26d81105 | [
"Apache-2.0"
] | null | null | null | Help.md | datasaver/datasaver | d5c4184b02c6f6ddf53ab58384c0b37c26d81105 | [
"Apache-2.0"
] | null | null | null | Help.md | datasaver/datasaver | d5c4184b02c6f6ddf53ab58384c0b37c26d81105 | [
"Apache-2.0"
] | null | null | null | # Markdown
## Markdown
### Markdown
#### Markdown
##### Markdown
###### Markdown
* Hello World !
* Hello World !
> Hello World !
[baidu](http://www.baidu.com)
***

while true;
do echo hehe;
done
| 11.5 | 42 | 0.596838 | kor_Hang | 0.446276 |
b0070e2d97bb75addbfcf936790ecc68e11c69f3 | 265 | md | Markdown | posts/2012/10/something-like-that-its-got-these-funny-phone.md | atmos/tumblr.atmos.org | 1865e6fe271d4c28047ac50fd4ace154be411ff1 | [
"MIT"
] | null | null | null | posts/2012/10/something-like-that-its-got-these-funny-phone.md | atmos/tumblr.atmos.org | 1865e6fe271d4c28047ac50fd4ace154be411ff1 | [
"MIT"
] | null | null | null | posts/2012/10/something-like-that-its-got-these-funny-phone.md | atmos/tumblr.atmos.org | 1865e6fe271d4c28047ac50fd4ace154be411ff1 | [
"MIT"
] | 2 | 2019-05-06T18:02:23.000Z | 2019-05-06T18:27:47.000Z | <!--
id: 34225677095
link: http://tumblr.atmos.org/post/34225677095/something-like-that-its-got-these-funny-phone
slug: something-like-that-its-got-these-funny-phone
date: Wed Oct 24 2012 04:26:04 GMT-0700 (PDT)
publish: 2012-10-024
tags:
title: undefined
-->
| 18.928571 | 92 | 0.739623 | eng_Latn | 0.296089 |
b00759b3d76ee4d049d19f04eb055e35dd7cc300 | 5,118 | md | Markdown | _wiki/intellij.md | hoonti06/hoonti06.gitlab.io | c02a3d89371d4c5de773c884632889fcdca94d51 | [
"MIT"
] | 2 | 2021-06-13T01:52:09.000Z | 2021-06-13T01:52:27.000Z | _wiki/intellij.md | hoonti06/hoonti06.gitlab.io | c02a3d89371d4c5de773c884632889fcdca94d51 | [
"MIT"
] | 4 | 2021-06-18T02:35:49.000Z | 2021-12-10T13:43:14.000Z | _wiki/intellij.md | hoonti06/hoonti06.gitlab.io | c02a3d89371d4c5de773c884632889fcdca94d51 | [
"MIT"
] | null | null | null | ---
layout : wiki
title : intellij
summary :
date : 2020-09-19 19:05:08 +0900
updated : 2021-01-04 10:10:56 +0900
tag :
public : true
published : true
parent :
latex : false
---
* TOC
{:toc}
## shortcut
- `<option> + F1` (editor, project window) : project 윈도우로 갈 수 있다.
- `<option> + <enter>` (editor window)
- static import 설정 (Add on-demand static import for 'org.assertj.core.api.Assersions')
- import 설정
- `<esc>` (project window) : editor window로 이동
- `<command> + N` (editor) : generate(getter & setter, constructor 등)
- `<command> + N` (project) : new (파일 생성)
- `<ctrl> + <shift> + R` (editor) : cursor 위치에서 run
- `<ctrl> + R` (editor) : 이전 run
- `<command> + <option> + R` (editor) : Resume Programe
- `<ctrl> + <shift> + D` (editor) : cursor 위치에서 Debug
- `<ctrl> + D` (editor) : 이전 Debug
- `<ctrl> + T` (editor) : Refactor 관련 실행 리스트가 나온다.(Preference > Editor > Vim Emulation에서 `<ctrl> + T`의 Handlder를 `IDE`로 변경한다)
- `<command> + <option> + V` (editor) : 해당 method의 리턴 타입으로 변수 생성(Extract > Indroduce Variable)
- `<command> + <option> + M` (editor) : 해당 block을 method로 추출할 수 있다.(Extract > Extract Method)
- `<command> + <option> + N` (editor) : 해당 변수를 저장하는 값으로 inline한다.(Inline Variable)
- `<command> + <option> + P` (editor) : 해당 변수를 parameter로 추출한다.(Extract > Parameter)
- `<command> + P` (editor) : method의 parameter info를 볼 수 있다. (Parameter Info)
- `<command> + <shift> + T` (editor) : 해당 클래스의 Test 클래스를 생성한다.
- `<command> + <shift> + A` (editor) : Find Action
- `<command> + <shift> + O` (editor) : Find file (Navigate -> File)
- `<command> + B` (editor) : method declaration으로 이동 (Navigate -> Go to Declaration or Usages)
- `<command> + P` (editor) : method의 parameter info를 볼 수 있다. (Parameter Info)
- `<shift> + <shift>` (editor) : 모두 찾기
- `<command> + O` (editor) : class 찾기
- `<command> + [` (editor) : 이전 위치로 이동 (Navigate -> Back)
- `<option> + space` (editor) : 해당 파일에 가지 않고 method, variable, class의 정의를 볼 수 있다. (Quick Definition)
- `<command> + E` (editor) : 최근 파일을 보여준다. (Recent Files)
- `<F1>` (editor) : Doc 즉시 보기 (Quick Document)
- `<F2>` (editor) : 오류난 곳으로 한 번에 이동 (Navigate -> Next Highlighted Error)
- `<F6>` (editor) : inner 클래스명에 커서를 두고 추출할 수 있다. (move)
- `<ctrl> + <shift> + <space>` (editor) : Class, parameter 등 smart 자동 완성 (Completion -> Start type)
- `(<ctrl> + <space>) x2` (editor) : AssertThat 자동 완성 (Completion -> basic)
- `<ctrl> + I` (editor) : override할 method들을 생성한다. (Implements Methods)
- `<option> + up` (editor) : visual 범위가 점점 늘어난다.
- `<shift> + <F6>` (editor) : Rename
- `<command> + <shift> + <F6>` (editor) : 메서드의 리턴 타입, 변수 타입 등을 변경 (Type migration)
- `<ctrl> + <option> + O` (editor) : Import 정리
- `<command> + <F8>` (editor) : Toggle Line breakpoint
- `break point 우클릭 + condition 입력` : 해당 condition을 만족할 때 break가 걸린다.
- `Debug 모드 break 걸린 상황에서 <option> + <F8>` : break 걸린 상황에서 java code를 입력하여 실행해볼 수 있다. (Evaluate Expression)
- `<option> + <F12>` : terminal 창
## Live Template
- `<Command> + J` : Live Tempate 리스트 (Insert Live Template)
- `'sout' 입력 + <enter>` (editor window & .java file) : System.out.println() 자동 완성
- `'psvm' 입력 + <enter>` (editor window & .java file) : main method 자동 완성
## ideavim
- $HOME/.ideavimrc
- source ~/.ideavimrc : ideavimrc 새로고침
- plugin
- [ideaVim-EasyMotion](https://github.com/AlexPl292/IdeaVim-EasyMotion)
- 단어 단위로 쉽게 이동할 수 있다.
- Setup
- Install [IdeaVim-EasyMotion](https://plugins.jetbrains.com/plugin/13360-ideavim-easymotion)
and [AceJump](https://plugins.jetbrains.com/plugin/7086-acejump) plugins.
- `set easymotion` (.ideavimrc)
- Emulates [vim-easymotion](https://github.com/easymotion/vim-easymotion)
- [Commands](https://github.com/AlexPl292/IdeaVim-EasyMotion#supported-commands)
- <ll>w : 커서 뒤에 있는 단어들
- <ll>W : 커서 뒤에 있는 단어들
- <ll>b : 커서 앞에 있는 단어들
- <ll>B : 커서 앞에 있는 단어들
- 참고)
- <ll>은 mapleader를 두 번 입력한 것으로, 본인은 mapleader를 ','로 설정해놨다.
- surround
- 괄호와 따옴표 등을 추가, 변경 및 삭제할 수 있다.
- Setup
- `set surround` (.ideavimrc)
- Emulates [vim-surround](https://github.com/tpope/vim-surround)
- Commands
- `ysiw"` : 해당 단어를 \"로 감싼다.
- `ysi3w"` : 3개 단어를 묶어 \"로 감싼다.
- `cs"'` : \"를 \'로 변경한다. (괄호도 된다)
- `ds{` : \{ 괄호를 삭제한다. (\}로 해도 된다)
- multiple-cursors
- cursor가 여러 개 떠서 한 번에 변경이 가능하다(어떻게 사용하는지는 모르겠다).
- Setup: `set multiple-cursors` (.ideavimrc)
- Emulates [vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors)
- Commands
- `<A-n>`
- `<A-x>`
- `<A-p>`
- `g<A-n>`
- commentary
- 주석 처리를 쉽게 하도록 도와준다(쓸모가 있는지 잘 모르겠다).
- Setup
- `set commentary` (.ideavimrc)
- Emulates [commentary.vim](https://github.com/tpope/vim-commentary)
- Commands
- `gcc`
- `gc + motion`
- `v_gc`
- By [Daniel Leong](https://github.com/dhleong)
- 설정
- method usage 보이기 : preference > Editor > Inlay Hints > Java > Code vision > [x] Usages
## plugins
- material
- lombok
## 설정
- `Enable Annotaion Processing` check
- `find action`에서 `optimize import on the fly current project` check
| 40.299213 | 125 | 0.614889 | kor_Hang | 0.988341 |
b00787052c3f27af697454ed9fac97fb73c48619 | 5,186 | md | Markdown | 2018-04/2018-04-29_short.md | admariner/trending_archive | ffca6522c4fdaa5203c3f18d9a5a7d7da098169c | [
"MIT"
] | 80 | 2015-02-13T16:52:22.000Z | 2022-03-10T20:13:08.000Z | 2018-04/2018-04-29_short.md | admariner/trending_archive | ffca6522c4fdaa5203c3f18d9a5a7d7da098169c | [
"MIT"
] | 65 | 2021-10-02T05:54:01.000Z | 2021-12-28T22:50:23.000Z | 2018-04/2018-04-29_short.md | admariner/trending_archive | ffca6522c4fdaa5203c3f18d9a5a7d7da098169c | [
"MIT"
] | 16 | 2015-10-08T11:06:28.000Z | 2021-06-30T07:26:49.000Z | ### 2018-04-29
diff between today and yesterday
#### python
* [danieldaeschle/swapy](https://github.com/danieldaeschle/swapy): Easy and modular web development
* [BenLangmead/c-cpp-notes](https://github.com/BenLangmead/c-cpp-notes): Lecture notes and example code for teaching C & C++
* [YouChouNoBB/sklearn-introduction](https://github.com/YouChouNoBB/sklearn-introduction): 3sklearn
* [shobrook/rebound](https://github.com/shobrook/rebound): Command-line tool that instantly fetches Stack Overflow results when you get a compiler error
* [soimort/you-get](https://github.com/soimort/you-get): Dumb downloader that scrapes the web
* [pandas-dev/pandas](https://github.com/pandas-dev/pandas): Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
* [deepfakes/faceswap](https://github.com/deepfakes/faceswap): Non official project based on original /r/Deepfakes thread. Many thanks to him!
* [facebookresearch/Detectron](https://github.com/facebookresearch/Detectron): FAIR's research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.
* [IBM/adversarial-robustness-toolbox](https://github.com/IBM/adversarial-robustness-toolbox): This is a library dedicated to adversarial machine learning. Its purpose is to allow rapid crafting and analysis of attacks and defense methods for machine learning models. The Adversarial Robustness Toolbox provides an implementation for many state-of-the-art methods for attacking and defending classifiers. https://developer.ibm.com/code/open/p
* [scikit-learn/scikit-learn](https://github.com/scikit-learn/scikit-learn): scikit-learn: machine learning in Python
#### go
* [sahilm/fuzzy](https://github.com/sahilm/fuzzy): Go library that provides fuzzy string matching optimized for filenames and code symbols in the style of Sublime Text, VSCode, IntelliJ IDEA et al.
* [containous/traefik](https://github.com/containous/traefik): Trfik, a modern reverse proxy
* [ontio/ontology](https://github.com/ontio/ontology): Official Go implementation of the Ontology protocol. https://ontio.github.io/documentation/
* [kubernetes/helm](https://github.com/kubernetes/helm): The Kubernetes Package Manager
* [jenkins-x/jx](https://github.com/jenkins-x/jx): jx is a command line tool for working with Jenkins X: automated CI/CD for Kubernetes
* [dinedal/textql](https://github.com/dinedal/textql): Execute SQL against structured text like CSV or TSV
#### cpp
* [Open-3D/Open3D](https://github.com/Open-3D/Open3D): Open3D: A Modern Library for 3D Data Processing
* [martinmoene/span-lite](https://github.com/martinmoene/span-lite): span lite - A single-file header-only version of a C++20-like span for C++98, C++11 and later
* [arendst/Sonoff-Tasmota](https://github.com/arendst/Sonoff-Tasmota): Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO
* [LordNoteworthy/al-khaser](https://github.com/LordNoteworthy/al-khaser): Public malware techniques used in the wild: Virtual Machine, Emulation, Debuggers, Sandbox detection.
* [Microsoft/CNTK](https://github.com/Microsoft/CNTK): Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
* [cmderdev/cmder](https://github.com/cmderdev/cmder): Lovely console emulator package for Windows
* [telegramdesktop/tdesktop](https://github.com/telegramdesktop/tdesktop): Telegram Desktop messaging app
* [godotengine/godot](https://github.com/godotengine/godot): Godot Engine Multi-platform 2D and 3D game engine
* [google/bloaty](https://github.com/google/bloaty): Bloaty McBloatface: a size profiler for binaries
#### javascript
* [mdx-js/mdx](https://github.com/mdx-js/mdx): A fully-featured MDX parser, loader and JSX renderer for ambitious projects
* [mowolf/ChatAnalyzer](https://github.com/mowolf/ChatAnalyzer):
* [llSourcell/AI_in_Finance](https://github.com/llSourcell/AI_in_Finance): This is the code for "AI in Finance" By Siraj Raval on Youtube
* [serverless/components](https://github.com/serverless/components): An easier way to build applications with cloud services.
* [pshihn/rough](https://github.com/pshihn/rough): Create graphics with a hand-drawn, sketchy, appearance
* [nodejs/node](https://github.com/nodejs/node): Node.js JavaScript runtime
* [mui-org/material-ui](https://github.com/mui-org/material-ui): React components that implement Google's Material Design.
* [lexb2/BoardControl](https://github.com/lexb2/BoardControl): Control and monitor any GNU/Linux system from a Web UI using bash commands to do action or display information.
* [zeit/next.js](https://github.com/zeit/next.js): Framework for server-rendered or statically-exported React apps
#### coffeescript
* [gandm/language-babel](https://github.com/gandm/language-babel): ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
* [ArnaudRinquin/atom-zentabs](https://github.com/ArnaudRinquin/atom-zentabs): Keep the opened tabs amount below sanity.
* [Leonidas-from-XIV/node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js): XML to JavaScript object converter.
| 103.72 | 442 | 0.782106 | eng_Latn | 0.426356 |
b0079825f4d07bb5128e206939502ed5ee9b109c | 638 | md | Markdown | README.md | BookingSync/bookingsync_rails_application_ember_setup | aa53072669670ade5ea736abc5bdb4ac0d1ba314 | [
"MIT"
] | null | null | null | README.md | BookingSync/bookingsync_rails_application_ember_setup | aa53072669670ade5ea736abc5bdb4ac0d1ba314 | [
"MIT"
] | null | null | null | README.md | BookingSync/bookingsync_rails_application_ember_setup | aa53072669670ade5ea736abc5bdb4ac0d1ba314 | [
"MIT"
] | null | null | null | # BookingsyncRailsApplicationEmberSetup
Generator for setting up Rails application to work with Ember in BookingSync App Store.
## Usage
Example:
`rails generate ember_booking_sync_setup --rack_cors_resource="/admin/v2" --after-bookingsync-sign-in-path="root_path"`
This will:
- add rack_cors gem to the Gemfile and bundle
- add config to config/application.rb for Rack::Cors
- create localui environment file from development env and add config for OmniAuth
- create remoteui environment file from staging env and add config for OmniAuth
- add after_bookingsync_sign_in_path to ApplicationController
- print message about .powenv
| 31.9 | 119 | 0.811912 | eng_Latn | 0.850229 |
b00831ba39d6705fcc527fbbe66ef8f596f71fe8 | 10,990 | md | Markdown | README.md | textcreationpartnership/A52023 | 61cab23667f8c7c099a24bea3e72f0e29e5aa586 | [
"CC0-1.0"
] | null | null | null | README.md | textcreationpartnership/A52023 | 61cab23667f8c7c099a24bea3e72f0e29e5aa586 | [
"CC0-1.0"
] | null | null | null | README.md | textcreationpartnership/A52023 | 61cab23667f8c7c099a24bea3e72f0e29e5aa586 | [
"CC0-1.0"
] | null | null | null | #The parson's vade mecum containing choice observations about the accounts of the year, ecclesiastical censures, of the primitive fathers and their writings, a catalogue of the arch-bishops, bishops and deans in England and Wales, their election, consecration, instalment, with the clergies tenths, and their valuation in the King's book ...#
##R. M.##
The parson's vade mecum containing choice observations about the accounts of the year, ecclesiastical censures, of the primitive fathers and their writings, a catalogue of the arch-bishops, bishops and deans in England and Wales, their election, consecration, instalment, with the clergies tenths, and their valuation in the King's book ...
R. M.
##General Summary##
**Links**
[TCP catalogue](http://www.ota.ox.ac.uk/tcp/) •
[HTML](http://tei.it.ox.ac.uk/tcp/Texts-HTML/free/A52/A52023.html) •
[EPUB](http://tei.it.ox.ac.uk/tcp/Texts-EPUB/free/A52/A52023.epub) •
[Page images (Historical Texts)](https://historicaltexts.jisc.ac.uk/eebo-11963862e)
**Availability**
To the extent possible under law, the Text Creation Partnership has waived all copyright and related or neighboring rights to this keyboarded and encoded edition of the work described above, according to the terms of the CC0 1.0 Public Domain Dedication (http://creativecommons.org/publicdomain/zero/1.0/). This waiver does not extend to any page images or other supplementary files associated with this work, which may be protected by copyright or other license restrictions. Please go to https://www.textcreationpartnership.org/ for more information about the project.
**Major revisions**
1. __2011-01__ __TCP__ *Assigned for keying and markup*
1. __2011-01__ __Apex CoVantage__ *Keyed and coded from ProQuest page images*
1. __2011-03__ __Susie Lorand__ *Sampled and proofread*
1. __2011-03__ __Susie Lorand__ *Text and markup reviewed and edited*
1. __2011-06__ __pfs__ *Batch review (QC) and XML conversion*
##Content Summary##
#####Front#####
THE PARSON'S Vade Mecum:Containing choice Obſervations about the accounts of the Year, Eccleſiaſtic
1. THE EPISTLE TO THE Clergy-Reader.
#####Body#####
1. THE Parſons Vade Mecum.
_ CHAP. I. Short obſervations of the account and beginning of the Years and Days, Of certain Feaſt-days, And of Ember Weeks.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. II. Of Eccleſiaſtical Cenſures.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. III. Of Biſhops and Deans, Election, Conſecration, Inſtallation, &c.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. IV. A Chronological Table ſhewing in what Ages the Primitive Fathers lived, and Memorable things hapned; and ſome other Memoirs of Antient Times.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. V. A particular of the Archbiſhopricks and Biſhopricks, with their Archdeaconaries, and their extent, with the Clergies Tenths, and their valuations in the King's Books.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. VI. Of the Original of Patronage, and of Preſentation, Inſtitution and Induction.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. VII. Of Marriages.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. VIII. Of Non-reſidence.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. IX. Of Diſpenſations and Pluralities.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. X. Cauſes of Deprivation,
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. XI. Of Dilapidations.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. XII. The Priviledges of Clergy-men.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. XIII. Of Tythes.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
_ CHAP. XIV. Simony. Vid. Stat. 13 Eliz. Cap. 6.
* The manner of making a Biſhop is thus.
* Times Prohibiting Marriage.
* Affinity and Conſanguinity forbidding Marriage.
#####Back#####
1. A Catalogue of ſome New curious Books, the four firſt never Publiſhed before •his Michaelmaſs Term, 1692, and moſt of the others publiſhed but a little before in the ſame year; all Printed for, and Sold by Tho. Salusbury, at at the King's Arms next S. Dunſtans Church in Fleetſtreet.
**Types of content**
* There are 2 **verse** lines!
* Oh, Mr. Jourdain, there is **prose** in there!
There are 57 **omitted** fragments!
@__reason__ (57) : illegible (50), foreign (5), blank (2) • @__resp__ (50) : #UOM (50) • @__extent__ (52) : 1 letter (42), 2 letters (4), 3 letters (1), 1 word (4), 3 words (1)
**Character listing**
|Text|string(s)|codepoint(s)|
|---|---|---|
|Latin-1 Supplement| |160|
|Latin Extended-A|ſ|383|
|Latin Extended-B|Ʋ|434|
|Greek|θευτόχοςπλίκιν|952 949 965 964 972 967 959 962 960 955 943 954 953 957|
|GreekandCoptic|θευτόχοςπλίκιν|952 949 965 964 972 967 959 962 960 955 943 954 953 957|
|GreekExtended|ἀ|7936|
|General Punctuation|•—|8226 8212|
|Geometric Shapes|▪◊|9642 9674|
|CJKSymbolsandPunctuation|〈〉|12296 12297|
##Tag Usage Summary##
###Header Tag Usage###
|No|element name|occ|attributes|
|---|---|---|---|
|1.|__author__|2||
|2.|__availability__|1||
|3.|__biblFull__|1||
|4.|__change__|5||
|5.|__date__|8| @__when__ (1) : 2011-12 (1)|
|6.|__edition__|1||
|7.|__editionStmt__|1||
|8.|__editorialDecl__|1||
|9.|__encodingDesc__|1||
|10.|__extent__|2||
|11.|__fileDesc__|1||
|12.|__idno__|6| @__type__ (6) : DLPS (1), STC (2), EEBO-CITATION (1), OCLC (1), VID (1)|
|13.|__keywords__|1| @__scheme__ (1) : http://authorities.loc.gov/ (1)|
|14.|__label__|5||
|15.|__langUsage__|1||
|16.|__language__|1| @__ident__ (1) : eng (1)|
|17.|__listPrefixDef__|1||
|18.|__note__|6||
|19.|__notesStmt__|2||
|20.|__p__|11||
|21.|__prefixDef__|2| @__ident__ (2) : tcp (1), char (1) • @__matchPattern__ (2) : ([0-9\-]+):([0-9IVX]+) (1), (.+) (1) • @__replacementPattern__ (2) : http://eebo.chadwyck.com/downloadtiff?vid=$1&page=$2 (1), https://raw.githubusercontent.com/textcreationpartnership/Texts/master/tcpchars.xml#$1 (1)|
|22.|__profileDesc__|1||
|23.|__projectDesc__|1||
|24.|__pubPlace__|2||
|25.|__publicationStmt__|2||
|26.|__publisher__|2||
|27.|__ref__|1| @__target__ (1) : http://www.textcreationpartnership.org/docs/. (1)|
|28.|__revisionDesc__|1||
|29.|__seriesStmt__|1||
|30.|__sourceDesc__|1||
|31.|__term__|2||
|32.|__textClass__|1||
|33.|__title__|3||
|34.|__titleStmt__|2||
###Text Tag Usage###
|No|element name|occ|attributes|
|---|---|---|---|
|1.|__am__|2||
|2.|__back__|1||
|3.|__body__|2||
|4.|__cell__|255||
|5.|__closer__|1||
|6.|__desc__|57||
|7.|__div__|21| @__type__ (21) : title_page (1), to_the_reader (1), text (1), chapter (14), section (3), publishers_advertisement (1) • @__n__ (14) : 1 (1), 2 (1), 3 (1), 4 (1), 5 (1), 6 (1), 7 (1), 8 (1), 9 (1), 10 (1), 11 (1), 12 (1), 13 (1), 14 (1)|
|8.|__ex__|2||
|9.|__expan__|2||
|10.|__floatingText__|1| @__xml:lang__ (1) : eng (0) • @__type__ (1) : excerpt (1)|
|11.|__front__|1||
|12.|__g__|557| @__ref__ (557) : char:EOLhyphen (525), char:punc (20), char:EOLunhyphen (1), char:V (9), char:abque (2)|
|13.|__gap__|57| @__reason__ (57) : illegible (50), foreign (5), blank (2) • @__resp__ (50) : #UOM (50) • @__extent__ (52) : 1 letter (42), 2 letters (4), 3 letters (1), 1 word (4), 3 words (1)|
|14.|__head__|38||
|15.|__hi__|1239||
|16.|__item__|232| @__n__ (2) : 1 (1), 2 (1)|
|17.|__l__|2||
|18.|__list__|25||
|19.|__opener__|1||
|20.|__p__|438| @__n__ (13) : 1 (3), 2 (3), 3 (3), 4 (3), 5 (1)|
|21.|__pb__|126| @__facs__ (126) : tcp:51642:1 (2), tcp:51642:2 (2), tcp:51642:3 (2), tcp:51642:4 (2), tcp:51642:5 (2), tcp:51642:6 (2), tcp:51642:7 (2), tcp:51642:8 (2), tcp:51642:9 (2), tcp:51642:10 (2), tcp:51642:11 (2), tcp:51642:12 (2), tcp:51642:13 (2), tcp:51642:14 (2), tcp:51642:15 (2), tcp:51642:16 (2), tcp:51642:17 (2), tcp:51642:18 (2), tcp:51642:19 (2), tcp:51642:20 (2), tcp:51642:21 (2), tcp:51642:22 (2), tcp:51642:23 (2), tcp:51642:24 (2), tcp:51642:25 (2), tcp:51642:26 (2), tcp:51642:27 (2), tcp:51642:28 (2), tcp:51642:29 (2), tcp:51642:30 (2), tcp:51642:31 (2), tcp:51642:32 (2), tcp:51642:33 (2), tcp:51642:34 (2), tcp:51642:35 (2), tcp:51642:36 (2), tcp:51642:37 (2), tcp:51642:38 (2), tcp:51642:39 (2), tcp:51642:40 (2), tcp:51642:41 (2), tcp:51642:42 (2), tcp:51642:43 (2), tcp:51642:44 (2), tcp:51642:45 (2), tcp:51642:46 (2), tcp:51642:47 (2), tcp:51642:48 (2), tcp:51642:49 (2), tcp:51642:50 (2), tcp:51642:51 (2), tcp:51642:52 (2), tcp:51642:53 (2), tcp:51642:54 (2), tcp:51642:55 (2), tcp:51642:56 (2), tcp:51642:57 (2), tcp:51642:58 (2), tcp:51642:59 (2), tcp:51642:60 (2), tcp:51642:61 (2), tcp:51642:62 (2), tcp:51642:63 (2) • @__n__ (116) : 1 (1), 2 (1), 3 (1), 4 (1), 5 (1), 6 (1), 7 (1), 8 (1), 9 (1), 10 (1), 11 (1), 12 (1), 13 (1), 14 (1), 15 (1), 16 (1), 17 (1), 18 (1), 19 (1), 20 (1), 21 (1), 22 (1), 23 (1), 24 (1), 25 (1), 26 (1), 27 (1), 28 (1), 29 (1), 30 (1), 31 (1), 32 (1), 33 (1), 34 (1), 35 (1), 36 (1), 37 (1), 38 (1), 39 (1), 40 (1), 41 (1), 42 (1), 43 (1), 44 (1), 45 (1), 46 (1), 47 (1), 48 (1), 49 (1), 50 (1), 51 (1), 52 (1), 53 (1), 54 (1), 55 (1), 56 (1), 57 (1), 58 (1), 59 (1), 60 (1), 61 (1), 62 (1), 63 (1), 64 (1), 65 (1), 66 (1), 67 (1), 68 (1), 69 (1), 70 (1), 71 (1), 72 (1), 73 (1), 74 (1), 75 (1), 76 (1), 77 (1), 78 (1), 79 (1), 80 (1), 81 (1), 82 (1), 83 (1), 84 (1), 85 (1), 86 (1), 87 (1), 88 (1), 89 (1), 90 (1), 91 (1), 92 (1), 93 (1), 94 (1), 95 (1), 96 (1), 97 (1), 98 (1), 99 (1), 100 (1), 101 (1), 102 (1), 103 (1), 104 (1), 105 (1), 106 (1), 107 (1), 108 (1), 109 (1), 110 (1), 111 (1), 112 (1), 113 (1), 114 (1), 115 (1), 116 (1) • @__rendition__ (2) : simple:additions (2)|
|22.|__q__|1||
|23.|__row__|53||
|24.|__salute__|1||
|25.|__signed__|1||
|26.|__table__|26||
|27.|__trailer__|1||
| 43.784861 | 2,159 | 0.653321 | eng_Latn | 0.58885 |
b00851dd561c679cd52e177929fa42ef166c039f | 4,079 | md | Markdown | documentation/docs/project-structure/union-values.md | bdunn313/rescript-material-ui | a2bea72669b1a117d104c467cca081484cd155e6 | [
"MIT"
] | null | null | null | documentation/docs/project-structure/union-values.md | bdunn313/rescript-material-ui | a2bea72669b1a117d104c467cca081484cd155e6 | [
"MIT"
] | null | null | null | documentation/docs/project-structure/union-values.md | bdunn313/rescript-material-ui | a2bea72669b1a117d104c467cca081484cd155e6 | [
"MIT"
] | null | null | null | ---
title: Union Values
---
## Union differences
While is is great to have a consistent usage for passing union values as props,
it can come at a conversion cost. This is why the current bindings make a
difference between 3 types of union values.
## String only unions
Whenever a prop on a component consists of a selection of string only literals,
the generator will use the
[[@bs.string]](https://reasonml.org/docs/reason-compiler/latest/function#constrain-arguments-better)
(will become obsolete with ReScript eventually) directive directly on the prop.
This will ensure a direct application of the string without conversion cost.
String only unions therefore need to get passed as a polymorphic variant. This
is an example of the prop `variant`, taken from `MaterialUi_Accordion.re`:
```reason
~variant: option<[
| @bs.as("elevation") #Elevation
| @bs.as("outlined") #Outlined
>=?,
```
You can use it like so:
```reason
<MaterialUi_Accordion variant=#Outlined />
```
### Rules for string only unions
- Always `[@bs.string]` in the external (you may ignore this if you're on
`ReScript`)
- Always **uppercased** polymorphic variant of the original string value
- Invalid chars (like spaces) will be replaced by `_`
### Additional types
In case that you need to pass around the type of a string union prop, the
generator creates a helper type for you in the module. To continue the example
from earlier, the following helper type will be added to
`MaterialUi_Accordion.re`:
```reason
type variant = [ | #Elevation | #Outlined];
```
## Numeric unions
Similar to the string only unions, a union consisting of only numbers will
utilize the
[[@bs.int]](https://reasonml.org/docs/reason-compiler/latest/function#constrain-arguments-better)
directive. Therefore, numerical unions will accept a form of polymorphic variant
as well.
These don't happen often - currently the only place where this applies is in the
`MaterialUi_Grid.re` component.
Example usage:
```reason
<MaterialUi_Grid spacing=#V2 />
```
### Rules for numeric unions
- Always `@bs.string` in the external (you may ignore this if you're on
`ReScript`)
- Always `#V[NUM]` format
## Mixed unions
Mixed unions make use of one of the newer features that bucklescript offers:
[[unboxed]](https://reasonml.org/blog/union-types-in-bucklescript). The nice
thing about unboxed is, that there is no conversion cost, just as with the above
ones. Some of the helper functions will leave a function in the generated js,
that just returns the one argument it gets passed. These can be stripped easily
with an optimization build step (e.g. with webpack).
Whenever a prop value can be a literal of multiple types, this way of typing it
is used. A module inside of the component is created, that is simply named after
the prop (**uppercased**).
Let's use the `component` prop of the `Grid` component as an example. We can
pass either a string, callback or element as the `component` prop. This will
generate the following module inside the `Grid` component file:
```reason
module Component: {
type t;
let string: string => t;
let callback: (unit => React.element) => t;
let element: React.element => t;
} = {
@unboxed
type rec t =
| Any('a): t;
let string = (v: string) => Any(v);
let callback = (v: unit => React.element) => Any(v);
let element = (v: React.element) => Any(v);
};
```
You can use it in the following way:
```reason
open MaterialUi;
<div>
<Grid component=Grid.Component.string("div") />
<Grid component=Grid.Component.element(<div />) />
</div>
```
### Rules for mixed unions
- Always creates a module leveraging `@unboxed` with the uppercased name of the
prop
- Always fills that module with helper functions that are named after the type
they represent
- Literal values don't have helper functions, but are represented as let
bindings
- Numeric literals are always prefixed with `_` (e.g. `Grid.Md._2`)
- Boolean literals are always prefixed with `_` (e.g. `Grid.Md._false`)
- String literals are always their lowercased self (e.g. `Grid.Md.auto`)
| 31.376923 | 100 | 0.735965 | eng_Latn | 0.997243 |
b00a726fc84b40fe81d93b002fc249726e1b06f2 | 66 | md | Markdown | README.md | anzelm/allquads | ca8fe48ded57791ed555b3fa28d93e9f8a68b951 | [
"CC0-1.0"
] | null | null | null | README.md | anzelm/allquads | ca8fe48ded57791ed555b3fa28d93e9f8a68b951 | [
"CC0-1.0"
] | null | null | null | README.md | anzelm/allquads | ca8fe48ded57791ed555b3fa28d93e9f8a68b951 | [
"CC0-1.0"
] | null | null | null | # allquads
Predict interstrand and intrastrand G-quadruplex sites
| 22 | 54 | 0.848485 | eng_Latn | 0.748589 |
b00be84325314efa283aa5aa4cfb0c9e7e740393 | 3,498 | md | Markdown | _posts/Measuring up.md | RobertsLab/hack-nb.github.io | 8241a19c85e28f34f03ad8cd516e9b0d3aaf6c1e | [
"MIT"
] | null | null | null | _posts/Measuring up.md | RobertsLab/hack-nb.github.io | 8241a19c85e28f34f03ad8cd516e9b0d3aaf6c1e | [
"MIT"
] | 1 | 2016-10-11T18:18:16.000Z | 2016-10-11T18:18:16.000Z | _posts/Measuring up.md | RobertsLab/hack-nb.github.io | 8241a19c85e28f34f03ad8cd516e9b0d3aaf6c1e | [
"MIT"
] | 20 | 2016-10-03T16:35:53.000Z | 2022-03-07T16:44:28.000Z | Measuring up
Yesterday we did some measuring of the seed and consolidated them into single water source.
Here is what it looked like when we started.
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4947_JPG__33_documents__33_total_pages__and_Ocean_Acidification_–_Research_Notes_from_the_School_of_Aquatic_and_Fishery_Sciences_1CB95D8F.png" alt="IMG_4947_JPG__33_documents__33_total_pages__and_Ocean_Acidification_–_Research_Notes_from_the_School_of_Aquatic_and_Fishery_Sciences_1CB95D8F.png"/>
And at the individual tank view.
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4948_JPG__33_documents__33_total_pages__1CB95E0C.png" alt="IMG_4948_JPG__33_documents__33_total_pages__1CB95E0C.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4949_JPG__33_documents__33_total_pages__1CB95E2B.png" alt="IMG_4949_JPG__33_documents__33_total_pages__1CB95E2B.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4950_JPG__33_documents__33_total_pages__1CB95E48.png" alt="IMG_4950_JPG__33_documents__33_total_pages__1CB95E48.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4951_JPG__33_documents__33_total_pages__1CB95E5F.png" alt="IMG_4951_JPG__33_documents__33_total_pages__1CB95E5F.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4952_JPG__33_documents__33_total_pages__1CB95E75.png" alt="IMG_4952_JPG__33_documents__33_total_pages__1CB95E75.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4953_JPG__33_documents__33_total_pages__1CB95E93.png" alt="IMG_4953_JPG__33_documents__33_total_pages__1CB95E93.png"/>
From here ducks were transfered to Taylor pails. Below are photos from each cohort.
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4961_JPG__33_documents__33_total_pages__1CB95F55.png" alt="IMG_4961_JPG__33_documents__33_total_pages__1CB95F55.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4967_JPG__33_documents__33_total_pages__1CB95F8D.png" alt="IMG_4967_JPG__33_documents__33_total_pages__1CB95F8D.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4965_JPG__33_documents__33_total_pages__1CB95FD4.png" alt="IMG_4965_JPG__33_documents__33_total_pages__1CB95FD4.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4971_JPG__33_documents__33_total_pages__1CB95FF9.png" alt="IMG_4971_JPG__33_documents__33_total_pages__1CB95FF9.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4959_JPG__33_documents__33_total_pages__1CB96023.png" alt="IMG_4959_JPG__33_documents__33_total_pages__1CB96023.png"/>
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4957_JPG__33_documents__33_total_pages__1CB9604A.png" alt="IMG_4957_JPG__33_documents__33_total_pages__1CB9604A.png"/>
Eight siblings were added to each pail as they were being measured - See Laura's post. They were place nicely in a tank.
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4973_JPG__33_documents__33_total_pages__1CB960AD.png" alt="IMG_4973_JPG__33_documents__33_total_pages__1CB960AD.png"/>
Water added.
<iframe width="560" height="315" src="https://www.youtube.com/embed/Fo2mk_-bCkQ?rel=0" frameborder="0" allowfullscreen></iframe>
And there you have it.
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/IMG_4980_JPG__33_documents__33_total_pages__1CB96140.png" alt="IMG_4980_JPG__33_documents__33_total_pages__1CB96140.png"/>
| 77.733333 | 360 | 0.860206 | yue_Hant | 0.136232 |
b00c2fe53231e48165ea7272f174ad9b4fa74fa6 | 8,326 | md | Markdown | docs/csharp/tutorials/ranges-indexes.md | TomekLesniak/docs.pl-pl | 3373130e51ecb862641a40c5c38ef91af847fe04 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/csharp/tutorials/ranges-indexes.md | TomekLesniak/docs.pl-pl | 3373130e51ecb862641a40c5c38ef91af847fe04 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/csharp/tutorials/ranges-indexes.md | TomekLesniak/docs.pl-pl | 3373130e51ecb862641a40c5c38ef91af847fe04 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Eksplorowanie zakresów danych przy użyciu indeksów i zakresów
description: Ten zaawansowany samouczek umożliwia Eksplorowanie danych przy użyciu indeksów i zakresów w celu zbadania ciągłego zakresu sekwencyjnego zestawu danych.
ms.date: 09/11/2020
ms.technology: csharp-fundamentals
ms.custom: mvc
ms.openlocfilehash: cf6c83484332ed517b2326b3fd9d7458f191227e
ms.sourcegitcommit: 0802ac583585110022beb6af8ea0b39188b77c43
ms.translationtype: MT
ms.contentlocale: pl-PL
ms.lasthandoff: 11/26/2020
ms.locfileid: "90738869"
---
# <a name="indices-and-ranges"></a>Indeksy i zakresy
Zakresy i indeksy zapewniają zwięzłą składnię do uzyskiwania dostępu do pojedynczych elementów lub zakresów w sekwencji.
Z tego samouczka dowiesz się, jak wykonywać następujące czynności:
> [!div class="checklist"]
>
> - Użyj składni dla zakresów w sekwencji.
> - Poznaj decyzje projektowe dotyczące początku i końca każdej sekwencji.
> - Poznaj scenariusze dla <xref:System.Index> typów i <xref:System.Range> .
## <a name="language-support-for-indices-and-ranges"></a>Obsługa języków w przypadku indeksów i zakresów
Ten język obsługuje dwa nowe typy i dwa nowe operatory:
- <xref:System.Index?displayProperty=nameWithType> reprezentuje indeks w sekwencji.
- Indeks od operatora końcowego `^` , który określa, że indeks jest względem końca sekwencji.
- <xref:System.Range?displayProperty=nameWithType> reprezentuje Podzakres sekwencji.
- Operator zakresu `..` , który określa początek i koniec zakresu jako jego operandy.
Zacznijmy od reguł dotyczących indeksów. Weź pod uwagę tablicę `sequence` . `0`Indeks jest taki sam jak `sequence[0]` . `^0`Indeks jest taki sam jak `sequence[sequence.Length]` . Wyrażenie `sequence[^0]` generuje wyjątek, podobnie jak `sequence[sequence.Length]` . Dla dowolnej liczby `n` indeks jest taki `^n` sam jak `sequence[sequence.Length - n]` .
```csharp
string[] words = new string[]
{
// index from start index from end
"The", // 0 ^9
"quick", // 1 ^8
"brown", // 2 ^7
"fox", // 3 ^6
"jumped", // 4 ^5
"over", // 5 ^4
"the", // 6 ^3
"lazy", // 7 ^2
"dog" // 8 ^1
}; // 9 (or words.Length) ^0
```
Można pobrać ostatni wyraz z `^1` indeksem. Dodaj następujący kod poniżej inicjalizacji:
[!code-csharp[LastIndex](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_LastIndex)]
Zakres określa *początek* i *koniec* zakresu. Zakresy są na wyłączność, co oznacza, że *koniec* nie znajduje się w zakresie. Zakres `[0..^0]` reprezentuje cały zakres, tak jak `[0..sequence.Length]` reprezentuje cały zakres.
Poniższy kod tworzy Podzakres słowami "Quick", "brązowy" i "Fox". Zawiera `words[1]` `words[3]` . Element `words[4]` nie należy do zakresu. Dodaj następujący kod do tej samej metody. Skopiuj i wklej go u dołu okna interaktywnego.
[!code-csharp[Range](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_Range)]
Poniższy kod zwraca zakres z "z opóźnieniem" i "Dog". Obejmuje `words[^2]` i `words[^1]` . Indeks końcowy `words[^0]` nie jest uwzględniony. Dodaj również następujący kod:
[!code-csharp[LastRange](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_LastRange)]
W poniższych przykładach zostały utworzone zakresy, które są otwarte dla początku, końca lub obu:
[!code-csharp[PartialRange](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_PartialRanges)]
Można również zadeklarować zakresy lub indeksy jako zmienne. Zmienna może być używana wewnątrz `[` `]` znaków i:
[!code-csharp[IndexRangeTypes](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_RangeIndexTypes)]
Poniższy przykład pokazuje wiele przyczyn tego wyboru. Zmodyfikuj `x` , `y` i, `z` Aby wypróbować różne kombinacje. Podczas eksperymentowania Użyj wartości, gdzie `x` jest mniejsza niż `y` i `y` jest mniejsze niż `z` w przypadku prawidłowych kombinacji. Dodaj następujący kod w nowej metodzie. Wypróbuj różne kombinacje:
[!code-csharp[SemanticsExamples](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_Semantics)]
## <a name="type-support-for-indices-and-ranges"></a>Obsługa typów indeksów i zakresów
Indeksy i zakresy zapewniają jednoznaczne, zwięzłą składnię, aby uzyskać dostęp do pojedynczego elementu lub zakresu elementów w sekwencji. Wyrażenie indeksu zwykle zwraca typ elementów sekwencji. Wyrażenie zakresu zwykle zwraca ten sam typ sekwencji co sekwencja źródłowa.
Każdy typ, który zapewnia [indeksator](../programming-guide/indexers/index.md) z <xref:System.Index> <xref:System.Range> parametrem lub jawnie obsługuje odpowiednio indeksy lub zakresy. Indeksator, który przyjmuje jeden <xref:System.Range> parametr, może zwracać inny typ sekwencji, taki jak <xref:System.Span%601?displayProperty=nameWithType> .
> [!IMPORTANT]
> Wydajność kodu przy użyciu operatora Range zależy od typu operandu sekwencji.
>
> Stopień złożoności operatora zakresu zależy od typu sekwencji. Na przykład, jeśli sekwencja jest `string` lub tablicą, wynikiem jest kopia określonej sekcji danych wejściowych, więc złożoność czasu wynosi *O (n)* (gdzie N jest długością zakresu). Z drugiej strony, jeśli jest <xref:System.Span%601?displayProperty=nameWithType> lub a <xref:System.Memory%601?displayProperty=nameWithType> , wynik odwołuje się do tego samego magazynu zapasowego, co oznacza, że nie ma kopii, a operacja ma wartość *O (1)*.
>
> W uzupełnieniu do stopnia złożoności powoduje to dodatkowe alokacje i kopie, co wpływa na wydajność. W kodzie wrażliwym na wydajność Rozważ użycie `Span<T>` lub `Memory<T>` jako typ sekwencji, ponieważ operator zakresu nie przydzieli do nich.
Typ jest możliwy do **zliczenia** , jeśli ma właściwość o nazwie `Length` lub `Count` z dostępną metodę pobierającą i zwracanym typem `int` . Typ z liczbą, która nie obsługuje jawnie indeksów lub zakresów może zapewnić niejawną obsługę. Aby uzyskać więcej informacji, zapoznaj się z sekcją obsługa niejawnych [indeksów](~/_csharplang/proposals/csharp-8.0/ranges.md#implicit-index-support) i [Obsługa niejawnego zakresu](~/_csharplang/proposals/csharp-8.0/ranges.md#implicit-range-support) w artykule [propozycja funkcji](~/_csharplang/proposals/csharp-8.0/ranges.md). Zakresy korzystające z obsługi niejawnego zakresu zwracają ten sam typ sekwencji co sekwencja źródłowa.
Na przykład następujące typy .NET obsługują zarówno indeksy, jak i zakresy: <xref:System.String> , <xref:System.Span%601> , i <xref:System.ReadOnlySpan%601> . <xref:System.Collections.Generic.List%601>Obsługuje indeksy, ale nie obsługuje zakresów.
<xref:System.Array> ma więcej zachowań złożonych. Pojedyncze tablice wymiarów obsługują zarówno indeksy, jak i zakresy. Wielowymiarowe tablice nie są. Indeksator dla wielowymiarowej tablicy ma wiele parametrów, a nie jeden parametr. Tablice nieregularne, nazywane również tablicą tablic, obsługują zarówno zakresy, jak i indeksatory. Poniższy przykład pokazuje, jak wykonać iterację prostokątnej podsekcji tablicy nieregularnej. Iteruje sekcję w środku, wykluczając pierwsze i ostatnie trzy wiersze, a pierwsze i ostatnie dwie kolumny z każdego zaznaczonego wiersza:
[!code-csharp[JaggedArrays](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_JaggedArrays)]
We wszystkich przypadkach operator zakresu <xref:System.Array> przydziela tablicę do przechowywania zwracanych elementów.
## <a name="scenarios-for-indices-and-ranges"></a>Scenariusze dotyczące indeksów i zakresów
Jeśli chcesz analizować część większej sekwencji, często używasz zakresów i indeksów. Nowa składnia jest przejrzysta w celu odczytu dokładnej części sekwencji. Funkcja lokalna `MovingAverage` przyjmuje <xref:System.Range> jako argument. Następnie Metoda wylicza tylko ten zakres przy obliczaniu wartości minimalnej, maksymalnej i średniej. Wypróbuj następujący kod w projekcie:
[!code-csharp[MovingAverages](~/samples/snippets/csharp/tutorials/RangesIndexes/IndicesAndRanges.cs#IndicesAndRanges_MovingAverage)]
| 77.813084 | 671 | 0.769277 | pol_Latn | 0.999845 |
b00c3e398800e6f7d88781cb03fde17ac6938f48 | 376 | md | Markdown | README.md | garthwilliamson/pre-commit-gerrit | 29eb5c5430cf521f7200f6a7a436d219a82eaeff | [
"Apache-2.0"
] | null | null | null | README.md | garthwilliamson/pre-commit-gerrit | 29eb5c5430cf521f7200f6a7a436d219a82eaeff | [
"Apache-2.0"
] | null | null | null | README.md | garthwilliamson/pre-commit-gerrit | 29eb5c5430cf521f7200f6a7a436d219a82eaeff | [
"Apache-2.0"
] | null | null | null | # Gerrit Commit Message Hook (for pre-commit)
## Setup
See [Pre-commit documentation](https://pre-commit.com/#adding-pre-commit-plugins-to-your-project).
## Supported Hooks
### gerrit-commit-msg
```yaml
- repo: https://github.com/garthwilliamson/pre-commit-gerrit.git
rev: v0.1.1
hooks:
- id: gerrit-commit-msg
```
Adds the gerrit change-id to the commit message.
| 19.789474 | 98 | 0.715426 | eng_Latn | 0.193205 |
b00cff837f3eb79b142a48a10a24f722071bc5c8 | 540 | md | Markdown | pages/CHANGELOG.md | noraj/PixelChart | 7574ea2403c68222f462b8750be536b704452b41 | [
"MIT"
] | 7 | 2020-04-17T18:37:15.000Z | 2022-02-01T23:41:34.000Z | pages/CHANGELOG.md | noraj/PixelChart | 7574ea2403c68222f462b8750be536b704452b41 | [
"MIT"
] | 12 | 2020-06-25T21:50:06.000Z | 2021-11-30T18:17:03.000Z | pages/CHANGELOG.md | noraj/PixelChart | 7574ea2403c68222f462b8750be536b704452b41 | [
"MIT"
] | null | null | null | ## [unreleased]
- Dependencies:
- Update to yard [v0.9.27](https://github.com/lsegal/yard/releases/tag/v0.9.27)
- Move from Redcarpet to CommonMarker markdown provider
- Move doc syntax from Rdoc to markdown
- Move dev dependencies from gemspec to gemfile
## [1.0.2]
- lib: code lint
- dependencies: update
- rubocop: new rules for new cops
- deprecation: now requires ruby 2.7+ instead of 2.4+
- doc: fix a CLI value name
## [1.0.1]
- doc: final documentation
- gem: add metadata to gemspec
## [1.0.0]
- Initial version
| 21.6 | 81 | 0.694444 | eng_Latn | 0.751174 |
b00e01e0b409d0db2103e5cd180d9570cb68e47f | 324 | md | Markdown | k8s_administration/02_etcd/04_snapshot.md | hboshnak/trainings | 49d02999cf6a7d92d852cef4a6d1522ee233657a | [
"Apache-2.0"
] | 24 | 2020-08-04T17:06:58.000Z | 2022-03-31T08:49:11.000Z | k8s_administration/02_etcd/04_snapshot.md | hboshnak/trainings | 49d02999cf6a7d92d852cef4a6d1522ee233657a | [
"Apache-2.0"
] | 40 | 2020-12-04T10:25:04.000Z | 2021-12-23T11:09:36.000Z | k8s_administration/02_etcd/04_snapshot.md | hboshnak/trainings | 49d02999cf6a7d92d852cef4a6d1522ee233657a | [
"Apache-2.0"
] | 19 | 2020-07-28T12:21:03.000Z | 2022-01-27T09:36:58.000Z | # Create a snapshot
```bash
ETCDCTL_API=3 etcdctl \
--endpoints=https://127.0.0.1:2379 \
--cacert=/etc/etcd/ca.pem \
--cert=/etc/etcd/kubernetes.pem \
--key=/etc/etcd/kubernetes-key.pem \
snapshot save snap.db
```
# Check the snapshot
```bash
ETCDCTL_API=3 etcdctl --write-out=table snapshot status snap.db
``` | 20.25 | 63 | 0.679012 | kor_Hang | 0.198079 |
b00e75269bf4fba506facc8d896de845699fa11c | 2,061 | md | Markdown | README.md | jeremytammik/ExportWaypointsJson | e87c2d727c159ccb9a3f002aaabee60fa106dfbc | [
"MIT"
] | 4 | 2016-09-06T11:48:23.000Z | 2021-02-02T15:47:39.000Z | README.md | jeremytammik/ExportWaypointsJson | e87c2d727c159ccb9a3f002aaabee60fa106dfbc | [
"MIT"
] | null | null | null | README.md | jeremytammik/ExportWaypointsJson | e87c2d727c159ccb9a3f002aaabee60fa106dfbc | [
"MIT"
] | 2 | 2017-02-06T14:04:11.000Z | 2019-01-29T14:06:09.000Z | # ExportWaypointsJson
A C# .NET Revit add-in to export exit path guide waypoints to JSON for Hololens visualisation.
... image... sample output...
This project is part of [Kean Walmsley's Hololens project](http://through-the-interface.typepad.com/through_the_interface/hololens) and our entry to the Autodesk Hackathon:
- [Autodesk’s first global hackathon entry: a HoloLens-based tool for navigating low visibility environment](http://through-the-interface.typepad.com/through_the_interface/2016/08/my-entry-for-autodesks-first-global-hackathon-a-hololens-based-tool-for-navigating-low-visibility-environments.html)
- [Using HoloLens to display diagnostic information for building components](http://through-the-interface.typepad.com/through_the_interface/2016/08/using-hololens-to-display-diagnostic-information-for-building-components.html)
- [Scaling our Unity model in HoloLens](http://through-the-interface.typepad.com/through_the_interface/2016/08/scaling-our-unity-model-in-hololens.html)
- [Adding spatial sound to our Unity model in HoloLens](http://through-the-interface.typepad.com/through_the_interface/2016/08/adding-spatial-sound-to-our-unity-model-in-hololens-part-3.html)
- [Displaying your Unity model in 3D using HoloLens](http://through-the-interface.typepad.com/through_the_interface/2016/07/displaying-your-unity-model-in-3d-using-hololens.html)
For more information, please refer
to [Through The Interface](http://through-the-interface.typepad.com)
and [The Building Coder](http://thebuildingcoder.typepad.com).
## Author
Jeremy Tammik,
[The Building Coder](http://thebuildingcoder.typepad.com) and
[The 3D Web Coder](http://the3dwebcoder.typepad.com),
[Forge](http://forge.autodesk.com) [Platform](https://developer.autodesk.com) Development,
[ADN](http://www.autodesk.com/adn)
[Open](http://www.autodesk.com/adnopen),
[Autodesk Inc.](http://www.autodesk.com)
## License
This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Please see the [LICENSE](LICENSE) file for full details.
| 58.885714 | 296 | 0.793304 | yue_Hant | 0.564917 |
b00f3ceec7c86fb2893a45b4afd9a989de70898a | 1,246 | md | Markdown | security-updates/WindowsRightsManagementServices/18125127.md | MicrosoftDocs/security-updates.tr-tr | 6a8a090524215bed3563740e2209f1e1e409d64d | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-12-28T14:31:52.000Z | 2020-05-19T20:17:07.000Z | security-updates/WindowsRightsManagementServices/18125127.md | MicrosoftDocs/security-updates.tr-tr | 6a8a090524215bed3563740e2209f1e1e409d64d | [
"CC-BY-4.0",
"MIT"
] | 13 | 2018-03-28T11:58:55.000Z | 2018-11-21T21:52:53.000Z | security-updates/WindowsRightsManagementServices/18125127.md | MicrosoftDocs/security-updates.tr-tr | 6a8a090524215bed3563740e2209f1e1e409d64d | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-11-18T13:16:04.000Z | 2021-11-18T13:16:04.000Z | ---
TOCTitle: Güven İlkeleri Oluşturma
Title: Güven İlkeleri Oluşturma
ms:assetid: '6c2be3c2-1837-4de4-a72e-3ba3eec3321d'
ms:contentKeyID: 18125127
ms:mtpsurl: 'https://technet.microsoft.com/tr-tr/library/Cc747610(v=WS.10)'
---
Güven İlkeleri Oluşturma
========================
Bu bölümdeki yordamlar, RMS sunucunuzla başka bir etki alanında bulunan veya farklı bir kuruluşun parçası olan bir RMS sunucusu arasında güven ilişkisi oluşturmanıza yardımcı olmak için tasarlanmıştır.
Bu bölüm aşağıdaki yordamları içerir:
- [Güvenilen Kullanıcı Etki Alanı Eklemek için](https://technet.microsoft.com/ed672e58-6272-4ac0-a434-d1d938037e93)
- [Güvenilen Kullanıcı Etki Alanı Vermek için](https://technet.microsoft.com/40281ba3-2674-43ca-aa6d-1deb9302eb0e)
- [Passport Tabanlı Hak Hesabı Sertifikalarına Güvenmek için](https://technet.microsoft.com/c096fa36-c40d-4b28-843c-e9cbbe8eef70)
- [Sunucu Lisans Sertifikanızı Dosyaya Vermek için](https://technet.microsoft.com/d683a629-71b3-4b11-932b-4ab0317334af)
- [Güvenilen Yayımlama Etki Alanı Eklemek için](https://technet.microsoft.com/731416d8-ddf4-4d4a-9f1a-bbd1ea48fe3c)
- [Güvenilen Yayımlama Etki Alanı Vermek için](https://technet.microsoft.com/3fb138dd-e324-43f8-97e0-da0027a036a3)
| 56.636364 | 201 | 0.788925 | tur_Latn | 0.995638 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.