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
da463d1f1cb3832fbfe9e8281087b824d40e5553
113
md
Markdown
transports/sqs/configuration-options_connectionstringsupport_sqs_[2,).partial.md
Jmaharman/docs.particular.net
2a29879050eac8146dd10d20895c20754fb4db0f
[ "Apache-2.0" ]
94
2015-02-23T21:03:36.000Z
2022-03-05T23:49:05.000Z
transports/sqs/configuration-options_connectionstringsupport_sqs_[2,).partial.md
Jmaharman/docs.particular.net
2a29879050eac8146dd10d20895c20754fb4db0f
[ "Apache-2.0" ]
3,051
2015-01-02T03:59:14.000Z
2022-03-25T06:34:33.000Z
transports/sqs/configuration-options_connectionstringsupport_sqs_[2,).partial.md
Jmaharman/docs.particular.net
2a29879050eac8146dd10d20895c20754fb4db0f
[ "Apache-2.0" ]
367
2015-01-25T02:06:01.000Z
2022-03-05T03:20:26.000Z
NOTE: The transport does not support `transport.ConnectionString(...)` to specify the connection string via code.
113
113
0.79646
eng_Latn
0.99402
da47b39edfc78b6f57c724e79fa7a727cb6a1a9e
29
md
Markdown
README.md
lin511622/lin511622.github.io
55c2c35a03786341f1f91333c8dad9febdb84487
[ "Apache-2.0" ]
null
null
null
README.md
lin511622/lin511622.github.io
55c2c35a03786341f1f91333c8dad9febdb84487
[ "Apache-2.0" ]
null
null
null
README.md
lin511622/lin511622.github.io
55c2c35a03786341f1f91333c8dad9febdb84487
[ "Apache-2.0" ]
null
null
null
# lin511622.github.io 测试个人博客
9.666667
21
0.793103
swe_Latn
0.065414
da47f7d7b9aa75dc819f0ee849aeddef82d2b06d
1,142
md
Markdown
350.Intersection of Two Arrays II/README.md
geemo/leetcode
1cc42b1b29e4164deffb679e1bdd60dcb662ca70
[ "Apache-2.0" ]
2
2019-09-18T02:39:20.000Z
2019-12-05T13:57:52.000Z
350.Intersection of Two Arrays II/README.md
geemo/leetcode
1cc42b1b29e4164deffb679e1bdd60dcb662ca70
[ "Apache-2.0" ]
null
null
null
350.Intersection of Two Arrays II/README.md
geemo/leetcode
1cc42b1b29e4164deffb679e1bdd60dcb662ca70
[ "Apache-2.0" ]
null
null
null
Given two arrays, write a function to compute their intersection. **Example 1:** ``` Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2,2] ``` **Example 2:** ``` Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4] Output: [4,9] ``` **Note:** - Each element in the result should appear as many times as it shows in both arrays. - The result can be in any order. **Follow up:** - What if the given array is already sorted? How would you optimize your algorithm? - What if nums1's size is small compared to nums2's size? Which algorithm is better? - What if elements of nums2 are stored on disk, and the memory is limited such that you cannot load all elements into the memory at once? **Solution:** ```golang import "sort" func intersect(nums1 []int, nums2 []int) []int { var ans []int n1, n2 := len(nums1), len(nums2) if n1 == 0 || n2 == 0 { return ans } sort.Ints(nums1) sort.Ints(nums2) i1, i2 := 0, 0 for i1 < n1 && i2 < n2 { if nums1[i1] == nums2[i2] { ans = append(ans, nums1[i1]) i1++ i2++ } else if nums1[i1] < nums2[i2] { i1++ } else { i2++ } } return ans } ```
20.763636
137
0.605954
eng_Latn
0.985966
da48ec5a129f8a5137cc0215f400aa04f45c41c2
783
md
Markdown
流行/Nothing Better-首尔武林传主题曲/README.md
hsdllcw/everyonepiano-music-database
d440544ad31131421c1f6b5df0f039974521eb8d
[ "MIT" ]
17
2020-12-01T05:27:50.000Z
2022-03-28T05:03:34.000Z
流行/Nothing Better-首尔武林传主题曲/README.md
hsdllcw/everyonepiano-music-database
d440544ad31131421c1f6b5df0f039974521eb8d
[ "MIT" ]
null
null
null
流行/Nothing Better-首尔武林传主题曲/README.md
hsdllcw/everyonepiano-music-database
d440544ad31131421c1f6b5df0f039974521eb8d
[ "MIT" ]
2
2021-08-24T08:58:58.000Z
2022-02-08T08:22:52.000Z
**Nothing Better** 是韩国歌手郑烨最珍惜的 - 顶级感性的歌曲!其独特的声线让他受到众多歌迷的喜爱,不仅唱功卓越,在词曲创作上也有着非同一般的才华,是韩国灵魂乐系代表歌手之一。 作为BES组合成员之一的郑烨,在去年发布了自己的第一本solo专辑后,一举成为韩国国内最高的R&B歌手, _Nothing Better_ 作为他的代表作名曲在此本专辑里进行了重新编曲,并被MBC电视剧《首尔武林传》采纳为主题曲。 歌词下方是 _Nothing Better钢琴谱_ ,希望大家喜欢。 ### Nothing Better歌词: 내게 언젠가 왔던 너의 얼굴을 기억해 멈춰있던 내맘을, 밉게도 고장난 내 가슴을 너의 환한 미소가 쉽게도 연거야 그래 그렇게 내가 너의 사람이 된거야 못났던 내추억들이 이젠 기억조차 않나 나를 꼭잡은 손이 봄처럼 따뜻해서 이제 꿈처럼 내맘은 그대 곁에 가만히 멈춰서요 한순간도 깨지 않는 끝없는 꿈을 꿔요 이제 숨처럼 내곁에 항상 쉬며 그렇게 있어주면 nothing better nothing better than you nothing better nothing better than you 이제 꿈처럼 내맘은 그대 품에 가만히 안겨있죠 한순간도 깨지 않는 끝없는 꿈을 꾸죠 이제 숨처럼 내곁에 항상 쉬며 그렇게 있어주면 nothing better nothing better than you nothing better nothing better than you nothing better nothing better than you
22.371429
69
0.756066
kor_Hang
0.999987
da48f295a5bd0021b7be360729ae37ba0288b72a
230
md
Markdown
IoTEdge/TransparentGateway/Readme.md
terrymandin/QuickReference
7bf929fc716e352e311aed989d92abd62a1e48c8
[ "MIT" ]
2
2019-06-24T09:57:36.000Z
2022-02-21T15:40:48.000Z
IoTEdge/TransparentGateway/Readme.md
terrymandin/QuickReference
7bf929fc716e352e311aed989d92abd62a1e48c8
[ "MIT" ]
null
null
null
IoTEdge/TransparentGateway/Readme.md
terrymandin/QuickReference
7bf929fc716e352e311aed989d92abd62a1e48c8
[ "MIT" ]
null
null
null
# Azure IoT Edge Transparent Gateway - Set Hostname in config.toml to FQDN - Remove all files from: - /var/lib/aziot/keyd/keys - /var/lib/aziot/certd/certs - Test with: ```Openssl s_client -showcerts -connect <FQDN>:8883```
32.857143
69
0.713043
eng_Latn
0.556644
da4a89976df56d402763d8372e309abb04867795
69
md
Markdown
README.md
Skewmos/Rock-Paper-Scissors-Game
dddda258240a450533428b2b84b837fc880c587d
[ "MIT" ]
null
null
null
README.md
Skewmos/Rock-Paper-Scissors-Game
dddda258240a450533428b2b84b837fc880c587d
[ "MIT" ]
null
null
null
README.md
Skewmos/Rock-Paper-Scissors-Game
dddda258240a450533428b2b84b837fc880c587d
[ "MIT" ]
null
null
null
# Rock-Paper-Scissors-Game A Rock Paper Scissors Game in the browser
23
41
0.797101
kor_Hang
0.562851
da4bb34e49c37d1f585405f0b81a3c0c4ff394ec
4,627
md
Markdown
README.md
blm849/supersimplehardening
3c92262e3f5e5aa43bdc8a50b79d79079637626d
[ "MIT" ]
2
2017-11-11T01:36:24.000Z
2018-12-13T02:44:19.000Z
README.md
blm849/supersimplehardening
3c92262e3f5e5aa43bdc8a50b79d79079637626d
[ "MIT" ]
1
2017-11-11T01:38:16.000Z
2017-11-11T01:38:16.000Z
README.md
blm849/supersimplehardening
3c92262e3f5e5aa43bdc8a50b79d79079637626d
[ "MIT" ]
null
null
null
# Super simple hardening A super simple way to make Ubuntu servers connected to the Internet somewhat more secure. ## Introduction I create alot of Ubuntu test servers, and I wanted some way to make them more secure. I did alot of research on securing Ubuntu servers, and I boiled it down to a simple process to harden them. After doing this process for some time, I converted it into a number of simple Bash shell scripts that can be run in order to harden / further secure an Ubuntu server. The result is this repo. ## Warning Before running these scripts, please read the license file that comes with these scripts. Also note that these scripts address certain security risks that an Ubuntu server might have connected to the Internet. There are other risks that these scripts do not address. If in doubt, consult a Unix security expert before running these scripts. ## The Steps ### Note You need to be root to run these scripts. Before you start running the steps, do the following 1. enter: cd /tmp 2. enter: apt-get -y update 3. enter: apt-get -y install git 4. enter: git clone https://github.com/blm849/supersimplehardening 5. enter: cd super* 6. enter: chmod +x *.sh You are now ready to run the shell scripts step1.sh to step5.sh ##### Step1.sh Running this script adds a user that is goint to be part of the sudo and adm groups. This script also lets you set a password. You may want to add more than one userid. When you run this program, pass the name of the new user as a parameter. * E.g., enter: ./step1.sh newuser You will be prompted for a password for the new user, newuser Once step1.sh runs successful, you can now log in to the system with the userid newuser. Do this now. ##### Step2.sh Running this script backs up files that will be changed in step 3. The backed up files will have a name of backup.yyyymmdd_hhmmss.filename Before running step3.sh, you will need to change the file __sshd_config.add__. There is a line in this file that starts with the word _AllowUsers_. For every user you created with step1.sh, list that user on this line. * E.g., if you added two users, newuser1 and newuser2, then the line should read: * AllowUsers newuser1 newuser2 ##### Step3.sh Running this script will change files to make the server more secure. It changes the following files: * /etc/ssh/sshd_config - to prevent ssh login for root * /etc/fstab - to secure shared memory * /etc/host.conf - to prevent IP Spoofing * /etc/sysctl.conf - to disable IPv6, ICMP and broadcast requests. ##### Step3.reverse.sh Running this script will reverse the files changed by step3.sh. You need to pass the backup prefix backup.yyyymmdd_hhmmss attached to the backup files. Enter: * To get the name of the backup prefix, enter: ls backup* * you can see the prefix attached to files in your current directory Only run this if you feel something has gone wrong or if you want to reverse the changes made with step3.sh for any reason. ##### Step4.sh Running this script runs the tail command against each of the changed files, so you can see that the changes have occurred after step3.sh. Or if you run this after running Step3.reverse.sh, you can see that the changes made have been reversed. ##### Step5.sh Running this script installs a number of software packages that can help make your system more secure. Specifically it adds: * logwatch - a tool to scan your logs for security attacks * ufw - a software filewall * denyhosts - a tool to help with DDoS attacks * clamav and clamtk - antivirus software I recommend running logwatch regularly and if you don't already have a firewall, then at least use ufw. Use Google/Bing/Duckduckgo to get more information on this tools. After the script adds those tool, it runs an update on all packages. ## Finally After running all of these steps, restart sshd to prevent ssh login as root. But before you do, login to your server with root and at least one other new user that you create. Ok, now to restart sshd, enter: * service ssh restart Now try and ssh to the server and login as root. You should be unsuccessful. However you should be able to ssh into the server as the newuser and then you should be able to use sudo to run the commands you need. If you want to run a logwatch report to see what kind of attacks that people or machines are trying to run against your Ubuntu server, enter: * logwatch ## One last note This approach has worked for me. It's far from the last word on Ubuntu server security, but it will help. If you have better approaches to securing your servers, stick with what you think is best.
43.650943
386
0.765507
eng_Latn
0.999642
da4bca68b553de4a753dd50a5321c116156a989b
308
md
Markdown
README.md
shreytrivedi002/friends-website
3bfbc952ec7cb9e69043b6930546d231d7ab7302
[ "Unlicense" ]
1
2020-11-08T19:28:18.000Z
2020-11-08T19:28:18.000Z
README.md
shreytrivedi002/friends-website
3bfbc952ec7cb9e69043b6930546d231d7ab7302
[ "Unlicense" ]
null
null
null
README.md
shreytrivedi002/friends-website
3bfbc952ec7cb9e69043b6930546d231d7ab7302
[ "Unlicense" ]
null
null
null
# friends-website realtime workiing website created using basic HTML and CSS to see this website in action copy clone or download the files and folders on your local system . The website can easily be initiated by clicking/opening the index.html file and all other file run itself in correspondence
51.333333
125
0.795455
eng_Latn
0.999044
da4d651ff952c71a17a842337d8f41b7a7375fcf
786
md
Markdown
README.md
palominolabs/protobuf-util
a8e9af1bc01a887c22780ff86490354781e20b3a
[ "Apache-2.0" ]
3
2015-12-16T04:45:32.000Z
2018-02-28T13:02:40.000Z
README.md
palominolabs/protobuf-util
a8e9af1bc01a887c22780ff86490354781e20b3a
[ "Apache-2.0" ]
null
null
null
README.md
palominolabs/protobuf-util
a8e9af1bc01a887c22780ff86490354781e20b3a
[ "Apache-2.0" ]
null
null
null
[![Built on CloudBees](https://palominolabs.ci.cloudbees.com/job/protobufutil/badge/icon)](https://palominolabs.ci.cloudbees.com/job/protobufutil/) Introduction ============ Protobufutil is a library of helper routines for reading and writing protocol buffers over a socket, including over SSL/TLS. Building ======== To build the library, run `cmake . && make`. You can then run `make test` to run the unit test suite. If you are running Linux and have Valgrind available on your system, you can also run `make test_valgrind` to run the test suite under Valgrind. To incorporate protobufutil into another project, make sure the `include/` directory is on your compiler's header search path. You can link against the static library produced by the build process, `libprotobufutil.a`.
43.666667
147
0.768448
eng_Latn
0.991478
da4daae35dae2b4139d04a93b1a62007562f1c05
37
md
Markdown
_countries/hongkong.md
iix21/iix21.github.io
11194c04d44c1c3aa3778648af60e89262df20c9
[ "BSD-3-Clause" ]
null
null
null
_countries/hongkong.md
iix21/iix21.github.io
11194c04d44c1c3aa3778648af60e89262df20c9
[ "BSD-3-Clause" ]
null
null
null
_countries/hongkong.md
iix21/iix21.github.io
11194c04d44c1c3aa3778648af60e89262df20c9
[ "BSD-3-Clause" ]
null
null
null
--- title: Hongkong iso_code: hk ---
7.4
15
0.621622
est_Latn
0.349093
da4fc426acbf5ccbcc7c984c240e65d455032dce
17
md
Markdown
README.md
CollierPlays/fluffy-bassoon
31979ed009d5f7e3200d49efbd410b706606c94e
[ "MIT" ]
1
2021-03-28T13:42:01.000Z
2021-03-28T13:42:01.000Z
README.md
CollierPlays/fluffy-bassoon
31979ed009d5f7e3200d49efbd410b706606c94e
[ "MIT" ]
1
2021-01-05T20:19:24.000Z
2021-01-05T20:19:24.000Z
README.md
CollierPlays/fluffy-bassoon
31979ed009d5f7e3200d49efbd410b706606c94e
[ "MIT" ]
1
2021-01-22T20:19:32.000Z
2021-01-22T20:19:32.000Z
# Fluffy Bassoon
8.5
16
0.764706
eng_Latn
0.834879
da510bf960fd9a26277a61b0bb5c131a712e1fe5
1,605
markdown
Markdown
content/post/2007-06-19-macbook-impressions.markdown
dylanreed/dylan.blog
dff243aebb34f06b373c432d8f5d8856e395eb71
[ "CC0-1.0" ]
null
null
null
content/post/2007-06-19-macbook-impressions.markdown
dylanreed/dylan.blog
dff243aebb34f06b373c432d8f5d8856e395eb71
[ "CC0-1.0" ]
null
null
null
content/post/2007-06-19-macbook-impressions.markdown
dylanreed/dylan.blog
dff243aebb34f06b373c432d8f5d8856e395eb71
[ "CC0-1.0" ]
null
null
null
--- author: display_name: Dylan email: [email protected] login: dylan url: / author_email: [email protected] author_login: dylan author_url: / categories: - Awesome comments: [] date: "2007-06-19T09:12:51Z" date_gmt: 2007-06-19 15:12:51 -0500 published: true status: publish tags: [] title: Macbook Impressions wordpress_id: 417 wordpress_url: http://www.dylanreed.org/2007/06/19/macbook-impressions/ --- As a fairly long term PC user I was a little nervous about getting a Macbook. Not because I was afraid it wouldn't work but because I hate learning new operating systems. Luckily not a lot has changed since I had my purple iMac back in 2000. The main difference between the to Mac OS versions that I can see is the dock at the bottom of the screen. I find that this is an easier system to use then my Windows Taskbar that I have so full at work. The only sad day is that getting to applications that you don't want on you dock can be a lot of clicking compared to the Start menu in windows. However, it is rare that I need to use something not in the dock. What has made this whole transition smoother is the fact that we haven't been using our PC that much at home and once the Macbook arrived it was easy to get into Mac OS x thinking from work. I do find myself trying to use the same shortcuts in Photoshop on the mac as I use at work, which works out ok except when I need to be using the Open Apple key. The funniest thing is that I find my self looking for the open apple key on my keyboard at work or ctrl clicking instead of using the other mouse buttons. It is awesome.
48.636364
352
0.770093
eng_Latn
0.999631
da5179bbdf73e8218907d9e2749fd45cd3f99315
695
md
Markdown
apps/ReportDemo/README.md
StratifyLabs/ReportAPI
1eb3b891197b9b4c06b4cd852bb84fc7ed83db1e
[ "MIT" ]
null
null
null
apps/ReportDemo/README.md
StratifyLabs/ReportAPI
1eb3b891197b9b4c06b4cd852bb84fc7ed83db1e
[ "MIT" ]
null
null
null
apps/ReportDemo/README.md
StratifyLabs/ReportAPI
1eb3b891197b9b4c06b4cd852bb84fc7ed83db1e
[ "MIT" ]
null
null
null
# HelloWorld This project shows just how easy it is to write programs for Stratify OS. Stratity OS takes care of all the hardware initialization (including stdio initialization) so you can just start writing code. If you haven't already done so, you need to get set up with some hardware and the software tools using the [Stratify Labs web application](https://app.stratifylabs.co/) which has installation instructions and tutorials. Once you install the command line tool, you can clone and build HelloWorld using: ``` sl application.create:name=HelloWorld sl application.build:path=HelloWorld sl application.install:path=HelloWorld,run,terminal # need connected hardware for this one ```
49.642857
219
0.801439
eng_Latn
0.997085
da51910845189fc23623e9ec8f4480bc21b1d917
15,367
md
Markdown
tutorial-day-1/command-line-tools/02_timemory_run/06_binary_rewrite_region_sync/README.md
NERSC/timemory-tutorials
06056bfad1599364d0f881d53f280b2308313e69
[ "MIT" ]
15
2020-08-10T11:42:30.000Z
2021-07-29T06:18:41.000Z
tutorial-day-1/command-line-tools/02_timemory_run/06_binary_rewrite_region_sync/README.md
NERSC/timemory-tutorials
06056bfad1599364d0f881d53f280b2308313e69
[ "MIT" ]
6
2020-07-13T16:37:34.000Z
2021-05-20T10:50:01.000Z
tutorial-day-1/command-line-tools/02_timemory_run/06_binary_rewrite_region_sync/README.md
NERSC/timemory-tutorials
06056bfad1599364d0f881d53f280b2308313e69
[ "MIT" ]
2
2020-10-22T19:22:19.000Z
2021-04-19T15:36:10.000Z
# timemory-run region synchronization This example demonstrates `timemory-run` dynamic instrumentation synchronization with in-source instrumentation in case of 'trace' and 'region' instrumentation modes. In case of `trace` mode, `timemory-run` has no effect on the instrumentation of in-source used components whereas the instrumentation is added for components not used in-source. On the other hand, in `region` mode, the instrumentaion of in-source used components is synchronized with `timemory-run` added instrumentation. ## About timemory-run See [About timemory-run in 06_timemory_run_launch_process](../06_timemory_run_launch_process/README.md#about-timemory-run). ## Usage ```console $ timemory-run --mode=[region or trace] [OPTIONS] -o [INSTRUMENTED_BINARY] -- [BINARY] [ARGS] ``` ## Example The PEAK RSS table for basic.region example in trace mode is unaffected of `timemory-run`. ```console $ timemory-run --mode=trace -o trace.inst -- basic.region && trace.inst |----------------------------------------------------------------------------------------------------------------------------| | MEASURES CHANGES IN THE HIGH-WATER MARK FOR THE AMOUNT OF MEMORY ALLOCATED IN RAM. MAY FLUCTUATE IF SWAP IS ENABLED | |----------------------------------------------------------------------------------------------------------------------------| | LABEL | COUNT | DEPTH | METRIC | UNITS | SUM | MEAN | MIN | MAX | STDDEV | % SELF | |--------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> ./13_trace.inst | 1 | 0 | peak_rss | MB | 0.604 | 0.604 | 0.604 | 0.604 | 0.000 | 0.0 | | >>> |_generation-region | 1 | 1 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_thread-region | 1 | 1 | peak_rss | MB | 0.604 | 0.604 | 0.604 | 0.604 | 0.000 | 33.8 | | >>> |_thread-parallel-region | 10 | 2 | peak_rss | MB | 0.400 | 0.040 | 0.000 | 0.400 | 0.126 | 100.0 | | >>> |_fibonacci | 10 | 3 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_mpi-region | 1 | 1 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_fibonacci | 20 | 2 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------------------------------------------------------------| ``` The PEAK RSS table for basic.region example in region mode is synchronized with `timemory-run`. ```console $ timemory-run --mode=trace -o region.inst -- basic.region && region.inst |------------------------------------------------------------------------------------------------------------------------------------------------------------------| | MEASURES CHANGES IN THE HIGH-WATER MARK FOR THE AMOUNT OF MEMORY ALLOCATED IN RAM. MAY FLUCTUATE IF SWAP IS ENABLED | |------------------------------------------------------------------------------------------------------------------------------------------------------------------| | LABEL | COUNT | DEPTH | METRIC | UNITS | SUM | MEAN | MIN | MAX | STDDEV | % SELF | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> ./13_region.inst | 1 | 0 | peak_rss | MB | 0.748 | 0.748 | 0.748 | 0.748 | 0.000 | 0.0 | | >>> |_generation-region | 1 | 1 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_thread-region | 1 | 1 | peak_rss | MB | 0.748 | 0.748 | 0.748 | 0.748 | 0.000 | 87.2 | | >>> |_thread-parallel-region | 10 | 2 | peak_rss | MB | 0.096 | 0.010 | 0.000 | 0.096 | 0.030 | 0.0 | | >>> |_fibonacci | 10 | 3 | peak_rss | MB | 0.096 | 0.010 | 0.000 | 0.096 | 0.030 | 0.0 | | >>> |_fibonacci | 10 | 4 | peak_rss | MB | 0.096 | 0.010 | 0.000 | 0.096 | 0.030 | 0.0 | | >>> |_impl_fibonacci | 25 | 5 | peak_rss | MB | 0.096 | 0.004 | 0.000 | 0.096 | 0.019 | 0.0 | | >>> |_impl_fibonacci | 40 | 6 | peak_rss | MB | 0.096 | 0.002 | 0.000 | 0.096 | 0.015 | 100.0 | | >>> |_impl_fibonacci | 50 | 7 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 42 | 8 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 35 | 9 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 16 | 10 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 10 | 11 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2 | 12 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1 | 13 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_mpi-region | 1 | 1 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_fibonacci | 20 | 2 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_fibonacci | 20 | 3 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 100 | 4 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 330 | 5 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 825 | 6 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1584 | 7 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2640 | 8 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 3432 | 9 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 4290 | 10 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 4004 | 11 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 4004 | 12 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2730 | 13 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2275 | 14 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1120 | 15 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 800 | 16 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 272 | 17 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 170 | 18 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 36 | 19 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 20 | 20 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2 | 21 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1 | 22 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_allreduce | 1 | 2 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 12 | 2 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 78 | 3 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 286 | 4 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1001 | 5 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 2002 | 6 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 5005 | 7 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 6435 | 8 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 12870 | 9 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 11440 | 10 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 19448 | 11 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 12376 | 12 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 18564 | 13 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 8568 | 14 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 11628 | 15 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 3876 | 16 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 4845 | 17 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1140 | 18 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1330 | 19 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 210 | 20 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 231 | 21 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 22 | 22 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 23 | 23 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |----------------------------------------------------------------------|--------|--------|----------|--------|--------|--------|--------|--------|--------|--------| | >>> |_impl_fibonacci | 1 | 24 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_impl_fibonacci | 1 | 25 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_scatter_gather | 10 | 2 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | | >>> |_create_rand_nums | 10 | 3 | peak_rss | MB | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.0 | |------------------------------------------------------------------------------------------------------------------------------------------------------------------| ```
130.228814
488
0.311577
yue_Hant
0.294222
da52f0e20085ea1f93bcc33aeab209bf36b57c7d
853
md
Markdown
docs/classes/BinarySearch.md
neoscrib/2a
ae160bf10d5d72f4b9ed820f57d166275873227e
[ "MIT" ]
null
null
null
docs/classes/BinarySearch.md
neoscrib/2a
ae160bf10d5d72f4b9ed820f57d166275873227e
[ "MIT" ]
1
2021-08-18T00:45:01.000Z
2021-08-18T00:45:01.000Z
docs/classes/BinarySearch.md
neoscrib/2a
ae160bf10d5d72f4b9ed820f57d166275873227e
[ "MIT" ]
null
null
null
[2a](../README.md) / BinarySearch # Class: BinarySearch ## Table of contents ### Constructors - [constructor](BinarySearch.md#constructor) ### Methods - [find](BinarySearch.md#find) ## Constructors ### constructor • **new BinarySearch**() ## Methods ### find ▸ `Static` **find**<`T`\>(`source`, `index`, `length`, `item`, `comparator?`): `number` #### Type parameters | Name | | :------ | | `T` | #### Parameters | Name | Type | Default value | | :------ | :------ | :------ | | `source` | `T`[] | `undefined` | | `index` | `number` | `undefined` | | `length` | `number` | `undefined` | | `item` | `T` | `undefined` | | `comparator` | (`a`: `T`, `b`: `T`) => `number` | `Comparator.defaultComparator` | #### Returns `number` #### Defined in [src/BinarySearch.ts:4](https://github.com/neoscrib/2a/blob/7f6e6ab/src/BinarySearch.ts#L4)
17.06
91
0.573271
yue_Hant
0.548042
da535f081d2ae3b758ee493cf6d9efdab649ecc2
14,564
md
Markdown
content/CSS.md
jacksparrow66/web-interview-master
2f9bf15ef29ae2c3ebf274f7b346271896ae59fd
[ "MIT" ]
null
null
null
content/CSS.md
jacksparrow66/web-interview-master
2f9bf15ef29ae2c3ebf274f7b346271896ae59fd
[ "MIT" ]
null
null
null
content/CSS.md
jacksparrow66/web-interview-master
2f9bf15ef29ae2c3ebf274f7b346271896ae59fd
[ "MIT" ]
null
null
null
# [返回主页](https://github.com/yisainan/web-interview/blob/master/README.md) <b><details><summary>1.实现不使用 border 画出 1px 高的线,在不同浏览器的标准模式与怪异模式下都能保持一致的效果。</summary></b> 答案: ```html <div style="height:1px;overflow:hidden;background:red"></div> ``` </details> <b><details><summary>2.介绍一下标准的 CSS 的盒子模型?低版本 IE 的盒子模型有什么不同的?</summary></b> 答案: (1)有两种, IE 盒子模型、W3C 盒子模型; (2)盒模型: 内容(content)、填充(padding)、边界(margin)、 边框(border); (3)区 别: IE 的 content 部分把 border 和 padding 计算了进去; </details> <b><details><summary>3.CSS 隐藏元素的几种方法(至少说出三种)</summary></b> 答案: Opacity:元素本身依然占据它自己的位置并对网页的布局起作用。它也将响应用户交互; Visibility:与 opacity 唯一不同的是它不会响应任何用户交互。此外,元素在读屏软件中也会被隐藏; Display:display 设为 none 任何对该元素直接打用户交互操作都不可能生效。此外,读屏软件也不会读到元素的内容。这种方式产生的效果就像元素完全不存在; Position:不会影响布局,能让元素保持可以操作; Clip-path:clip-path 属性还没有在 IE 或者 Edge 下被完全支持。如果要在你的 clip-path 中使用外部的 SVG 文件,浏览器支持度还要低; </details> <b><details><summary>4.CSS 清除浮动的几种方法(至少两种)</summary></b> 答案: ``` 清除浮动: 核心:clear:both; 1.使用额外标签法(不推荐使用) 在浮动的盒子下面再放一个标签,使用 clear:both;来清除浮动 a 内部标签:会将父盒子的高度重新撑开 b 外部标签:只能将浮动盒子的影响清除,但是不会撑开盒子 2.使用 overflow 清除浮动(不推荐使用) 先找到浮动盒子的父元素,给父元素添加一个属性:overflow:hidden;就会清除子元素对页面的影响 3.使用伪元素清除浮动(用的最多) 伪元素:在页面上不存在的元素,但是可以通过 css 添加上去 种类:                   :after(在。。。之后)                   :before(在。。。之前) 注意:每个元素都有自己的伪元素 .clearfix:after {     content:"";     height:0;     line-height:0;     display:block;     clear:both;     visibility:hidden;  /_将元素隐藏起来_/        在页面的 clearfix 元素后面添加了一个空的块级元素      (这个元素的高为 0 行高也为 0   并且这个元素清除了浮动) } .clearfix {   zoom:1;/_为了兼容 IE6_/ } ``` </details> <b><details><summary>5.页面导入样式时,使用 link 和@import 有什么区别?</summary></b> 答案: 1. Link 属于 html 标签,而@import 是 CSS 中提供的 2. 在页面加载的时候,link 会同时被加载,而@import 引用的 CSS 会在页面加载完成后才会加载引用的 CSS 3. @import 只有在 ie5 以上才可以被识别,而 link 是 html 标签,不存在浏览器兼容性问题 4. Link 引入样式的权重大于@import 的引用(@import 是将引用的样式导入到当前的页面中) </details> <b><details><summary>6.伪元素和伪类的区别?</summary></b> 答案: 1、伪元素使用 2 个冒号,常见的有:::before,::after,::first-line,::first-letter,::selection、::placeholder 等; 伪类使用1个冒号,常见的有::hover,:link,:active,:target,:not(),:focus等。 2、伪元素添加了一个页面中没有的元素(只是从视觉效果上添加了,不是在文档树中添加); 伪类是给页面中已经存在的元素添加一个类。 </details> <b><details><summary>7. CSS 选择符有哪些?哪些属性可以继承?优先级算法如何计算? CSS3 新增伪类有那些?</summary></b> 答案: ```    1.id选择器( # myid)         2.类选择器(.myclassname)         3.标签选择器(div, h1, p)         4.相邻选择器(h1 + p)         5.子选择器(ul < li)         6.后代选择器(li a)         7.通配符选择器( * )         8.属性选择器(a[rel = "external"])         9.伪类选择器(a: hover, li: nth - child)     *   可继承: font-size font-family color, UL LI DL DD DT;     *   不可继承 :border padding margin width height ;     *   优先级就近原则,样式定义最近者为准;     *   载入样式以最后载入的定位为准; 优先级为:        !important >  id > class > tag          important 比 内联优先级高 CSS3新增伪类举例:     p:first-of-type 选择属于其父元素的首个 <p> 元素的每个 <p> 元素。     p:last-of-type  选择属于其父元素的最后 <p> 元素的每个 <p> 元素。     p:only-of-type  选择属于其父元素唯一的 <p> 元素的每个 <p> 元素。     p:only-child    选择属于其父元素的唯一子元素的每个 <p> 元素。     p:nth-child(2)  选择属于其父元素的第二个子元素的每个 <p> 元素。     :enabled、:disabled 控制表单控件的禁用状态。     :checked,单选框或复选框被选中。 ``` </details> <b><details><summary>8. 行内元素和块级元素的具体区别是什么?行内元素的 padding 和 margin 可设置吗?</summary></b> 答案: - 块级元素(block)特性: - 总是独占一行,表现为另起一行开始,而且其后的元素也必须另起一行显示; - 宽度(width)、高度(height)、内边距(padding)和外边距(margin)都可控制; - 内联元素(inline)特性: - 和相邻的内联元素在同一行; - 宽度(width)、高度(height)、内边距的 top/bottom(padding-top/padding-bottom)和外边距的 top/bottom(margin-top/margin-bottom)都不可改变(也就是 padding 和 margin 的 left 和 right 是可以设置的),就是里面文字或图片的大小。 那么问题来了,浏览器还有默认的天生 inline-block 元素(拥有内在尺寸,可设置高宽,但不会自动换行),有哪些? 答案:`<input> 、<img> 、<button> 、<texterea> 、<label>。` </details> <b><details><summary>9. 什么是外边距重叠?重叠的结果是什么?</summary></b> 答案: 外边距重叠就是 margin-collapse。 在 CSS 当中,相邻的两个盒子(可能是兄弟关系也可能是祖先关系)的外边距可以结合成一个单独的外边距。这种合并外边距的方式被称为折叠,并且因而所结合成的外边距称为折叠外边距。 折叠结果遵循下列计算规则: 1. 两个相邻的外边距都是正数时,折叠结果是它们两者之间较大的值。 2. 两个相邻的外边距都是负数时,折叠结果是两者绝对值的较大值。 3. 两个外边距一正一负时,折叠结果是两者的相加的和。 </details> <b><details><summary>10. rgba()和 opacity 的透明效果有什么不同?</summary></b> 答案: rgba()和 opacity 都能实现透明效果,但最大的不同是 opacity 作用于元素,以及元素内的所有内容的透明度, 而 rgba()只作用于元素的颜色或其背景色。(设置 rgba 透明的元素的子元素不会继承透明效果!) </details> <b><details><summary>11. css 中可以让文字在垂直和水平方向上重叠的两个属性是什么?</summary></b> 答案: 垂直方向:line-height 水平方向:letter-spacing 那么问题来了,关于 letter-spacing 的妙用知道有哪些么? 答案:可以用于消除 inline-block 元素间的换行符空格间隙问题。 </details> <b><details><summary>12. px 和 em 的区别。</summary></b> 答案:px 和 em 都是长度单位,区别是,px 的值是固定的,指定是多少就是多少,计算比较容易。em 得值不是固定的,并且 em 会继承父级元素的字体大小。 浏览器的默认字体高都是 16px。所以未经调整的浏览器都符合: 1em=16px。那么 12px=0.75em, 10px=0.625em。 </details> <b><details><summary>13. 如何垂直居中一个浮动元素?</summary></b> 答案: ```css // 方法一:已知元素的高宽 #div1{     background-color:#6699FF;     width:200px;     height:200px;     position: absolute;        //父元素需要相对定位     top: 50%;     left: 50%;     margin-top:-100px ;   //二分之一的height,width     margin-left: -100px;     }   //方法二:未知元素的高宽     #div1{     width: 200px;     height: 200px;     background-color: #6699FF;     margin:auto;     position: absolute;        //父元素需要相对定位     left: 0;     top: 0;     right: 0;     bottom: 0;     } ``` 那么问题来了,如何垂直居中一个`<img>?`(用更简便的方法。) ```css #container //<img>的容器设置如下 { display: table-cell; text-align: center; vertical-align: middle; } ``` </details> <b><details><summary>14.BFC </summary></b> 答案: - 什么是 BFC BFC(Block Formatting Context)格式化上下文,是 Web 页面中盒模型布局的 CSS 渲染模式,指一个独立的渲染区域或者说是一个隔离的独立容器。 - 形成 BFC 的条件 - 浮动元素,float 除 none 以外的值 - 定位元素,position(absolute,fixed) - display 为以下其中之一的值 inline-block,table-cell,table-caption - overflow 除了 visible 以外的值(hidden,auto,scroll) - BFC 的特性 - 内部的 Box 会在垂直方向上一个接一个的放置。 - 垂直方向上的距离由 margin 决定 - bfc 的区域不会与 float 的元素区域重叠。 - 计算 bfc 的高度时,浮动元素也参与计算 - bfc 就是页面上的一个独立容器,容器里面的子元素不会影响外面元素。 </details> <b><details><summary>15.用纯 CSS 创建一个三角形的原理是什么? </summary></b> 答案: ```css span { width: 0; height: 0; border-top: 40px solid transparent; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 40px solid #ff0000; } ``` ![css_001](../images/css_001.jpg) </details> <b><details><summary>16. Sass、LESS 是什么?大家为什么要使用他们?</summary></b> 答案:他们是 CSS 预处理器。他是 CSS 上的一种抽象层。他们是一种特殊的语法/语言编译成 CSS。 例如 Less 是一种动态样式语言. 将 CSS 赋予了动态语言的特性,如变量,继承,运算, 函数. LESS 既可以在客户端上运行 (支持 IE 6+, Webkit, Firefox),也可一在服务端运行 (借助 Node.js)。 为什么要使用它们? 结构清晰,便于扩展。 可以方便地屏蔽浏览器私有语法差异。这个不用多说,封装对浏览器语法差异的重复处理,减少无意义的机械劳动。 可以轻松实现多重继承。 完全兼容 CSS 代码,可以方便地应用到老项目中。LESS 只是在 CSS 语法上做了扩展,所以老的 CSS 代码也可以与 LESS 代码一同编译。 </details> <b><details><summary>17. display:none 与 visibility:hidden 的区别是什么?</summary></b> 答案: display :  隐藏对应的元素但不挤占该元素原来的空间。 visibility:  隐藏对应的元素并且挤占该元素原来的空间。 即是,使用 CSS display:none 属性后,HTML 元素(对象)的宽度、高度等各种属性值都将“丢失”;而使用 visibility:hidden 属性后,HTML 元素(对象)仅仅是在视觉上看不见(完全透明),而它所占据的空间位置仍然存在。 </details> <b><details><summary>18. 移动端 1px 问题的解决办法</summary></b> 答案:推荐解决方法:媒体查询 + transfrom ``` /* 2倍屏 */ @media only screen and (-webkit-min-device-pixel-ratio: 2.0) { .border-bottom::after { -webkit-transform: scaleY(0.5); transform: scaleY(0.5); } } /* 3倍屏 */ @media only screen and (-webkit-min-device-pixel-ratio: 3.0) { .border-bottom::after { -webkit-transform: scaleY(0.33); transform: scaleY(0.33); } } ``` [其他解决方案参考](https://www.jianshu.com/p/31f8907637a6) </details> <b><details><summary>19. 哪些 css 属性可以继承?</summary></b> 答案: 可继承: font-size font-family color, ul li dl dd dt; 不可继承 :border padding margin width height ; </details> <b><details><summary>22. 设备像素比</summary></b> 答案:我的书签 </details> <b><details><summary>24. ::bofore 和 :after 中双冒号和单冒号有什么区别?</summary></b> 答案: </details> <b><details><summary>25. 说下 CSS3 中一些样式的兼容,分别指兼容哪些浏览器</summary></b> 答案: </details> <b><details><summary>26. 有哪些手段可以优化 CSS, 提高性能</summary></b> 答案: </details> <b><details><summary>27. 怎么样实现边框 0.5 个像素?</summary></b> 答案: </details> <b><details><summary>28. transform translate transition 的区别</summary></b> 答案: </details> <b><details><summary>29. 请解释一下 CSS3 的 Flexbox(弹性盒布局模型),以及适用场景?</summary></b> 答案: </details> <b><details><summary>30. 用纯 CSS 创建一个三角形的原理是什么?</summary></b> 答案: </details> <b><details><summary>31. 一个满屏 品 字布局 如何设计?</summary></b> 答案: </details> <b><details><summary>32. li 与 li 之间有看不见的空白间隔是什么原因引起的?有什么解决办法?</summary></b> 答案:浏览器的默认行为是把 inline 元素间的空白字符(空格换行 tab)渲染成一个空格,也就是我们上面的代码<li>换行后会产生换行字符,而它会变成一个空格,当然空格就占用一个字符的宽度。 解决方案: 方法一:既然是因为`<li>`换行导致的,那就可以将`<li>`代码全部写在一排,如下 ```html <div class="wrap"> <h3>li标签空白测试</h3> <ul> <li class="part1"></li> <li class="part2"></li> <li class="part3"></li> <li class="part4"></li> </ul> </div> ``` 方法二:我们为了代码美观以及方便修改,很多时候我们不可能将`<li>`全部写在一排,那怎么办?既然是空格占一个字符的宽度,那我们索性就将`<ul>`内的字符尺寸直接设为 0,将下面样式放入样式表,问题解决。 ```css .wrap ul { font-size: 0px; } ``` 但随着而来的就是`<ul>`中的其他文字就不见了,因为其尺寸被设为 0px 了,我们只好将他们重新设定字符尺寸。 方法三:本来以为方法二能够完全解决问题,但经测试,将 li 父级标签字符设置为 0 在 Safari 浏览器依然出现间隔空白;既然设置字符大小为 0 不行,那咱就将间隔消除了,将下面代码替换方法二的代码,目前测试完美解决。同样随来而来的问题是 li 内的字符间隔也被设置了,我们需要将 li 内的字符间隔设为默认。 ```css .wrap ul { letter-spacing: -5px; } ``` 之后记得设置 li 内字符间隔 ```css .wrap ul li { letter-spacing: normal; } ``` </details> <b><details><summary>33. 全屏滚动的原理是什么?用到了 CSS 的那些属性?</summary></b> 答案: </details> <b><details><summary>34. 什么是响应式设计?响应式设计的基本原理是什么?如何兼容低版本的 IE?</summary></b> 答案: </details> <b><details><summary>35. 何修改 chrome 记住密码后自动填充表单的黄色背景 ?</summary></b> 答案: </details> <b><details><summary>36. 你对 line-height 是如何理解的?</summary></b> 答案: </details> <b><details><summary>37 .设置元素浮动后,该元素的 display 值是多少?</summary></b> 答案: 自动变成 display:block </details> <b><details><summary>38. 怎么让 Chrome 支持小于 12px 的文字?</summary></b> 答案: </details> <b><details><summary>39. 让页面里的字体变清晰,变细用 CSS 怎么做?</summary></b> 答案: -webkit-font-smoothing: antialiased; </details> <b><details><summary>40. font-style 属性可以让它赋值为“oblique” oblique 是什么意思?</summary></b> 答案: </details> <b><details><summary>41 .position:fixed;在 android 下无效怎么处理?</summary></b> 答案: </details> <b><details><summary>42. 如果需要手动写动画,你认为最小时间间隔是多久,为什么?</summary></b> 答案: </details> <b><details><summary>43. display:inline-block 什么时候会显示间隙?</summary></b> 答案:间隙产生的原因是因为,换行或空格会占据一定的位置 推荐解决方法: 父元素中设置 font-size:0;letter-spaceing:-4px; </details> <b><details><summary>44. overflow: scroll 时不能平滑滚动的问题怎么处理?</summary></b> 答案: </details> <b><details><summary>45. 有一个高度自适应的 div,里面有两个 div,一个高度 100px,希望另一个填满剩下的高度。</summary></b> 答案: </details> <b><details><summary>46. png、jpg、gif 这些图片格式解释一下,分别什么时候用?,webp 呢</summary></b> 答案: gif 图形交换格式,索引颜色格式,颜色少的情况下,产生的文件极小,支持背景透明,动画,图形渐进,无损压缩(适合线条,图标等),缺点只有 256 种颜色 jpg 支持上百万种颜色,有损压缩,压缩比可达 180:1,而且质量受损不明显,不支持图形渐进与背景透明,不支持动画 png 为替代 gif 产生的,位图文件,支持透明,半透明,不透明。不支持动画,无损图像格式。Png8 简单说是静态 gif,也只有 256 色,png24 不透明,但不止 256 色。 webp 谷歌开发的旨在加快图片加载速度的图片格式,图片压缩体积是 jpeg 的 2/3,有损压缩。高版本的 W3C 浏览器才支持,google39+,safari7+ </details> <b><details><summary>47. style 标签写在 body 后与 body 前有什么区别?</summary></b> 答案: 从上向下加载,加载顺序不同 </details> <b><details><summary>48. CSS 中可以通过哪些属性定义,使得一个 DOM 元素不显示在浏览器可视范围内?</summary></b> 答案: 最基本的: 设置 display 属性为 none,或者设置 visibility 属性为 hidden 技巧性: 设置宽高为 0,设置透明度为 0,设置 z-index 位置在-1000em </details> <b><details><summary>49. 超链接访问过后 hover 样式就不出现的问题是什么?如何解决?</summary></b> 答案:被点击访问过的超链接样式不在具有 hover 和 active 了,解决方法是改变 CSS 属性的排列顺序: L-V-H-A(link,visited,hover,active) </details> <b><details><summary>50. 什么是 Css Hack?ie6,7,8 的 hack 分别是什么?</summary></b> 答案:针对不同的浏览器写不同的 CSS code 的过程,就是 CSS hack。 示例如下: ```css #test{ width:300px; height:300px; background-color:blue;      /_firefox_/ background-color:red\9;      /_all ie_/ background-color:yellow;    /_ie8_/ +background-color:pink;        /_ie7_/ \_background-color:orange;       /_ie6_/    }  :root #test { background-color:purple\9; }  /*ie9*/ @media all and (min-width:0px)      { #test {background-color:black;} }  /*opera*/ @media screen and (-webkit-min-device-pixel-ratio:0) { #test {background-color:gray;} }       /*chrome and safari*/ ``` </details> <b><details><summary>51. 描述一个”reset”的 CSS 文件并如何使用它。知道 normalize.css 吗?你了解他们的不同之处?</summary></b> 答案: 重置样式非常多,凡是一个前端开发人员肯定有一个常用的重置 CSS 文件并知道如何使用它们。他们是盲目的在做还是知道为什么这么做呢?原因是不同的浏览器对一些元素有不同的默认样式,如果你不处理,在不同的浏览器下会存在必要的风险,或者更有戏剧性的性发生。 你可能会用 Normalize 来代替你的重置样式文件。它没有重置所有的样式风格,但仅提供了一套合理的默认样式值。既能让众多浏览器达到一致和合理,但又不扰乱其他的东西(如粗体的标题)。 在这一方面,无法做每一个复位重置。它也确实有些超过一个重置,它处理了你永远都不用考虑的怪癖,像 HTML 的 audio 元素不一致或 line-height 不一致。 </details> <b><details><summary>css sprite是什么,有什么优缺点</summary></b> 答案: </details> <b><details><summary>什么是FOUC?如何避免</summary></b> 答案: </details> <b><details><summary>css3有哪些新特性</summary></b> 答案: </details> <b><details><summary>display有哪些值?说明他们的作用</summary></b> 答案: </details> <b><details><summary>display:inline-block 什么时候不会显示间隙?(携程)</summary></b> 答案: </details> <b><details><summary>PNG,GIF,JPG的区别及如何选</summary></b> 答案: </details> <b><details><summary>行内元素float:left后是否变为块级元素?</summary></b> 答案: </details> <b><details><summary>在网页中的应该使用奇数还是偶数的字体?为什么呢?</summary></b> 答案: </details> <b><details><summary>CSS合并方法</summary></b> 答案: </details> <b><details><summary>列出你所知道可以改变页面布局的属性</summary></b> 答案: </details> <b><details><summary>CSS在性能优化方面的实践</summary></b> 答案: </details> <b><details><summary>CSS3动画(简单动画的实现,如旋转等)</summary></b> 答案: </details> <b><details><summary>base64的原理及优缺点</summary></b> 答案: </details> <b><details><summary>几种常见的CSS布局</summary></b> 答案: </details> <b><details><summary>stylus/sass/less区别</summary></b> 答案: </details> <b><details><summary>postcss的作用</summary></b> 答案: </details> <b><details><summary>自定义字体的使用场景</summary></b> 答案: </details> <b><details><summary>如何美化CheckBox</summary></b> 答案: </details> <b><details><summary>base64的使用</summary></b> 答案: </details>
18.002472
174
0.647624
yue_Hant
0.629656
da53e20ee316deb13a537621d8a112679f789f0c
5,908
md
Markdown
tika-server/README.md
puthurr/tika
339a6e40a838aa95c1f3b02bd95081c459c8a6ea
[ "Apache-2.0" ]
null
null
null
tika-server/README.md
puthurr/tika
339a6e40a838aa95c1f3b02bd95081c459c8a6ea
[ "Apache-2.0" ]
1
2021-09-09T16:11:02.000Z
2021-09-11T13:37:01.000Z
tika-server/README.md
puthurr/tika
339a6e40a838aa95c1f3b02bd95081c459c8a6ea
[ "Apache-2.0" ]
null
null
null
# Apache Tika Server https://cwiki.apache.org/confluence/display/TIKA/TikaJAXRS Running ------- ``` $ java -jar tika-server/target/tika-server.jar --help usage: tikaserver -?,--help this help message -h,--host <arg> host name (default = localhost) -l,--log <arg> request URI log level ('debug' or 'info') -p,--port <arg> listen port (default = 9998) -s,--includeStack whether or not to return a stack trace if there is an exception during 'parse' ``` Running via Docker ------------------ Assuming you have Docker installed, you can use a prebuilt image: `docker run -d -p 9998:9998 apache/tika` This will load Apache Tika Server and expose its interface on: `http://localhost:9998` You may also be interested in the https://github.com/apache/tika-docker project which provides prebuilt Docker images. Installing as a Service on Linux ----------------------- To run as a service on Linux you need to run the `install_tika_service.sh` script. Assuming you have the binary distribution like `tika-server-1.24-bin.tgz`, then you can extract the install script via: `tar xzf tika-server-1.24-bin.tgz tika-server-1.24-bin/bin/install_tika_service.sh --strip-components=2` and then run the installation process via: `./install_tika_service.sh ./tika-server-1.24-bin.tgz` Usage ----- Usage examples from command line with `curl` utility: * Extract plain text: `curl -T price.xls http://localhost:9998/tika` * Extract text with mime-type hint: `curl -v -H "Content-type: application/vnd.openxmlformats-officedocument.wordprocessingml.document" -T document.docx http://localhost:9998/tika` * Get all document attachments as ZIP-file: `curl -v -T Doc1_ole.doc http://localhost:9998/unpack > /var/tmp/x.zip` * Extract metadata to CSV format: `curl -T price.xls http://localhost:9998/meta` * Detect media type from CSV format using file extension hint: `curl -X PUT -H "Content-Disposition: attachment; filename=foo.csv" --upload-file foo.csv http://localhost:9998/detect/stream` HTTP Return Codes ----------------- `200` - Ok `204` - No content (for example when we are unpacking file without attachments) `415` - Unknown file type `422` - Unparsable document of known type (password protected documents and unsupported versions like Biff5 Excel) `500` - Internal error ## Azure Blob Storage Support Our version of Tika Server includes support for Azure Blob Storage for unpacking resources from documents. Tika's unpack implementation loads all resources im memory to serve a zip/tar archive in response. Documents with a lot of embedded images like scanned-pdf you will hit OOM. To workaround this and support writing embedded resources directly in an Azure Blob storage, we added an azure-unpack endpoint i.e. **http://localhost:9998/azure-unpack** Another endpoint named **/azure-status** have been created to check the accessibility of the Azure Storage account from the defined connection string. ### Azure Blob Storage Connection - Environment Variable Azure Blob connection string is taken from the environment variable **AZURE_STORAGE_CONNECTION_STRING**. Some documentation to help your knowledge on Azure Storage & Java - https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java - https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java#configure-your-storage-connection-string Once you have a connection string bound to the environment where your Tika server runs, we need to indicate the container and path where we want our resources to be unpacked. ### Azure Blob Target Container - Header To specify which container is used to write all embedded resources to, send the header **X-TIKA-AZURE-CONTAINER** along with your azure-unpack query. ### Azure Blob Target Container Directory - Header To specify which container directory to write all embedded resources to, send the header **X-TIKA-AZURE-CONTAINER-DIRECTORY** along with your azure-unpack query. ### Azure Blob Metadata - Header Our implementation supports adding blob metadata to each embedded resource. To your azure-unpack request, any header with the prefix **X-TIKA-AZURE-META-** will end up in the user-defined blob properties. Refer to the official documentation for limitations https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-properties-metadata?tabs=dotnet ### Azure Unpacker Usage - Example 1 `curl -T PDF-01NCMKWBOVUAAXWBGMCVHLD72RR376GDAX.pdf http://localhost:9998/azure-unpack --header "X-Tika-PDFextractInlineImages:true" --header "X-TIKA-AZURE-CONTAINER:tika2" --header "X-TIKA-AZURE-CONTAINER-DIRECTORY:test2" --header "X-TIKA-AZURE-META-property1:test12" --header "X-TIKA-AZURE-META-property3:test34"` The above command will extract embedded resources to the Azure Blob container **tika2** , in the **test2** directory. Each extracted resource will have 2 user-defined metadata property1:test12 & property3:test34 - Example 2 `curl -T 01NCMKWBOY74FZ5GAOOJBLJZ2MAHDINEK7.pptx http://localhost:9998/azure-unpack --header "X-TIKA-AZURE-CONTAINER:tika" --header "X-TIKA-AZURE-META-property1:test12" --header "X-TIKA-AZURE-META-property3:test34"` The above command will extract embedded resources to the Azure Blob container **tika** in the root directory. Each extracted resource will have 2 user-defined metadata property1:test12 & property3:test34 ### Implementation All extra resources are located in the server/resource/azure directory. Refer to the resource class **AzureUnpackerResource.class** for the core unpacking code. Azure Storage SDK for Java is added POM Dependency ` <!-- https://mvnrepository.com/artifact/com.azure/azure-storage-blob --> <dependency> <groupId>com.azure</groupId> <artifactId>azure-storage-blob</artifactId> <version>12.8.0</version> </dependency> `
44.421053
315
0.751693
eng_Latn
0.868049
da54f55b4659b1d3a4d55806969061da5fa98667
7,384
md
Markdown
static-build/posts/2017/10/netflix-and-react/index.md
calligraffiti/jakearchibald.com
b0dfad81f06592575a782006980cda6b0af33cb7
[ "Apache-2.0" ]
179
2020-05-19T18:05:20.000Z
2022-03-25T04:42:34.000Z
static-build/posts/2017/10/netflix-and-react/index.md
calligraffiti/jakearchibald.com
b0dfad81f06592575a782006980cda6b0af33cb7
[ "Apache-2.0" ]
21
2020-06-30T08:05:11.000Z
2022-01-31T21:43:31.000Z
static-build/posts/2017/10/netflix-and-react/index.md
calligraffiti/jakearchibald.com
b0dfad81f06592575a782006980cda6b0af33cb7
[ "Apache-2.0" ]
33
2020-05-22T01:34:36.000Z
2022-03-03T14:28:30.000Z
--- title: Netflix functions without client-side React, and it's a good thing date: 2017-10-31 11:02:49 summary: A few days ago [Netflix tweeted](https://twitter.com/NetflixUIE/status/923374215041912833) that they'd removed client-side React.js from their landing page and they saw a 50% performance improvement. It caused a bit of a stir. mindframe: '' image: '' meta: Netflix improved performance by deferring react on the client, but this doesn't reflect badly on React. --- A few days ago [Netflix tweeted](https://twitter.com/NetflixUIE/status/923374215041912833) that they'd removed client-side React.js from their landing page and they saw a 50% performance improvement. It caused a bit of a stir. # This shouldn't be a surprise The following: 1. Download HTML & CSS in parallel. 1. Wait for CSS to finish downloading & execute it. 1. Render, and continue rendering as HTML downloads. …is always going to be faster than: 1. Download HTML (it's tiny). 1. Download CSS & JS in parallel. 1. Wait for CSS to finish downloading & execute it. 1. Wait for JS to finish downloading & execute it. 1. (In many cases, SPAs wait until this point to start downloading data). 1. Update the DOM & render. …to achieve the same result. Netflix switched from the second pattern to the first, so the headline boils down to: **less code was executed and stuff got faster**. When the PS4 was released in 2013, one of its advertised features was progressive downloading – allowing gamers to start playing a game while it's downloading. Although this was a breakthrough for consoles, the web has been doing this for 20 years. [The HTML spec](https://html.spec.whatwg.org/) (**warning**: 8mb document), despite its size, starts rendering once ~20k is fetched. Unfortunately, it's a feature we often engineer-away with single page apps, by channelling everything through a medium that isn't streaming-friendly, such as a large JS bundle. # Do a little with a little I used to joke about Photoshop, where you'd be shown this: <figure class="full-figure"> <img src="asset-url:./photoshop-splash.png" alt="Photoshop splash screen"> </figure> Once this appeared, it was time to go for a coffee, go for a run, practice juggling, perhaps even acknowledge the humans around you, because Photoshop was busy doing some serious behind-the-scenes work and there was nothing you could do about it. A splash screen is a gravestone commemorating the death of an app's performance. Adobe even used that space to list all of those responsible. But what did you get once all the loading completed? <figure class="full-figure"> <img src="asset-url:./photoshop-open.png" alt="Photoshop opened"> </figure> That. It looks like the whole app, but I can't use the whole app right now. My first interaction here is pretty limited. I can create a blank canvas, or open an existing image. Those two interactions don't justify a lot of up-front loading. Rather than copying bad examples from the history of native apps, where everything is delivered in one big lump, we should be doing a little with a little, then getting a little more and doing a little more, repeating until complete. Think about the things users are going to do when they first arrive, and deliver that. Especially consider those most-likely to arrive with empty caches. [Webpack's super-smart code-splitting](https://webpack.js.org/guides/code-splitting/) allows you to throw more engineering at the problem by splitting out code that isn't needed for the most-likely first interaction, but sometimes there's a simpler opportunity. If your first interaction is visual, such as reading an article or looking at an image, serve HTML for those things. Most frameworks now offer some sort of server-rendering feature – just ensure you're not serving up a load of buttons that don't work while the client-side JS is loading. If the majority of your functionality is behind a log-in, take advantage of it. Most login systems can be implemented without JavaScript, such as a simple form or a link. While the user is distracted with this important and useful functionality, you can start fetching and preparing what they need next. This is what Netflix did. It shouldn't end with the first interaction either. You can lazily-load and execute code for discrete interactions, loading them in the order the user is most-likely to need them. [`<link rel=preload>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) can be used to lazily-load without executing, and the new [`import()`](https://github.com/tc39/proposal-dynamic-import) function can be used to execute the code when needed. Again, webpack can help with the splitting if you're currently bundling. If you're loading a JSON object containing 100 pieces of data, could that be streamed in a way that lets you display results as they arrived? Something like [newline-delimited JSON](/2016/fun-hacks-faster-content/#newline-delimited-json) can help here. Once you're prepared for logged-in interactions, you can cache all that, and serve it from a service worker for future visits. If you update your code, that can be downloaded in parallel with the user using the current version, and you can transition the user to the new version in the least-disruptive way you can manage. I'm a fan of progressive enhancement as it puts you in this mindset. Continually do as much as you can with what you've got. # This is good news for React Some folks in the React community were pretty angry about Netflix's tweet, but I struggle to read it as a bad story for React. Frameworks are an abstraction. They make a subset of tasks easier to achieve, in a way that's familiar to other users of the framework. The cost is performance – the overhead of the framework. The key is making the cost worth it. I have a reputation for being against frameworks, but I'm only against unnecessary usage, where the continual cost to users outweighs the benefit to developers. But "only use a framework if you need to" is easier said than done. You need to decide which framework to use, if any, at the start of a project, when you're least-equipped to make that decision. If you start without a framework, then realise that was a mistake, fixing it is hard. Unless you catch it early enough, you can end up with lots of independent bits of script of varying quality, with no control over their scheduling, and duplication throughout. Untangling all that is painful. Similarly, it's often difficult to remove a framework it turns out you didn't need. The framework 'owns' the project end-to-end. Framework buy-in can leave you with a lot of simple buttons and links that now have a framework dependency, so undoing all that can involve a rewrite. However, this wasn't the case for Netflix. Netflix uses React on the client and server, but they identified that the client-side portion wasn't needed for the first interaction, so they leaned on what the browser can already do, and deferred client-side React. The story isn't that they're abandoning React, it's that they're able to defer it on the client until it's was needed. React folks should be championing this as a feature. Netflix has shown you could start with React on the server, then activate the client side parts if you need them, when you need them, and where you need them. It's kinda the best of both worlds.
83.909091
519
0.781013
eng_Latn
0.999541
da57ef41f1a6bcfd8580cc04ad1c4e8840f5a061
366
md
Markdown
docs/questions/package.md
krishnaUIDev/UI-Kit
037f5c2aa207d18e83c57306a8604bce0f8c9210
[ "MIT" ]
1
2020-06-11T07:56:19.000Z
2020-06-11T07:56:19.000Z
docs/questions/package.md
krishnaUIDev/UI-Kit
037f5c2aa207d18e83c57306a8604bce0f8c9210
[ "MIT" ]
7
2020-07-21T15:10:30.000Z
2022-02-26T01:56:57.000Z
docs/questions/package.md
krishnaUIDev/UI-Kit
037f5c2aa207d18e83c57306a8604bce0f8c9210
[ "MIT" ]
1
2020-08-07T15:43:56.000Z
2020-08-07T15:43:56.000Z
--- id: package title: Interview questions on Packaging and Artifactory sidebar_label: 'Packaging & Artifactory' --- ### .npmrc (npm Release Candidate) ### yarn vs npm ### Why .lock file get generate when we run yarn or npm install ### What is the purpose of lock file ### Explain package.json structure ### What are the yarn and npm commands ### What is npx
18.3
63
0.710383
eng_Latn
0.988639
da584e19fe911217a88126c4545ec6cf7641b8ff
4,480
md
Markdown
README.md
tangoslee/tendopay-sdk-php
33dcd05efdb8f3882f41cf73f4a15763be9c234b
[ "MIT" ]
1
2021-04-04T21:34:11.000Z
2021-04-04T21:34:11.000Z
README.md
tangoslee/tendopay-sdk-php
33dcd05efdb8f3882f41cf73f4a15763be9c234b
[ "MIT" ]
null
null
null
README.md
tangoslee/tendopay-sdk-php
33dcd05efdb8f3882f41cf73f4a15763be9c234b
[ "MIT" ]
3
2020-09-16T14:37:40.000Z
2020-11-15T04:09:32.000Z
# TendoPay SDK for PHP (v2) If you find a document for v1, please go to [TendoPay SDK for PHP (v1)](./README_v1.md) ## Requirements PHP 7.0 and later. ## Upgrade [UPGRADE from v1](./UPGRADE.md) ## Installation ### Using Composer You can install the sdk via [Composer](http://getcomposer.org/). Run the following command: ```bash composer require tendopay/tendopay-sdk-php ``` ## Run SDK Tester - Run a sample server ```bash php -s localhost:8000 -t vendor/tendopay/tendopay-sdk-php/samples ``` - Open browser and goto ```bash http://localhost:8000/ ``` ## Code Examples ### Create TendoPayClient - Using .env > MERCHANT_ID,MERCHANT_SECRET for test can get them at [TendoPay Sandbox](https://sandbox.tendopay.ph) ```bash ## Client Credentials CLIENT_ID= CLIENT_SECRET= ## Redirect URI when the transaction succeed REDIRECT_URL=https://localhost:8000/purhase.php ## Enable Sandbox, it must be false in production TENDOPAY_SANDBOX_ENABLED=false ``` ```php use TendoPay\SDK\TendoPayClient; $client = new TendoPayClient(); ``` - Using $config variable ```php use TendoPay\SDK\TendoPayClient; $config = [ 'CLIENT_ID' => '', 'CLIENT_SECRET' => '', 'REDIRECT_URL' => '', 'TENDOPAY_SANDBOX_ENABLED' => false, ]; $client = new TendoPayClient($config); ``` ### Make Payment ```php use TendoPay\SDK\Exception\TendoPayConnectionException; use TendoPay\SDK\Models\Payment; use TendoPay\SDK\V2\TendoPayClient; ### S:Merchant set proper values $merchant_order_id = $_POST['tp_merchant_order_id']; $request_order_amount = $_POST['tp_amount']; $request_order_title = $_POST['tp_description']; $redirectUrl = $_POST['tp_redirect_url'] ?? ''; ### E:Merchant set proper values $client = new TendoPayClient(); try { $payment = new Payment(); $payment->setMerchantOrderId($merchant_order_id) ->setDescription($request_order_title) ->setRequestAmount($request_order_amount) ->setCurrency('PHP') ->setRedirectUrl($redirectUrl); $client->setPayment($payment); $redirectURL = $client->getAuthorizeLink(); header('Location: '.$redirectURL); } catch (TendoPayConnectionException $e) { echo 'Connection Error:'.$e->getMessage(); } catch (Exception $e) { echo 'Runtime Error:'.$e->getMessage(); } ``` ### Callback (redirected page) ```php use TendoPay\SDK\Exception\TendoPayConnectionException; use TendoPay\SDK\Models\VerifyTransactionRequest; use TendoPay\SDK\V2\TendoPayClient; $client = new TendoPayClient(); try { if (TendoPayClient::isCallBackRequest($_REQUEST)) { $transaction = $client->verifyTransaction(new VerifyTransactionRequest($_REQUEST)); if (!$transaction->isVerified()) { throw new UnexpectedValueException('Invalid signature for the verification'); } if ($transaction->getStatus() == \TendoPay\SDK\V2\ConstantsV2::STATUS_SUCCESS) { // PAID // Save $transactionNumber here // Proceed merchant post order process } else if ($transaction->getStatus() == \TendoPay\SDK\V2\ConstantsV2::STATUS_FAILURE) { // FAILED // do something in failure case // error message $transaction->getMessage() } } } catch (TendoPayConnectionException $e) { echo 'Connection Error:'.$e->getMessage(); } catch (Exception $e) { echo 'Runtime Error:'.$e->getMessage(); } ``` ### Cancel Payment ```php use TendoPay\SDK\Exception\TendoPayConnectionException; use TendoPay\SDK\V2\TendoPayClient; $client = new TendoPayClient(); try { $client->cancelPayment($transactionNumber); // merchant process here } catch (TendoPayConnectionException $e) { echo 'Connection Error:'.$e->getMessage(); } catch (Exception $e) { echo 'Runtime Error:'.$e->getMessage(); } ``` ### Show Transaction Detail ```php use TendoPay\SDK\Exception\TendoPayConnectionException; use TendoPay\SDK\V2\TendoPayClient; $client = new TendoPayClient(); try { $transaction = $client->getTransactionDetail($transactionNumber); // merchant process here // $transaction->getMerchantId(); // $transaction->getMerchantOrderId(); // $transaction->getAmount(); // $transaction->getTransactionNumber(); // $transaction->getCreatedAt(); // $transaction->getStatus(); } catch (TendoPayConnectionException $e) { echo 'Connection Error:'.$e->getMessage(); } catch (Exception $e) { echo 'Runtime Error:'.$e->getMessage(); } ```
23.455497
104
0.683482
yue_Hant
0.658797
da585feaa649c697d9fd5af689f17a1d1c1a853f
1,930
md
Markdown
CONTRIBUTING.md
tjx666/format-imports-vscode
a2031a8beda51d5e9aad585a4e8a4bde13fdf446
[ "MIT" ]
37
2020-01-19T22:19:39.000Z
2021-03-03T21:08:16.000Z
CONTRIBUTING.md
tjx666/format-imports-vscode
a2031a8beda51d5e9aad585a4e8a4bde13fdf446
[ "MIT" ]
41
2020-03-20T19:49:09.000Z
2021-02-23T03:19:09.000Z
CONTRIBUTING.md
tjx666/format-imports-vscode
a2031a8beda51d5e9aad585a4e8a4bde13fdf446
[ "MIT" ]
3
2020-05-06T06:53:17.000Z
2020-11-15T18:15:13.000Z
<!-- markdownlint-configure-file { "no-inline-html": { "allowed_elements": ["img"] } } --> # How to Contribute Thank you for helping improve the extension! ## Open an issue Please use the following links to: - [Request a New Feature](https://github.com/daidodo/format-imports-vscode/issues/new?assignees=&labels=&template=feature_request.md&title=), or - [Report a Bug](https://github.com/daidodo/format-imports-vscode/issues/new?assignees=&labels=&template=bug_report.md&title=) If you see the following message, please click "View logs & Report" and follow the instructions to [Report an Exception](https://github.com/daidodo/format-imports-vscode/issues/new?assignees=&labels=&template=exception_report.md&title=). <img width="400" alt="image" src="https://user-images.githubusercontent.com/8170176/82117797-9a57e300-976a-11ea-9aab-6dabb3a43abf.png"> ### Debug Mode From v4.1.0, a "Debug Mode" was introduced which prints detailed logs to the output channel: <img width="546" alt="1" src="https://user-images.githubusercontent.com/8170176/102225664-6222a980-3edf-11eb-9aea-12ae7fca8117.png"> If you are experiencing some non-fatal issues, e.g. low performance or unexpected results, you can enable "Debug Mode" and send logs in a new issue to help us root-cause it. <img width="522" alt="2" src="https://user-images.githubusercontent.com/8170176/102226074-d8bfa700-3edf-11eb-8e0b-8f6b4c8a62d5.png"> ## Contribute to code All source files are in `src/`: - `extension.ts`: Main entry point of the extension, including commands, event handling, etc. - `vscode/`: All code relating to VS Code Extension APIs, including user/workspace configurations, output channel logs, etc. This extension is built on [Format-Imports](https://github.com/daidodo/format-imports) APIs. Please check out its [CONTRIBUTING.md](https://github.com/daidodo/format-imports/blob/main/CONTRIBUTING.md) for how the formatting works.
45.952381
237
0.763212
eng_Latn
0.781474
da588ce9d5fe305a4487a4a08c0be484b6d641a4
86
md
Markdown
articles/BranchSwitchTest.md
OpenLocalizationTestOrg/smallhcs
92358398a6c73c66f751d8aae60aaa44bf9bd430
[ "CC-BY-4.0", "MIT" ]
null
null
null
articles/BranchSwitchTest.md
OpenLocalizationTestOrg/smallhcs
92358398a6c73c66f751d8aae60aaa44bf9bd430
[ "CC-BY-4.0", "MIT" ]
null
null
null
articles/BranchSwitchTest.md
OpenLocalizationTestOrg/smallhcs
92358398a6c73c66f751d8aae60aaa44bf9bd430
[ "CC-BY-4.0", "MIT" ]
null
null
null
# This is for Branch switch testing This one is in Master branch with is original one
28.666667
49
0.790698
eng_Latn
1.00001
da5949559b4572cf6fc5870633a30541d1401532
117
markdown
Markdown
_clients/solidel.markdown
johnantoni/opensourcepolitics.github.io
34c84fa7a11b0ead18e1242bc7220fb97bbf564e
[ "Apache-2.0" ]
null
null
null
_clients/solidel.markdown
johnantoni/opensourcepolitics.github.io
34c84fa7a11b0ead18e1242bc7220fb97bbf564e
[ "Apache-2.0" ]
null
null
null
_clients/solidel.markdown
johnantoni/opensourcepolitics.github.io
34c84fa7a11b0ead18e1242bc7220fb97bbf564e
[ "Apache-2.0" ]
null
null
null
--- nom: Solidel site-url: none img: solidel.png alt: logo Solidel date: 2017-05-23 16:02:11 +0000 type: private ---
13
31
0.692308
ita_Latn
0.114682
da59ff09810d46d5806813f4ccb0ab816d94aafe
648
md
Markdown
_experiences/2019-facebook.md
Wenyuan-Vincent-Li/Homepage
3ca0dd1e4115cf08eec7830fb36b242728c09ed5
[ "MIT" ]
null
null
null
_experiences/2019-facebook.md
Wenyuan-Vincent-Li/Homepage
3ca0dd1e4115cf08eec7830fb36b242728c09ed5
[ "MIT" ]
null
null
null
_experiences/2019-facebook.md
Wenyuan-Vincent-Li/Homepage
3ca0dd1e4115cf08eec7830fb36b242728c09ed5
[ "MIT" ]
3
2019-09-26T09:34:13.000Z
2021-10-22T00:32:32.000Z
--- title: "Facebook Search Software (Machine Learning) Intern" collection: experiences type: "Internship" permalink: /experiences/2019-Facebook venue: "Facebook" date: 2019-07-01 location: "Seattle, USA" --- I got the opportunity to work as a machine learning intern at Facebook in 2019 summer. During the 3-month internship, I worked on deep learning models for social search. Specifically, I combined the recent advancement of deep learning and information retrieval to incorporate raw text features into the search ranking system. Our experiments showed promise preliminary results by using raw text features in large-scale social search.
40.5
70
0.799383
eng_Latn
0.98644
da5a1ccc98ba9a7e0c2b56859a848ffb2b430871
22
md
Markdown
README.md
Oluwasegun-AA/rule-validation-API
34937bd2b1d689392d7ec3f5aa835264e7de81b6
[ "MIT" ]
1
2021-01-20T16:20:50.000Z
2021-01-20T16:20:50.000Z
README.md
Oluwasegun-AA/rule-validation-API
34937bd2b1d689392d7ec3f5aa835264e7de81b6
[ "MIT" ]
null
null
null
README.md
Oluwasegun-AA/rule-validation-API
34937bd2b1d689392d7ec3f5aa835264e7de81b6
[ "MIT" ]
null
null
null
# rule-validation-API
11
21
0.772727
kor_Hang
0.247148
da5a1ea54f54e14c412d56b383e0855a0dbfd85a
43
md
Markdown
README.md
CrackNetOfficial/CrackNet_GClient
a15c9d1b39f565ac35333537af1b20f8ae9329d1
[ "MIT" ]
null
null
null
README.md
CrackNetOfficial/CrackNet_GClient
a15c9d1b39f565ac35333537af1b20f8ae9329d1
[ "MIT" ]
null
null
null
README.md
CrackNetOfficial/CrackNet_GClient
a15c9d1b39f565ac35333537af1b20f8ae9329d1
[ "MIT" ]
null
null
null
# CrackNet_GClient GUI client for CrackNet
14.333333
23
0.837209
kor_Hang
0.691116
da5aa03cb120c13a76f0f8015856eb278a56f1dd
591
md
Markdown
README.md
sdarray/sdarray
1d655cfade351895b74ddffefa0a698ed768cda0
[ "MIT" ]
null
null
null
README.md
sdarray/sdarray
1d655cfade351895b74ddffefa0a698ed768cda0
[ "MIT" ]
25
2019-11-01T04:17:25.000Z
2022-03-16T08:16:56.000Z
README.md
sdarray/sdarray
1d655cfade351895b74ddffefa0a698ed768cda0
[ "MIT" ]
null
null
null
# sdarray [![PyPI](https://img.shields.io/pypi/v/sdarray.svg?label=PyPI&style=flat-square)](https://pypi.org/pypi/sdarray/) [![Python](https://img.shields.io/pypi/pyversions/sdarray.svg?label=Python&color=yellow&style=flat-square)](https://pypi.org/pypi/sdarray/) [![Tests](https://img.shields.io/github/workflow/status/sdarray/sdarray/Tests?logo=github&label=Tests&style=flat-square)](https://github.com/sdarray/sdarray/actions) [![License](https://img.shields.io/badge/license-MIT-blue.svg?label=License&style=flat-square)](LICENSE) Common single-dish data structure for radio astronomy
65.666667
165
0.76819
yue_Hant
0.262226
da5b92da7130cb046cdc80551405b93b2d9cb535
857
md
Markdown
Web/Framework/redux.md
jafaryor/knowledge-base
c84707a671a234ef54459daa59b51b8d38b606e1
[ "MIT" ]
4
2020-07-09T22:58:12.000Z
2020-09-23T20:42:41.000Z
Web/Framework/redux.md
jafaryor/knowledge-base
c84707a671a234ef54459daa59b51b8d38b606e1
[ "MIT" ]
null
null
null
Web/Framework/redux.md
jafaryor/knowledge-base
c84707a671a234ef54459daa59b51b8d38b606e1
[ "MIT" ]
null
null
null
## Redux Redux is a very popular state-management library, mostly used along side React. People like it because it delivers a predictable data model. ![redux](./images/redux.jpg) #### Pros: * Predictability and simplicity * Unidirectional data flow and immutability * Separation of data and presentation * Extensibility (via middlewares) * Popularity and community * Tooling support * Easy to debug * Time travel #### Cons: * Boilerplate (views, action types, action creators, reducers, selectors, …) * No out-of-the-box solution for dealing with side-effects (available through middlewares such as redux-thunk or redux-saga) * No encapsulation. Any component can access the data which can cause security issues. * As state is immutable in redux, the reducer updates the state by returning a new state every time which can cause excessive use of memory.
40.809524
140
0.77713
eng_Latn
0.995872
da5c4af85851c543c7dad7338f8279c8efb64a56
3,106
md
Markdown
README.md
alvince/android-zanpakuto
e6cd962c3f801779c15604bea2fac81e817bf300
[ "Apache-2.0" ]
8
2021-09-08T05:29:56.000Z
2022-03-13T03:22:16.000Z
README.md
alvince/android-zanpakuto
e6cd962c3f801779c15604bea2fac81e817bf300
[ "Apache-2.0" ]
null
null
null
README.md
alvince/android-zanpakuto
e6cd962c3f801779c15604bea2fac81e817bf300
[ "Apache-2.0" ]
null
null
null
Android zanpakuto kit === `zanpakuto` is a suite of libraries to help app-development, similar `Android-Jetpack` Core --- Provides some useful infras functions ```groovy dependencies { implementation 'cn.alvince.zanpakuto:core:1.0.0.f' // require Kotlin 1.6 // or deps lower version of Kotlin implementation 'cn.alvince.zanpakuto:core-stdlib1.3:1.0.0' // Kotlin 1.3 } ``` #### Animation Fast create & play view animation ```kotlin val animation = alphaAnimation { // changeAlpha(0.3F, 1F) from = 0.3F to = 1.0F } // create an AlphaAnimation val animation = view.alpha { from = 0.3F to = 1.0F } // create and play animation directly ``` Lifecycle --- Provides some `Android Lifecycle` based components, and exensions for lifecycle ```groovy dependencies { implementation 'cn.alvince.zanpakuto:lifecycle:1.0.0.f' // require Kotlin 1.6 implementation 'cn.alvince.zanpakuto:core:1.0.0.f' // deps on lib-core // or deps lower version of Kotlin implementation 'cn.alvince.zanpakuto:lifecycle-stdlib1.3:1.0.0' // Kotlin 1.3 implementation 'cn.alvince.zanpakuto:core-stdlib1.3:1.0.0' } ``` View --- Provides some `Android View` extensions Viewbinding --- Provides some `Android Viewbinding` extensions ```groovy dependencies { implementation 'cn.alvince.zanpakuto:viewbinding:0.1-SNAPSHOT' } ``` for Activity ```kotlin class MyActivity : ComponentActivity(), ActivityViewBinding<MyActivityBinding> by ActivityBinding() { override fun onCreate(savedInstanceState: Bundle?) { … // replace setContentView(), and hold binding instance inflate( inflate = { MyActivityBinding.inflate(layoutInflater) }, /* option: */onClear = { it.onClear() }, ) { binding -> // init with binding … } … } // Optional: perform clear binding private fun MyActivityBinding.onClear() { … } … } ``` for Fragment ```kotlin class MyFragment : Fragment(), FragmentViewBinding<MyFragmentBinding> by FragmentBinding() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View = inflate( inflate = { MyFragmentBinding.inflate(inflater, container, false) }, /* option: */onClear = { it.onClear() }, ) { // init binding, views and states here } // Optional: perform clear binding private fun MyFragmentBinding.onClear() { … } … } ``` Databinding --- Provides some `Android Databinding` extensions ```groovy dependencies { implementation 'cn.alvince.zanpakuto:databinding:0.1-SNAPSHOT' implementation 'cn.alvince.zanpakuto:view:0.1-SNAPSHOT' } ``` Rxjava2 --- Provides some `RxJava`2 based components and extensions ```groovy dependencies { implementation 'cn.alvince.zanpakuto:core:1.0.0' // required implementation 'cn.alvince.zanpakuto:lifecycle:1.0.0' // required implementation 'cn.alvince.zanpakuto:rxjava2:1.0.0-SNAPSHOT' } ``` License --- Under Apache 2.0
21.42069
115
0.66613
eng_Latn
0.555864
da5c6bcc20d52f82c087dfc0ca6fd29b751bb91e
105
md
Markdown
README.md
Alexangelj/option-elasticity
8dc10b9555c2b7885423c05c4a49e5bcf53a172b
[ "MIT" ]
5
2021-09-07T22:29:48.000Z
2022-02-11T02:21:21.000Z
README.md
Alexangelj/option-elasticity
8dc10b9555c2b7885423c05c4a49e5bcf53a172b
[ "MIT" ]
null
null
null
README.md
Alexangelj/option-elasticity
8dc10b9555c2b7885423c05c4a49e5bcf53a172b
[ "MIT" ]
null
null
null
# option-elasticity just playing on the defi playground ## yarn install ## yarn compile ## yarn test
10.5
35
0.72381
eng_Latn
0.99656
da5d2583cc4b42790daf7069e3310681bc408ce0
1,996
md
Markdown
T1-micaelomota/A1-typescript.md
micaelomota/caracterizacao
2cd6455d2f46fd1780744e82f4e622a87220ec7a
[ "MIT" ]
1
2021-08-22T19:48:27.000Z
2021-08-22T19:48:27.000Z
T1-micaelomota/A1-typescript.md
micaelomota/caracterizacao
2cd6455d2f46fd1780744e82f4e622a87220ec7a
[ "MIT" ]
14
2021-08-21T18:45:57.000Z
2021-12-06T18:14:28.000Z
T1-micaelomota/A1-typescript.md
micaelomota/caracterizacao
2cd6455d2f46fd1780744e82f4e622a87220ec7a
[ "MIT" ]
35
2021-08-18T21:58:29.000Z
2021-12-03T20:58:33.000Z
# Typescript ## Modelo de tradução (compilação, etc.?) Typescript é uma linguagem "transcompilada". A compilação de typescript gera um código em javascript que é por fim interpretado e executado por um navegador ou algum motor como NodeJs. ## Nomes, variáveis e vinculação Em typesript os nomes são tratados como na maioria das linguagens. Podemos atribuir funções a variáveis. Para declarar variáveis no TypeScript podemos usar de três formas, let, var e const. ○ Var, let e const possuem a mesma sintaxe: let <NomeDaVariável>:Tipo = Valor; const <NomeDaVariável>:Tipo = Valor; var <NomeDaVariável>:Tipo = Valor; - Podemos inferir ou não valores às variáveis durante sua declaração. - Podemos ou não dizer o tipo de dado que ela agrega. - Podem receber funções como valores. ## Escopo, tempo de vida e ambientes de referência. Declarações var possuem escopo de função. ```Typescript function m1(): void { var x: boolean = true; if (x) { var loucura = "Xoxo" } console.log(loucura); //Xoxo } ``` Existe o conceito de elevação, onde você pode declarar variáveis globais no final do código e em tempo de execução ela ser elevada ao topo. O mesmo ocorre para subprogramas. Let declarações já se assemelham com a maioria das linguagens e possui escopo de bloco. O conceito de elevação só se aplica para let quando se trata de variáveis globais. Re-declaração e sombreamento Utilizando var, múltiplas declarações de uma mesma variável é válida! TypeScript possui escopo estático e aninhado (Closures) ## Estruturas de controle Há dois comandos para desvio de fuxo: if-else e switch e são semelhantes aos da linguagem C. Há uma variaedade de estruturas para loops: - for (semelhante ao C) - for of (semelhante ao C++14) - for in - while (semelhante ao C) - do … while (semelhante ao C) For in serve para inspecionar propriedades do objeto, sempre fazendo um loop em cima dos nomes das propriedades, enquanto for of é para repetir dados, funcionando apenas em objetos iteráveis.
29.791045
184
0.77004
por_Latn
0.999988
da5d25eacc3ace62b843e29591fae9827044bf15
316
md
Markdown
README.md
danrico87/danrico87.github.io
783898d0a48b3ffe721d9605d19628a956ae21fb
[ "MIT" ]
null
null
null
README.md
danrico87/danrico87.github.io
783898d0a48b3ffe721d9605d19628a956ae21fb
[ "MIT" ]
null
null
null
README.md
danrico87/danrico87.github.io
783898d0a48b3ffe721d9605d19628a956ae21fb
[ "MIT" ]
null
null
null
# important files * bootstrap.less -> @import: * `site_bootswatch.less` * `site_overrides.less` * `site_variables.less` * `site_variables_overrides.less` * `hacks.css` # stuff I did * created `site_variables.less` and `site_bootswatch.less` * edit gruntfile so `*.less` files in the root are being watched
22.571429
64
0.721519
eng_Latn
0.856756
da5d4fd933ce9b510c70ef29c6d3779cc7168d60
918
md
Markdown
README.md
TeamVelocity/teamvelocity.github.io
6801d7cf8394fe6feb9fc2bdea895b8562d3a277
[ "Apache-2.0" ]
1
2018-08-03T03:16:22.000Z
2018-08-03T03:16:22.000Z
README.md
TeamVelocity/teamvelocity.github.io
6801d7cf8394fe6feb9fc2bdea895b8562d3a277
[ "Apache-2.0" ]
16
2018-08-09T01:19:30.000Z
2018-08-16T15:03:45.000Z
README.md
TeamVelocity/teamvelocity.github.io
6801d7cf8394fe6feb9fc2bdea895b8562d3a277
[ "Apache-2.0" ]
1
2018-07-14T13:04:08.000Z
2018-07-14T13:04:08.000Z
[![Build Status](https://travis-ci.org/TeamVelocity/teamvelocity.github.io.svg?branch=master)](https://travis-ci.org/TeamVelocity/teamvelocity.github.io) [![Coverage Status](https://coveralls.io/repos/github/TeamVelocity/teamvelocity.github.io/badge.svg?branch=master)](https://coveralls.io/github/TeamVelocity/teamvelocity.github.io?branch=master) # teamvelocity.github.io Source code for the Wheel of Jeopardy Game developed by Team Velocity. * Game Site: [https://teamvelocity.github.io/](https://teamvelocity.github.io/) * Developer Documentation: [https://teamvelocity.github.io/docs](https://teamvelocity.github.io/docs) * User Guide: [https://teamvelocity.github.io/help](https://teamvelocity.github.io/help) ## Developer Tools # install documentation npm install # test code, view test coverage, and generate docs npm run test npm run coverage npm run docs
45.9
194
0.74183
yue_Hant
0.253564
da5eea3f42990152c0bbf6d068cae536b9a0010e
61
md
Markdown
README.md
Methuselah96/console-expect
2c378bd488ef10c6bbc5742cb6febc58b926acc5
[ "MIT" ]
null
null
null
README.md
Methuselah96/console-expect
2c378bd488ef10c6bbc5742cb6febc58b926acc5
[ "MIT" ]
null
null
null
README.md
Methuselah96/console-expect
2c378bd488ef10c6bbc5742cb6febc58b926acc5
[ "MIT" ]
1
2018-09-21T18:49:25.000Z
2018-09-21T18:49:25.000Z
# console-expect Wraps the console so you can test it better
20.333333
43
0.786885
eng_Latn
0.99931
da5ef314c9a2eebb5267844f05571613b8c72122
148
md
Markdown
README.md
nicebook/Node.js-Reference
ff58bc3df82e273abd548d244aa99cc630e84ede
[ "MIT" ]
30
2015-01-04T19:19:27.000Z
2022-02-08T05:41:34.000Z
README.md
nicebook/Node.js-Reference
ff58bc3df82e273abd548d244aa99cc630e84ede
[ "MIT" ]
1
2015-04-18T06:32:08.000Z
2015-04-18T07:17:15.000Z
README.md
nicebook/Node.js-Reference
ff58bc3df82e273abd548d244aa99cc630e84ede
[ "MIT" ]
21
2015-01-04T19:17:58.000Z
2021-03-15T10:33:40.000Z
Node.js-Reference ================= Examples for a book ![alt tag](https://raw.githubusercontent.com/nicebook/Node.js-Reference/master/cover.jpg)
21.142857
89
0.689189
yue_Hant
0.432024
da5f9e0c2ea6d13f74433bafe9b57013adc7f621
1,829
md
Markdown
README.md
PentaZoned/my-own-text-editor
4b4a069752b2cded994371c2fca9c455b431459e
[ "MIT" ]
null
null
null
README.md
PentaZoned/my-own-text-editor
4b4a069752b2cded994371c2fca9c455b431459e
[ "MIT" ]
null
null
null
README.md
PentaZoned/my-own-text-editor
4b4a069752b2cded994371c2fca9c455b431459e
[ "MIT" ]
null
null
null
# my-own-text-editor The focus of this app is to build a single-page editor that runs on the browser. The application can also run offline. ## Built With * [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) * [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) * [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) * [Express](https://www.npmjs.com/package/express) * [@babel/core](https://www.npmjs.com/package/@babel/core) * [style-loader](https://www.npmjs.com/package/style-loader) * [webpack](https://www.npmjs.com/package/webpack) * [workbox-webpack-plugin](https://www.npmjs.com/package/workbox-webpack-plugin) See package.json for the full dependency listing. ## Deployed Link * [See Live Site](https://whispering-woodland-68116.herokuapp.com/) # Screenshots and Gif Demonstration of viewing and typing in the text editor. The IndexedDb saves the data even when offline and the data persists. ![Demonstration gif of the application](images/demonstration.gif) This image shows the app's manifest.json file. ![Screenshot of the app's manifest.json file](images/manifest.jpg) This image shows the app's registered service worker. ![Screenshot of the app's service worker](images/service-worker.jpg) This image shows the app's IndexedDB storage. The key starts off at the value '1', but development and testing caused the screenshot to have an increased value. This value should always start at '1' when beginning to use the app. ![Screenshot of the app's IndexedDB storage](images/indexeddb.jpg) ## Authors * **Bradley Le** - [Link to Portfolio Site](https://pentazoned.github.io/portfolio-version-3/) - [Link to Github](https://github.com/PentaZoned) - [Link to LinkedIn](https://www.linkedin.com/in/bradley-le-/) ## License This project is licensed under the MIT License
35.862745
229
0.754511
eng_Latn
0.800016
da5fbc020e597c97c3e3c8df2e4aead3ee41191f
282
md
Markdown
_provenance/5430.md
brueghelfamily/brueghelfamily.github.io
a73351ac39b60cd763e483c1f8520f87d8c2a443
[ "MIT" ]
null
null
null
_provenance/5430.md
brueghelfamily/brueghelfamily.github.io
a73351ac39b60cd763e483c1f8520f87d8c2a443
[ "MIT" ]
null
null
null
_provenance/5430.md
brueghelfamily/brueghelfamily.github.io
a73351ac39b60cd763e483c1f8520f87d8c2a443
[ "MIT" ]
null
null
null
--- pid: '5430' object_pid: '3829' label: Interior of a Gothic Church artist: janbrueghel provenance_date: Jul 10 1992 provenance_location: London provenance_text: 'Sale, Christie''s, Lot #4 (as "Steenwyck II and Jan Brueghel the Elder")' collection: provenance order: '1827' ---
21.692308
82
0.748227
yue_Hant
0.468596
da60fc15cab89c0486549aae6f17fb02abadc567
429
md
Markdown
Sources/SwiftUIReduxUtils/SwiftUIReduxUtils.docc/Extensions/Middleware.md
CypherPoet/SwiftUIReduxUtils
df443b0a4bfec9a9bd5fb86f33279f1454ee29e8
[ "MIT" ]
6
2021-11-09T15:03:19.000Z
2022-02-09T09:28:05.000Z
Sources/SwiftUIReduxUtils/SwiftUIReduxUtils.docc/Extensions/Middleware.md
CypherPoet/SwiftUIReduxUtils
df443b0a4bfec9a9bd5fb86f33279f1454ee29e8
[ "MIT" ]
null
null
null
Sources/SwiftUIReduxUtils/SwiftUIReduxUtils.docc/Extensions/Middleware.md
CypherPoet/SwiftUIReduxUtils
df443b0a4bfec9a9bd5fb86f33279f1454ee29e8
[ "MIT" ]
null
null
null
# ``SwiftUIReduxUtils/Middleware`` A middleware "runner" is a function that receives a copy of our ``SwiftUIReduxUtils/Store``'s `State`, alongside one of its `Action`s. It returns an `AsyncStream` of new `Action`s to the store, which will then dispatch them as they're received. ## Overview ## Topics ### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@--> - <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
28.6
135
0.69697
eng_Latn
0.858425
da61b966935bd8d3176fb71b5e35ea0080dfb4c3
161
md
Markdown
README.md
kiinami/takameru
357fb7828c4904a36552bf691d3e0bf9e4f038f6
[ "MIT" ]
null
null
null
README.md
kiinami/takameru
357fb7828c4904a36552bf691d3e0bf9e4f038f6
[ "MIT" ]
null
null
null
README.md
kiinami/takameru
357fb7828c4904a36552bf691d3e0bf9e4f038f6
[ "MIT" ]
null
null
null
# 高める ###### Ichidan verb, Transitive verb 1. to raise; to lift; to boost; to enhance --- Small script to upscale .cbz comics or manga and convert them to PDF
20.125
68
0.701863
eng_Latn
0.754202
da626077cc309f3656bd05741008636c7d227943
1,076
md
Markdown
README.md
cagdass/carcassonne
ba2b4e67573e24169930c3ba4a14bf7f4aea96e3
[ "MIT" ]
4
2018-09-18T21:19:53.000Z
2020-04-29T17:08:20.000Z
README.md
cagdass/carcassonne
ba2b4e67573e24169930c3ba4a14bf7f4aea96e3
[ "MIT" ]
null
null
null
README.md
cagdass/carcassonne
ba2b4e67573e24169930c3ba4a14bf7f4aea96e3
[ "MIT" ]
null
null
null
# C*rcas?onne® Run on development mode: ``` git clone https://github.com/cagdass/carcassonne & cd carcassonne npm install npm start ``` [t1]: https://github.com/cagdass/carcassonne/blob/master/src/assets/images/tiles/Blodkorv.png?raw=true "Blodkorv" [t2]: https://github.com/cagdass/carcassonne/blob/master/src/assets/images/tiles/Semla.png?raw=true "Semla" ### Short-term plans: - Encode all tile properties within each unique tile type: * Encode each edge * Encode where it is possible to place a meeple on the tile * Encode where to place a farmer * Encode the separation of grass * Consider how to represent the semantic difference in the following tiles: * ![alt text][t1] * ![alt text][t2] - Checking if two tiles can be placed adjacently - Automatically place a tile when dropped after having been dragged adjacent to a tile or tiles that it can be placed next to ### Mid-term (tbt) plans: - Add networking ### Long-term plans: * Do the expansions! #### Just us things: * The tiles are named after Swedish (mostly) food-related vocabulary
28.315789
125
0.733271
eng_Latn
0.973869
da627aa0828ce286ff0e0cd058b9d4a9761be158
468
md
Markdown
_posts/Ruby & Rails/2016-05-09-Use-namespacing-to-make-REST-controllers.md
AlfredoRoca/github.com
26ac8a9b27d40db7164ac8baa823b973e47eb366
[ "MIT" ]
null
null
null
_posts/Ruby & Rails/2016-05-09-Use-namespacing-to-make-REST-controllers.md
AlfredoRoca/github.com
26ac8a9b27d40db7164ac8baa823b973e47eb366
[ "MIT" ]
null
null
null
_posts/Ruby & Rails/2016-05-09-Use-namespacing-to-make-REST-controllers.md
AlfredoRoca/github.com
26ac8a9b27d40db7164ac8baa823b973e47eb366
[ "MIT" ]
null
null
null
--- layout: post title: "Use namespacing to make REST controllers" description: "" category: [ruby, rails, rest] tags: [] --- {% include JB/setup %} Convert class InboxesController < ApplicationController def index end def pendings end end into class InboxesController < ApplicationController def index end end class Inboxes::PendingsController < ApplicationController def index end end
13.764706
61
0.649573
eng_Latn
0.68415
da6315ee5861d8ed3563c07d6cc27c0cda7291eb
5,843
md
Markdown
_posts/2019-11-10-哈夫曼编码及译码器.md
fffzlfk/fffzlfk.github.io
107e8143ded1baffb7d2b7036e2a22685de9fff8
[ "MIT" ]
1
2019-09-05T10:02:43.000Z
2019-09-05T10:02:43.000Z
_posts/2019-11-10-哈夫曼编码及译码器.md
fffzlfk/fffzlfk.github.io
107e8143ded1baffb7d2b7036e2a22685de9fff8
[ "MIT" ]
16
2019-09-05T05:30:01.000Z
2022-03-30T15:23:52.000Z
_posts/2019-11-10-哈夫曼编码及译码器.md
fffzlfk/fffzlfk.github.io
107e8143ded1baffb7d2b7036e2a22685de9fff8
[ "MIT" ]
null
null
null
--- layout: post title: 哈夫曼编码及译码器 subtitle: 哈夫曼树的创建和哈夫曼编码及译码 date: 2019-11-10 author: fffzlfk header-img: img/2019-11-10.png catalog: true tags: - C - 数据结构 - 二叉树 --- ### 问题描述 利用哈夫曼编码进行通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端需要一个完编/译码系统。试为这样的信息收发站写一个哈夫曼码的编/译码系统。 ### 基本要求 一个完整的系统应具有以下功能: 1. I :初始化(Initialization)。从终端读人字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件 hfmTree 中。 2. E :编码(Encoding)。利用以建好的哈夫曼树(如不在内存,则从文件 hfmTree 中读人),对文件 ToBeTran 中的正文进行编码,然后将结果存人文件 CodeFile 中。 3. D :译 码(Decoding)。利用已建好的哈夫曼树将文件 CodeFile 中的代码进行译码,结果存人文件 TextFile 中。 4. P :印代码文件(Print)。将文件 CodeFile 以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写人文件 CodePrin。 5. T :打印哈夫曼树(Tree printing)。将已在内存中的哈夫曼树以直观的方式(树或凹人表形式)显示在终端上,同时将此字符形式的哈夫曼树写人文件 TreePrint 中。 ### 代码实现 ```c #include <bits/stdc++.h> #define INT_MAX 2147483647 #define OK 1 #define ERROR 0 typedef char ElemType; typedef int Status; typedef struct { char c; int weight; int parent; int left; int right; char *code; } HNode; HNode *T; int n; Status select(HNode *T, int pos, int *s1, int *s2) { int m1, m2; m1 = m2 = INT_MAX; for (int j = 1; j <= pos; j++) { if (T[j].weight < m1 && T[j].parent == 0) { m2 = m1; *s2 = *s1; *s1 = j; } else if (T[j].weight < m2 && T[j].parent == 0) { m2 = T[j].weight; *s2 = j; } } } Status Initialization() { FILE *fp = fopen("hfmTree.txt", "w"); puts("请输入n"); scanf("%d", &n); fprintf(fp, "%d\n", n); T = new HNode[2 * n]; puts("请输入n个字符及其权值"); for (int i = 1; i <= n; i++) { getchar(); T[i].c = getchar(); scanf(" %d", &T[i].weight); T[i].parent = 0; T[i].left = 0; T[i].right = 0; T[i].code = NULL; } for (int i = n + 1; i < 2 * n; i++) { T[i].c = '^'; T[i].weight = 0; T[i].parent = 0; T[i].left = 0; T[i].right = 0; T[i].code = NULL; } int s1, s2; for (int i = n + 1; i < 2 * n; i++) { select(T, i - 1, &s1, &s2); T[i].weight = T[s1].weight + T[s2].weight; T[s1].parent = T[s2].parent = i; T[i].left = s1; T[i].right = s2; } for (int i = 1; i < 2 * n; i++) { fprintf(fp, "%c %d %d %d %d\n", T[i].c, T[i].weight, T[i].parent, T[i].left, T[i].right); } fclose(fp); return OK; } Status Encoding() { if (!T) { FILE *fp = fopen("hfmTree.txt", "r"); fscanf(fp, "%d", &n); for (int i = 1; i < 2 * n; i++) { fscanf(fp, "%c %d %d %d %d", &T[i].c, &T[i].weight, &T[i].parent, &T[i].left, &T[i].right); } } char *cd; cd = (char *)malloc(sizeof(char) * n); cd[n - 1] = '\0'; for (int i = 1; i <= n; i++) { int start = n - 1; int c = i; int p = T[i].parent; while (p) { --start; if (T[p].left == c) cd[start] = '0'; else cd[start] = '1'; c = p; p = T[p].parent; } T[i].code = (char *)malloc((n - start) * sizeof(char)); strcpy(T[i].code, &cd[start]); } free(cd); FILE *pf = fopen("ToBeTran.txt", "r"); FILE *p = fopen("CodeFile.txt", "w"); char t; while (fscanf(pf, "%c", &t) != EOF) { for (int i = 1; i <= n; i++) { if (t == T[i].c) { fprintf(p, "%s", T[i].code); break; } } } fclose(pf); fclose(p); return OK; } Status Decoding() { if (!T) { FILE *fp = fopen("hfmTree.txt", "r"); fscanf(fp, "%d", &n); for (int i = 1; i < 2 * n; i++) { fscanf(fp, "%c %d %d %d %d", &T[i].c, &T[i].weight, &T[i].parent, &T[i].left, &T[i].right); } } FILE *fp = fopen("CodeFile.txt", "r"); FILE *fp1 = fopen("TextFile.txt", "w"); char t; while (fscanf(fp, "%c", &t) != EOF) { int i = 2 * n - 1; while ((T[i].left != 0 || T[i].right != 0)) { if (i != 2 * n - 1) fscanf(fp, "%c", &t); if (t == '0') { i = T[i].left; } else if (t == '1') i = T[i].right; } if (T[i].left == 0 && T[i].right == 0) { fprintf(fp1, "%c", T[i].c); } } fclose(fp); fclose(fp1); return OK; } void Print() { FILE *fp = fopen("CodeFile.txt", "r"); FILE *fp1 = fopen("CodePrin.txt", "w"); char t; int i = 0; while (fscanf(fp, "%c", &t) != EOF) { ++i; printf("%c", t); fprintf(fp1, "%c", t); if (i % 50 == 0) { printf("\n"); fprintf(fp1, "\n"); } } printf("\n"); fclose(fp); fclose(fp1); } void Tree_printing() { FILE *fp = fopen("TreePrint.txt", "w"); for (int i = 1; i < 2 * n; i++) { printf("T[i].c:%c\tT[i].weight:%d\tT[i].parent:%d\tT[i].left:%d\tT[i]." "right:%d\n", T[i].c, T[i].weight, T[i].parent, T[i].left, T[i].right); fprintf(fp, "T[i].c:%c\tT[i].weight:%d\tT[i].parent:%d\tT[i].left:%d\tT[i]." "right:%d\n", T[i].c, T[i].weight, T[i].parent, T[i].left, T[i].right); } fclose(fp); } int main(int argc, char const *argv[]) { int n; while (1) { printf("输入0结束程序\n输入1初始化\n输入2进行编码\n输入3进行译码\n输入4打印代码文件\n输入5打印哈夫曼树\n"); scanf("%d", &n); if (n == 0) break; else if (n == 1) Initialization(); else if (n == 2) Encoding(); else if (n == 3) Decoding(); else if (n == 4) Print(); else if (n == 5) Tree_printing(); } return 0; } ```
25.185345
145
0.447886
yue_Hant
0.129333
da640e3a64cb1ef08905d6f4e140a7010216fa75
102
md
Markdown
README.md
michaelmcm-pnw/chordcollector
da17184b9d93f1c7fd81a2e2a2fe7303dc97f754
[ "MIT" ]
null
null
null
README.md
michaelmcm-pnw/chordcollector
da17184b9d93f1c7fd81a2e2a2fe7303dc97f754
[ "MIT" ]
null
null
null
README.md
michaelmcm-pnw/chordcollector
da17184b9d93f1c7fd81a2e2a2fe7303dc97f754
[ "MIT" ]
null
null
null
# chordcollector.py Transforms tcpdump data into an array of relationships, for making chord diagrams
34
81
0.833333
eng_Latn
0.962792
da64275678e02e8ad54bb0f204e3d213fba22e3a
800
md
Markdown
doc/guide/1.start.md
douyu-beijing/candyjs
b0d04a2d9bceaba64870547b867334564c5ba9f3
[ "MIT" ]
9
2018-05-02T05:52:19.000Z
2022-02-03T18:26:35.000Z
doc/guide/1.start.md
douyu-beijing/candyjs
b0d04a2d9bceaba64870547b867334564c5ba9f3
[ "MIT" ]
2
2020-04-30T15:47:05.000Z
2020-05-10T04:36:53.000Z
doc/guide/1.start.md
douyu-beijing/candyjs
b0d04a2d9bceaba64870547b867334564c5ba9f3
[ "MIT" ]
3
2019-02-24T04:43:17.000Z
2021-01-27T08:37:41.000Z
## 关于 ![logo](../candy.png) `CandyJs` 是一款面向对象的 MVC and REST 框架,它提供了一套优雅的编写代码的规范,使得编写 Web 应用变得得心应手 #### 特点 + `candyjs` 实现了 `动态路由` 规范,您不需要提前注册所需要的路由,只需要输入请求 `candyjs` 会自动找到路由对应的处理器 + `candyjs` 实现了正则路由的合并,多个正则路由我们会将其合成一个大路由,避免了路由逐个匹配带来的巨大性能损失 ## 安装 通过 npm 安装 `candyjs` ```shell $ mkdir demo $ cd demo $ npm init $ npm install candyjs ``` ## 第一次运行程序 #### 初始化项目 安装完 `candyjs` 后,需要创建一个具体项目来编写业务逻辑 ```shell $ ./node_modules/.bin/_candy ``` 创建出的目录结构如下 ``` PROJECT_NAME | |- index.js | |- app | | | |-- controllers 普通控制器目录 | | | |-- index | | | | | |-- IndexController.js | | | -- views | | | |-- index | | | | | |-- index.html ``` #### 运行程序并访问 进入 PROJECT_NAME 目录,启动程序 ```shell $ node index.js ``` 访问程序 ``` http://localhost:2333/ ```
11.764706
72
0.58125
yue_Hant
0.610654
da67f9587a23ecd2e23594b06151e365d9b3e96c
3,798
md
Markdown
_posts/2007-05-22-a-girl-needs-cash.md
sayanee/books
1fb84cc4638fd04341e5ccc0fdfb46704142697a
[ "MIT" ]
2
2016-05-12T18:46:23.000Z
2017-09-13T07:07:27.000Z
_posts/2007-05-22-a-girl-needs-cash.md
sayanee/books
1fb84cc4638fd04341e5ccc0fdfb46704142697a
[ "MIT" ]
5
2018-08-10T02:11:59.000Z
2021-07-15T07:10:04.000Z
_posts/2007-05-22-a-girl-needs-cash.md
sayanee/books
1fb84cc4638fd04341e5ccc0fdfb46704142697a
[ "MIT" ]
1
2016-08-16T05:52:01.000Z
2016-08-16T05:52:01.000Z
--- layout: post title: A girl needs cash authors: Joan Perry --- - **Book Title:** A Girl Needs Cash - Banish the white knight myth and Take Charge of your Financial Life - **Author:**Joan Perry with Dolores Barclays - **Year written/published:** 1997 - **Some extracts:** 3 guideposts to financial successes: 1. spend less than you earn 2. invest the difference 3. reinvest all your returns for compound growth until you have a pot of invested money that generates the income you want for life - your 'trust fund' the white knight myth... > while i was busy bathing myself in fairy dust and listening to my Prince Charming croon his words of love, I missed out on nurturing my soul. I also lost some self-esteem and the opportunity to grow because i didn't accept responsibility for a major part of my life. The woman who is totally dependant on a man when it comes to money, and ignorant of her financial life, is compromising true love and paralysing herself in the process. other myths and mis conceptions... 1. White Knight Myth - father/brother/husband/broker/planner/son/banker/cousin/uncle will take care on her finances 2. Market savvy myth-need to become an expert before investing 3. Myth of big bundle - need to have a lot of money to invest productively 4. Credit card myth - need to pay off credit card debts before investing 5. Social security/Pension myth - future is secured 6. Tax myth - low tax when not working 7. Feminity myth- gals cannot invest/manage finance/understand money What truly gives you pleasure... > As you examine your spending habits, the operative wealth building question is:'What's really going to add joy, peace and tranquility to my life, not just at the moment but down the road?' The trick is to keep what gives you true pleasure and enhances your being, but spare back what gives you only a false sense of **status**. And lean to enjoy the possessions and activities that add a little spring to your stride for what they are and not for any **prestige** that may be attached to them. When this positive approach, you'll free up yourself from the grip of **consumerism** and take charge of your financial life. Stock... > Stock represents a share of ownership in a company. Normally, a stock is traded on one of the following exchanges: NYSE, ASE, NASDAQ, PSE, OTC. ... ... ...  Since a share of stock represents part ownership of a company, the prices of stock shares rise and fall depending on the earnings picture for the company. Mutual Fund... > Mutual fund is a collection of stocks chosen by a fund manager who has developed a skill at buying and selling stocks. Mutual fund allows you to invest in the stock market without having to make individual buy-and-sell decisions; the fund manager does that for you. ... Mutual funds are the best way for a beginning investor to tap into opportunities offered by the stock market... With a mutual fund, you'll be more secure. After all, the fund is composed of many stocks that each perform differently. Some of the stocks will do better than others, but overall, the fund's objective is to increase in value and grow your investment. ... This chance to invest in many stocks, not just one, diversifies the dollars that you invest and in one of the major advantages of mutual fund. Stock evaluation model: 1. is it a quality company? 2. what is the right price to buy this stock at? 3. What is your subjective evaluation of the company? Types of Financial Advocates: > brokers, financial planners, financial advisers, accountants. > A broker will receive a commission when you invest say in stocks or mutual funds. A financial adviser will change a fee on the total money in your account. Alternatively, a planner may charge a flat hourly fee to help you set up your investment plan.
67.821429
782
0.774618
eng_Latn
0.999833
da694fc2b6e3814a5b51a44ecc4ef079aaa5ac3e
1,761
md
Markdown
content/en/metrics/index.md
open-neuroscience/open-neuroscience.github.io_bakcup2
c2c4fe6f4584cae8485c5f363477b52187016cc9
[ "MIT" ]
2
2020-05-25T18:30:41.000Z
2020-07-23T13:37:23.000Z
content/en/metrics/index.md
open-neuroscience/open-neuroscience.github.io_bakcup2
c2c4fe6f4584cae8485c5f363477b52187016cc9
[ "MIT" ]
23
2020-05-25T19:27:14.000Z
2020-10-24T15:36:54.000Z
content/en/metrics/index.md
open-neuroscience/open-neuroscience.github.io_bakcup2
c2c4fe6f4584cae8485c5f363477b52187016cc9
[ "MIT" ]
2
2020-08-30T05:21:03.000Z
2020-09-10T12:23:34.000Z
--- title: "Metrics" date: 2022-05-01T09:53:14+00:00 authors: ['André Maia Chagas'] layout: post --- Last Update: 2021-04-11 We use [plausible.io](plausible.io) for our analytics. This is an Open Source system that respect users privacy (does not use cookies and is GDPR compliant). Our website stats publicly available at plausible.io, you can check them [here](https://plausible.io/open-neuroscience.com?period=12mo). Being user-driven means we have to pay close attention at how our audience interacts with our content. This includes the website, our [Twitter account](twitter.com/openneurosci) , and our [YouTube Channel](https://www.youtube.com/channel/UCHPvi_HaEU7OQgXQBh9ECvQ) , where we host video content such us our Seminar Series Streaming. ### Website Analytics ![](unnamed-chunk-3-1.png)<!-- --> ![](unnamed-chunk-4-1.png)<!-- --> ![](unnamed-chunk-5-1.png)<!-- --> #### Maps ![](unnamed-chunk-6-1.png)<!-- --> ![](unnamed-chunk-8-1.png)<!-- --> ![](unnamed-chunk-10-1.png)<!-- --> These are the days with most visits to the site ## # A tibble: 26 x 3 ## # Groups: code [4] ## Date code Visitors ## <date> <chr> <dbl> ## 1 2020-07-07 USA 51 ## 2 2020-07-22 USA 32 ## 3 2020-07-24 USA 32 ## 4 2021-03-24 USA 29 ## 5 2020-07-08 USA 28 ## 6 2020-10-01 USA 28 ## 7 2020-10-05 USA 28 ## 8 2020-11-12 USA 28 ## 9 2021-02-22 USA 28 ## 10 2020-10-06 USA 26 ## # … with 16 more rows ### Twitter Analytics ![](unnamed-chunk-11-1.png) <br> <br> ![](unnamed-chunk-11-2.png)<!-- --> ![](unnamed-chunk-12-1.png)<!-- --> ![](twitter_days-1.png)<!-- --> <br> <br>
22.576923
72
0.592845
eng_Latn
0.630689
da6ab29db5c6d51cb4e10c5e06a2e7a8e3a699da
3,219
md
Markdown
docs/notes/to_read.md
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
docs/notes/to_read.md
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
docs/notes/to_read.md
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
# Articles, books to read ## UX - <https://www.linkedin.com/in/zoltankollin> - <https://medium.com/@span870/the-only-ux-reading-list-ever-d420edb3f4ff> - <http://ui-cloud.com/> - <http://www.uie.com/articles/self_design> - <http://52weeksofux.com/tagged/week_1> - <http://uxmyths.com/> - <http://en.wikipedia.org/wiki/User_experience> - <http://en.wikipedia.org/wiki/User_experience_design> - <http://en.wikipedia.org/wiki/Interaction_design> - <http://en.wikipedia.org/wiki/Website_wireframe> - <http://en.wikipedia.org/wiki/Paper_prototyping> - <http://en.wikipedia.org/wiki/Usability_testing> - <http://en.wikipedia.org/wiki/Persona_(user_experience)> ## A/B testing - <http://drjasondavis.com/blog/2013/09/12/eight-ways-youve-misconfigured-your-ab-test> - <http://www.evanmiller.org/bayesian-ab-testing.html> - <http://www.evanmiller.org/ab-testing/sample-size.html> - <http://www.evanmiller.org/how-not-to-run-an-ab-test.html> ## Typopgraphy - <http://www.creativebloq.com/typography/should-designers-care-about-typographic-mistakes-21514209> - <http://www.creativebloq.com/typography/mistakes-everyone-makes-21514129> - <http://www.creativebloq.com/typography/tricks-every-designer-should-know-12121561> - <http://www.creativebloq.com/typography/fonts-for-designers-2131830> - <http://www.typewolf.com/cheatsheet> - <http://hungarumlaut.com/> - <https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight> - <http://www.webtype.com/info/articles/fonts-weights/> - <http://en.wikipedia.org/wiki/Trebuchet_MS> - <http://typophile.com/node/75457> - <http://www.typetester.org/> - <http://www.identifont.com/similar?XG> - <http://www.cssfontstack.com/Verdana> - <http://www.will-harris.com/verdana-georgia.htm> - <http://www.prepressure.com/fonts/interesting/verdana> - <http://www.fontbureau.com/fonts/VerdanaPro/> - <https://medium.com/designing-medium/death-to-typewriters-9b7712847639> - <https://medium.com/designing-medium/whitespace-8b92273ab49e> - <http://ionicons.com/> ## Mobile ### Multiplatform mobile web apps - <http://www.appgyver.com/> - <https://cordova.apache.org/> - <http://phonegap.com/> - <http://en.wikipedia.org/wiki/PhoneGap> - <http://www.smashingmagazine.com/2014/02/11/four-ways-to-build-a-mobile-app-part3-phonegap/> - <http://www.smashingmagazine.com/2014/03/10/4-ways-build-mobile-application-part4-appcelerator-titanium/> ### Mobile design guidelines - <http://www.smashingmagazine.com/2012/07/12/elements-mobile-user-experience/> - <http://developer.android.com/design/patterns/pure-android.html> - <https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/index.html> - <https://msdn.microsoft.com/library/windows/apps/hh465424.aspx> ## Misc - <http://www.engadget.com/2015/04/21/google-mobile-search/> - <http://www.nngroup.com/articles/response-times-3-important-limits/> - <https://moqups.com/> - <http://moz.com/blog/5-lessons-learned-from-100000-usability-studies> - <http://www.usertesting.com/> - <http://en.wikipedia.org/wiki/Card_sorting> - <http://www.usability.gov/how-to-and-tools/methods/card-sorting.html> - <http://www.measuringu.com/blog/card-sorting.php> - <http://www.usabilitynet.org/tools/cardsorting.htm>
37.430233
107
0.742156
yue_Hant
0.72113
da6afb9143b289ee442e0c4546d7f8e16f7013d6
50,011
md
Markdown
results0303/Decisions & POCs/Data_Warehouse_Reconciliation_Framework.md
ARYARAJ1/confluence-to-markdown
6eb8ffbe4031be9d5b172fdbbf51e1c62ffbb309
[ "MIT" ]
1
2022-03-29T08:10:11.000Z
2022-03-29T08:10:11.000Z
results0303/Decisions & POCs/Data_Warehouse_Reconciliation_Framework.md
ARYARAJ1/confluence-to-markdown
6eb8ffbe4031be9d5b172fdbbf51e1c62ffbb309
[ "MIT" ]
null
null
null
results0303/Decisions & POCs/Data_Warehouse_Reconciliation_Framework.md
ARYARAJ1/confluence-to-markdown
6eb8ffbe4031be9d5b172fdbbf51e1c62ffbb309
[ "MIT" ]
null
null
null
# Data Warehouse Reconciliation Framework # Introduction As mentioned in <a href="Data_Warehouse_Loading_Pattern_Design.md" data-linked-resource-id="567148575" data-linked-resource-version="21" data-linked-resource-type="page">Data Warehouse Loading Pattern Design</a>, there will be a number of bespoke stored procedures used to produce the intermediary tables to simplify the data warehouse load procedure. To ensure that data are inserted and updated correctly in the destination tables (i.e. data warehouse tables), we need to have a framework to automatically reconcile some basic stats between what we expect to produce based on the content in the time-varying tables in the curated layer and what actually produced in the final data warehouse tables. The reconciliation will run repeatedly for each period and notify users if discover any inconsistency. <div class="toc-macro rbtoc1639539804959"> - 1 [Introduction](#DataWarehouseReconciliationFramework-Introduction) - 2 [Metrics to Reconcile](#DataWarehouseReconciliationFramework-MetricstoReconcile) - 3 [Reconciliation Framework Design Options](#DataWarehouseReconciliationFramework-ReconciliationFrameworkDesignOptions) - 4 [Decision](#DataWarehouseReconciliationFramework-Decision) - 5 [Send Email from ADF Using Logic Apps](#DataWarehouseReconciliationFramework-SendEmailfromADFUsingLogicApps) - 6 [Stored Procedure Structure](#DataWarehouseReconciliationFramework-StoredProcedureStructure) </div> # Metrics to Reconcile The **reconciliation** happens between the **time-varying tables** at the curated layer and the **star schema tables** in the data warehouse, the very first beginning and the last step of the data warehouse pipeline. The following table list metrics that will be used for comparison: <div class="table-wrap"> | | | | |------------------------|--------------------------------------|-------------------------------------------------------------------| | **Target** | **Metrics** | **Purpose** | | All star schema tables | Number of row inserted | Ensure the expected number of insertion is performed successfully | | All star schema tables | Number of row updated | Ensure the expected number of updates is performed successfully | | All star schema tables | Total number of rows | filter by active records. | | Fact tables | Sum of values of applicable field(s) | Ensure the calculation is performed correctly | </div> # Reconciliation Framework Design Options The options are base on the outcome from <a href="Data_Warehouse_Pipeline_-_3._Process.md" data-linked-resource-id="469860353" data-linked-resource-version="42" data-linked-resource-type="page">Data Warehouse Pipeline - 3. Process</a>. <div class="table-wrap"> <table class="confluenceTable" data-layout="default"> <tbody> <tr class="header"> <th class="confluenceTh"></th> <th class="confluenceTh"><p><strong>Option 1: Reconciliation as a pipeline executed after the star schema pipeline</strong></p></th> <th class="confluenceTh"><p><strong>Option 2: Embed reconciliation in data warehouse load and only perform loading if reconcile</strong> DECIDED</p></th> <th class="confluenceTh"><p><strong>Option 3: ADF triggers a dashboard refresh and visualise on a pre-created metrics view</strong></p></th> </tr> <tr class="odd"> <td class="confluenceTd"><p>Description</p></td> <td class="confluenceTd"><p>Extend the existing <a href="Data_Warehouse_Pipeline_-_3._Process.md" data-linked-resource-id="469860353" data-linked-resource-version="42" data-linked-resource-type="page">data warehouse hyper pipeline design</a> to have one more sub-pipeline for reconciliation. Once all the star schema tables have been successfully loaded, run the reconciliation pipeline. The pipeline will contain <strong>bespoke stored procedure(s)</strong> to calculate different metrics. The calculation Metrics value of both expected and actual can be persisted into a table in Snowflake to track historical trend and future analysis. Utilise the existing method (<a href="https://www.mssqltips.com/sqlservertip/5718/azure-data-factory-pipeline-email-notification--part-1/" rel="nofollow">ADF, logic apps, and Web Activity</a>) to <strong>send out notification emails</strong>. <strong>Note</strong>: when calculating the expected metric values, only need to use a driving table. The implementation of the logic usually can be simpler and need to be different from the implementation of the loading.</p> <div id="ap-com.mxgraph.confluence.plugins.diagramly__drawio2285520807949371143" class="ap-container"> <div id="embedded-com.mxgraph.confluence.plugins.diagramly__drawio2285520807949371143" class="ap-content"> </div> </div></td> <td class="confluenceTd"><p>Extend on the stored procedures within a <strong>ForEach loop</strong> in the existing <a href="Data_Warehouse_Pipeline_-_3._Process.md" data-linked-resource-id="469860353" data-linked-resource-version="42" data-linked-resource-type="page">data warehouse hyper pipeline design</a>, and add <strong>new bespoke stored procedure</strong> (calculate <strong>expected values from time-varying tables</strong>, based on a driving table) and <strong>enhance the existing bespoke stored procedure</strong> (calculate <strong>expected values from loading logic</strong>). If <strong>a table fails to reconcile</strong>, the master will <strong>skip its loading process</strong> rather than stop loading for all tables. The results can be written to a metric table to track trends and support future analysis. Only when two expected values are consistent, execute the loading logic and ingest data into the data warehouse table. The reconciliation happens to both the data vault and star schema pipeline. Once the loop finishes, Utilise the existing method (<a href="https://www.mssqltips.com/sqlservertip/5718/azure-data-factory-pipeline-email-notification--part-1/" rel="nofollow">ADF, logic apps, and Web Activity</a>) to <strong>send out notification emails</strong>.</p> <div id="ap-com.mxgraph.confluence.plugins.diagramly__drawio7694715179941597971" class="ap-container"> <div id="embedded-com.mxgraph.confluence.plugins.diagramly__drawio7694715179941597971" class="ap-content"> </div> </div></td> <td class="confluenceTd"><p>Maintain the existing data warehouse hyper pipeline design. To support the reconciliation, produce a <strong>view in Snowflake</strong> with all the metrics with expected values from time-varying tables and actual values from star schema tables. Create a <strong>dashboard</strong> to consume and visualise the metrics. Add a <strong>Web Activity or Copy Activity in ADF</strong> as the <strong>last step</strong> in the Data Warehouse Hyper Pipeline to <strong>refresh data extract in Tableau or PowerBI API</strong> for visualisation (A plan B is to use <strong>scheduled refresh</strong> on the side of <a href="https://help.tableau.com/current/server/en-us/schedule_add.htm" rel="nofollow">Tableau</a> and <a href="https://docs.microsoft.com/en-us/power-bi/report-server/configure-scheduled-refresh" rel="nofollow">PowerBI</a>). Add a <strong>data-driven alert</strong> on the dashboard to send out an email when a threshold is reached.</p> <div id="ap-com.mxgraph.confluence.plugins.diagramly__drawio2249810376468340967" class="ap-container"> <div id="embedded-com.mxgraph.confluence.plugins.diagramly__drawio2249810376468340967" class="ap-content"> </div> </div></td> </tr> <tr class="even"> <td class="confluenceTd"><p>Advantages</p></td> <td class="confluenceTd"><ul> <li><p>Only a new pipeline gets added after loading data to the star schema. The data vault and star schema pipeline are untouched.</p></li> <li><p>The solution is relatively simple and predictable.</p></li> <li><p>Can control how to send the notification: each problem triggers an email or one email that contains all the problems using a stored procedure.</p></li> <li><p>Historical metric values are persistent in a metric table.</p></li> <li><p>As the reconciliation is part of the data warehouse hyper pipeline, reconciliation failure will cause the hyper pipeline failure and therefore, no future loading will happen until the reconciliation succeeds.</p></li> </ul></td> <td class="confluenceTd"><ul> <li><p>If inconsistency is discovered, no rollback is needed as data warehouse tables haven’t been updated yet.</p></li> <li><p>Historical metric values are persistent in a metric table.</p></li> <li><p>As reconciliation failure will fail the data warehouse pipelines, no future loading will happen until the reconciliation succeeds.</p></li> </ul></td> <td class="confluenceTd"><ul> <li><p>Leverage functionality in ADF (to trigger a dashboard refresh: <a href="https://www.clearpeaks.com/beyond-standard-etl-with-azure-data-factory-creating-automated-and-pay-per-use-etl-pipelines-with-rest-api-triggering/" rel="nofollow">Tableau</a>, <a href="https://www.moderndata.ai/2019/05/powerbi-dataset-refresh-using-adf/" rel="nofollow">PowerBI</a>) and dashboard (data-driven alert: <a href="https://help.tableau.com/current/pro/desktop/en-us/data_alerts.htm" rel="nofollow">Tableau</a>, <a href="https://docs.microsoft.com/en-us/power-bi/consumer/end-user-alerts" rel="nofollow">PowerBI</a>) for reconciliation with visualisation.</p></li> <li><p>The solution is relatively light weight (no stored procedures) and provides visualisation on reconciliation.</p></li> <li><p>Can control how to send the notification: each problem triggers an email or one email that contains all the problems.</p></li> <li><p>Historical metric values are persistent in a metric view.</p></li> </ul></td> </tr> <tr class="odd"> <td class="confluenceTd"><p>Disadvantages</p></td> <td class="confluenceTd"><ul> <li><p>If inconsistency is discovered, rollback is required as incorrect data due to error in data has been populated into the data warehouse tables.</p></li> <li><p>To reduce the amount of rollback and reload which is quite labour intensive, testing of stored procedure needs to be done thoroughly.</p></li> <li><p>Data manipulation logic exists in two places, i.e. snowflake stored procedures that perform data load and reconciliation.</p></li> </ul></td> <td class="confluenceTd"><ul> <li><p>Increase the complexity of the data vault and star schema pipeline, particular the stored procedures.</p></li> <li><p>Data manipulation logic exists in two places, i.e. snowflake stored procedures that perform data load and reconciliation.</p></li> </ul></td> <td class="confluenceTd"><ul> <li><p>If inconsistency is discovered, rollback is required as incorrect data due to error in stored procedures have been introduced into the data warehouse tables.</p></li> <li><p>To reduce the amount of rollback and reload which is quite effortful, testing of stored procedure needs to be done thoroughly.</p></li> <li><p>Only a subset of visualisation supports data-driven email alert (<a href="https://help.tableau.com/current/pro/desktop/en-us/data_alerts.htm" rel="nofollow">Tableau</a>, <a href="https://docs.microsoft.com/en-us/power-bi/consumer/end-user-alerts" rel="nofollow">PowerBI</a>).</p></li> <li><p>The view that the dashboard consumes will need manual update if a new data feed is added or any logic is changed.</p></li> <li><p>Data manipulation logic exists in two places, i.e. snowflake stored procedure, view creation.</p></li> <li><p>Will need a POC to confirm the integration with ADF and Tableau or PowerBI.</p></li> <li><p>As the reconciliation is independent to the data warehouse pipelines, reconciliation failure has no impact on the data warehouse load and therefore, won’t stop any future load.</p></li> </ul></td> </tr> </tbody> </table> </div> # Decision The decision is made based on four principles: <div class="table-wrap"> <table class="confluenceTable" data-layout="default"> <tbody> <tr class="header"> <th class="confluenceTh"><p><strong>Principles</strong></p></th> <th class="confluenceTh"><p><strong>Reconciliation as a pipeline executed after the star schema pipeline</strong></p></th> <th class="confluenceTh"><p><strong>Embed reconciliation in data warehouse load and only perform loading if reconcile</strong> DECIDED</p></th> <th class="confluenceTh"><p><strong>ADF triggers a dashboard refresh and visualise on a pre-created metrics view</strong></p></th> </tr> <tr class="odd"> <td class="confluenceTd"><p>Simple solution is better solution.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/check.png" class="emoticon emoticon-tick" data-emoji-id="atlassian-check_mark" data-emoji-shortname=":check_mark:" data-emoji-fallback=":check_mark:" data-emoticon-name="tick" width="16" height="16" alt="(tick)" /></p> <p>Build a new pipeline for reconciliation using known functionalities in ADF and Snowflake.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>Create new stored procedure to calculated expectation from time-varying tables, and enhance existing stored procedure to calculate expectation from loading logic for both data vault and star schema pipeline. The complexity comes from the reconciliation in both data vault and star schema to avoid rollback for incorrection values.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>Build a new view for all the reconciliation metrics and a dashboard to visualise metrics. The complexity comes from the extra work on the visualisation and the integration between ADF and the dashboard.</p></td> </tr> <tr class="even"> <td class="confluenceTd"><p>Minimise the introduction of new services unless necessary.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/check.png" class="emoticon emoticon-tick" data-emoji-id="atlassian-check_mark" data-emoji-shortname=":check_mark:" data-emoji-fallback=":check_mark:" data-emoticon-name="tick" width="16" height="16" alt="(tick)" /></p> <p>No new service needed.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/check.png" class="emoticon emoticon-tick" data-emoji-id="atlassian-check_mark" data-emoji-shortname=":check_mark:" data-emoji-fallback=":check_mark:" data-emoticon-name="tick" width="16" height="16" alt="(tick)" /></p> <p>No new service needed.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>Introduce dashboard (Tableau or PowerBI) and associated integration with ADF.</p></td> </tr> <tr class="odd"> <td class="confluenceTd"><p>It has to be easy to use for on-going maintenance and operation.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>If a transformation logic changes, more than one places in the reconciliation solution need to be updated.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>If a transformation logic changes, more than one places in the reconciliation solution need to be updated.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>If a transformation logic changes, more than one places in the reconciliation solution need to be updated.</p></td> </tr> <tr class="even"> <td class="confluenceTd"><p>Whether require rollback and reload if reconciliation fails</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>Will require rollback and reload if reconciliation fails.</p> <p>Reconciliation failure can stop future data warehouse loading and therefore reduce the amount of rollback.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/check.png" class="emoticon emoticon-tick" data-emoji-id="atlassian-check_mark" data-emoji-shortname=":check_mark:" data-emoji-fallback=":check_mark:" data-emoticon-name="tick" width="16" height="16" alt="(tick)" /></p> <p>No rollback and reload needed as data won’t be loaded due to reconciliation failure.</p> <p>Reconciliation failure can stop future data warehouse loading and therefore avoid the amount of rollback.</p></td> <td class="confluenceTd"><p><img src="images/icons/emoticons/error.png" class="emoticon emoticon-cross" data-emoji-id="atlassian-cross_mark" data-emoji-shortname=":cross_mark:" data-emoji-fallback=":cross_mark:" data-emoticon-name="cross" width="16" height="16" alt="(error)" /></p> <p>Will require rollback and reload if reconciliation fails.</p> <p>Reconciliation failure doesn’t stop future data warehouse loading and therefore more rollback if the reconciliation didn’t resolve early enough.</p></td> </tr> </tbody> </table> </div> In the 2nd Feb. 2021 meeting with Bo Kwon (Deactivated), [email protected] Lindsay-Smith and Sarah Fan (Deactivated), the option 2 is chosen. The primary reason is because this option doesn’t require rollback and reload if reconciliation fails. We foresee reconciliation failure could happen quite often during the early stage of the pipeline implementation due to the large number of bespoke stored procedure to implement for data warehouse loading, and the on-going changes from PEGA. Rollback and reload are manual and effortful. By investing more initial effort to implement the option 2 could bring in more time saving when reconciliation fails. In the 8th Feb. 2021 meeting with Rahul Pandey (Deactivated), he has agreed on the choice of the option 2 as long as only the problematic table gets stopped and rest of tables that are successfully reconciled will perform the loading. # Send Email from ADF Using Logic Apps Sending an email from ADF requires a **Logic App** to be created and a **Webhook Activity** to make a POST call to the URL of the Logic App, The Logic App consists of a HTTP trigger and an Outlook 365 send email action. **Step 0**: A stored procedure (named **SP_SF_TEST**) to **output** the error message and technical metadata (**Note**: make sure the keys that are used in the dynamic email is at the top level of the JSON object as in the example. Otherwise, they will return Null in the email.). The Lookup Activity can return an example in the following screenshot: <img src="attachments/575045842/587005986.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/587005986.png" data-height="485" data-width="1319" data-unresolved-comment-count="0" data-linked-resource-id="587005986" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210122-035751.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="39c38596-4b17-41df-bfaf-81368ad96ab4" data-media-type="file" /> **Step 1**: create a Logic App - HTTP Trigger - After save the app, need to grab the **URL** which will be used in the **Webhook Activity**. - The **JSON Schema** needs to reflect the exact structure of the JSON in the **Webhook Activity**. - <div class="code panel pdl" style="border-width: 1px;"> <div class="codeContent panelContent pdl"> ``` java # The JSON Schema used in the example { "DataFactoryName": { "type": "string" }, "EmailTo": { "type": "string" }, "ErrorMessage": { "type": "string" }, "PipelineName": { "type": "string" }, "Subject": { "type": "string" } } ``` </div> </div> <img src="attachments/575045842/587169855.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/587169855.png" data-height="635" data-width="761" data-unresolved-comment-count="0" data-linked-resource-id="587169855" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210122-035936.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="1ba3a278-36fc-4489-9568-be960f48b15c" data-media-type="file" /> - Send email action using Office Outlook 365 - When specify **Body, Subject and To fields**, the GUI will automatically bring up **dynamic content fields** that can be used. You will find that the keys in the JSON object passed over from the Webhook Activity appear in the list. Select them to draft the email. <img src="attachments/575045842/594837547.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/594837547.png" data-height="427" data-width="610" data-unresolved-comment-count="0" data-linked-resource-id="594837547" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-005809.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="0a7d5462-c01d-4ab1-af6e-cdd28afe4c5a" data-media-type="file" /> - <a href="https://docs.microsoft.com/en-us/azure/data-factory/control-flow-webhook-activity#:~:text=A%20webhook%20activity%20can%20control,proceeds%20to%20the%20next%20activity" rel="nofollow">Make a callback to the Webhook activity</a> - This is to return the execution status to ADF - Use **HTTP action** with **POST** method and the **callBackUri** in the output of the HTTP trigger. The **callBackUri** is dynamic for each HTTP trigger. - The **Header** has to be as shown in the example. - The **Body** has to follow the structure shown in the example. - <div class="code panel pdl" style="border-width: 1px;"> <div class="codeContent panelContent pdl"> ``` java # Define URI using expression triggerBody()['callBackUri'] ``` </div> </div> <img src="attachments/575045842/595198039.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/595198039.png" data-height="538" data-width="613" data-unresolved-comment-count="0" data-linked-resource-id="595198039" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-020009.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="bfe548fc-bda3-43f8-940d-6224e32f37b5" data-media-type="file" /> **Step 2**: define the Webhook Activity - **Webhook vs. Web** Activity - The difference between a Webhook Activity and a Web Activity is that the **Webhook Activity** is a **synchronous** service that ADF will receive the execution status of the logic app, while the **Web Activity** is an **asynchronous** service that ADF only cares about whether it successfully triggers the logic app and doesn’t care about the execution outcome. - The **URI** is the logic app url. - The **Header** is required by the logic app and has to be the value shown. - The **Body** can be either a string (as in the example), or a JSON object. - <div class="code panel pdl" style="border-width: 1px;"> <div class="codeContent panelContent pdl"> ``` java # a string. Executing the string return a JSON object @json(activity('run_snowflake_sp').output.firstRow.SP_SF_TEST) # a JSON object { "DataFactoryName": "ADF_test", "EmailTo": "[email protected]", "ErrorMessage": "error_message", "PipelineName": "pipeline_1", "Subject": "something went wrong" } ``` </div> </div> - An appropriate **Timeout** is required so ADF doesn’t have to wait for too long for the execution status from the logic app, or too short before the callback request being sent and executed. <img src="attachments/575045842/594837553.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/594837553.png" data-height="580" data-width="605" data-unresolved-comment-count="0" data-linked-resource-id="594837553" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-020718.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="94b53062-e547-43a7-85b9-d0aeb15daa7f" data-media-type="file" /> Then the email is successfully sent out, in **ADF log** (Azure Monitor): <img src="attachments/575045842/594837563.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/594837563.png" data-height="212" data-width="1125" data-unresolved-comment-count="0" data-linked-resource-id="594837563" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-021043.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="72b5e89e-c371-48f5-9157-d63d7362f3de" data-media-type="file" /><img src="attachments/575045842/594509930.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/594509930.png" data-height="478" data-width="1288" data-unresolved-comment-count="0" data-linked-resource-id="594509930" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-021002.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="561c3649-161b-4c40-8fe4-6fcccfac4b8e" data-media-type="file" /> In the **Logic App log**, <img src="attachments/575045842/595001461.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/595001461.png" data-height="302" data-width="1495" data-unresolved-comment-count="0" data-linked-resource-id="595001461" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-021214.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="444a9a8b-f234-4eb9-af5e-16a15fe71e98" data-media-type="file" /><img src="attachments/575045842/594575457.png" class="image-center" loading="lazy" data-image-src="attachments/575045842/594575457.png" data-height="342" data-width="1262" data-unresolved-comment-count="0" data-linked-resource-id="594575457" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="image-20210125-021238.png" data-base-url="https://vmia.atlassian.net/wiki" data-linked-resource-content-type="image/png" data-linked-resource-container-id="575045842" data-linked-resource-container-version="20" data-media-id="a4684c85-847b-4704-9a41-c8ec6c9e2177" data-media-type="file" /> # Stored Procedure Structure Snowflake supports a stored procedure calling another store procedure and consume the latter’s output. This would serve the option 1 and 2 for a master stored procedure (i.e. trigger the metric calculation and evaluate the expected and actual values) to call one or more slave stored procedure (i.e. calculate the expected and the actual values of metrics). A generic code structure is as below: <div class="code panel pdl" style="border-width: 1px;"> <div class="codeContent panelContent pdl"> ``` java use database sf_test; CREATE OR REPLACE PROCEDURE get_columns(TABLE_NAME VARCHAR) RETURNS ARRAY LANGUAGE JAVASCRIPT AS $$ var stmt = snowflake.createStatement({ sqlText: "SELECT * FROM " + TABLE_NAME + " LIMIT 1;", }); stmt.execute(); var cols=[]; for (i = 1; i <= stmt.getColumnCount(); i++) { cols.push(stmt.getColumnName(i)); } return cols $$; CREATE OR REPLACE PROCEDURE get_data() //procedure call the above procedure RETURNS ARRAY LANGUAGE JAVASCRIPT AS $$ var r = snowflake.execute({sqlText: "call get_columns('sf_test.test2')"}); r.next(); // use next() to iterate over the resultset to retrieve technical metadata return r.getColumnValue(1); $$; call get_data(); ``` </div> </div> <div class="pageSectionHeader"> ## Attachments: </div> <div class="greybox" align="left"> <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design_1.svg.tmp](attachments/575045842/577372179.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design_1.svg.tmp](attachments/575045842/577536003.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design_1.svg](attachments/575045842/574947680.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design_1.svg.png](attachments/575045842/577470475.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577536055.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/564495494.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/574849449.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577470513.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/564495503.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577601579.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/574849458.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577503298.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577503307.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design1.svg.tmp](attachments/575045842/577372208.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/567149302.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/577536144.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577404984.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/567149202.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577470555.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577404993.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577503325.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577470564.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577405002.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577503334.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577470573.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design2.svg.tmp](attachments/575045842/577175613.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/577372313.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/577175636.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/567149254.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/567149264.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/577503453.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/567149390.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/577470830.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/577470840.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577634508.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577470667.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/567149323.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577405102.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/574849574.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577372428.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577601740.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577405111.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577372437.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~drawio\~5dc205aeb6e6b50c58aeca8b\~Recon_design3.svg.tmp](attachments/575045842/577634503.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg](attachments/575045842/577634542.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg.png](attachments/575045842/574849600.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/564495685.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577175756.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577601753.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577601762.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/574849591.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/567149372.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg](attachments/575045842/577634562.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg.png](attachments/575045842/577503440.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577503422.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577536173.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/577634552.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design3.svg.tmp](attachments/575045842/567149342.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg](attachments/575045842/567149332.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design3.svg.png](attachments/575045842/567149337.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/577405440.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/577536597.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/577503589.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/564495856.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/577602056.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/577503720.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/594509971.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/595198095.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/595099764.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/595001498.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210122-035623.png](attachments/575045842/587268122.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210122-035646.png](attachments/575045842/587137053.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210122-035751.png](attachments/575045842/587005986.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210122-035936.png](attachments/575045842/587169855.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210124-235636.png](attachments/575045842/595198005.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-001748.png](attachments/575045842/595198019.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-005809.png](attachments/575045842/594837547.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-020009.png](attachments/575045842/595198039.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-020718.png](attachments/575045842/594837553.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-021002.png](attachments/575045842/594509930.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-021043.png](attachments/575045842/594837563.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-021214.png](attachments/575045842/595001461.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [image-20210125-021238.png](attachments/575045842/594575457.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/594837696.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/594903207.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/618397747.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/618397757.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/618102805.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/618201104.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618397697.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618364941.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618365009.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/618070143.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/618266726.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/618168408.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/618496080.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618201192.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618332264.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618332278.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618332288.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618365027.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/618102885.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design1.svg.tmp](attachments/575045842/577470626.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg](attachments/575045842/577470522.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design1.svg.png](attachments/575045842/577634344.png) (image/png) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618397821.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618365077.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618528817.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618201286.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618201296.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618332316.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618201310.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618332326.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/618463339.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [\~Recon_design2.svg.tmp](attachments/575045842/577470587.tmp) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg](attachments/575045842/564495549.svg) (application/vnd.jgraph.mxfile) <img src="images/icons/bullet_blue.gif" width="8" height="8" /> [Recon_design2.svg.png](attachments/575045842/577536078.png) (image/png) </div>
47.857416
177
0.741357
eng_Latn
0.43067
da6cea28b5e193b4fea8a17362037df0c9a5d01a
1,886
md
Markdown
README.md
wmde/mediawiki-doctrine-connection
0562ad646e6743df60a62b3721f132ec05404861
[ "BSD-3-Clause" ]
1
2019-04-07T10:47:55.000Z
2019-04-07T10:47:55.000Z
README.md
wmde/mediawiki-doctrine-connection
0562ad646e6743df60a62b3721f132ec05404861
[ "BSD-3-Clause" ]
1
2019-04-11T05:16:51.000Z
2019-04-11T05:16:51.000Z
README.md
wmde/mediawiki-doctrine-connection
0562ad646e6743df60a62b3721f132ec05404861
[ "BSD-3-Clause" ]
null
null
null
DISCONTINUED: This library was a proof of concept created in 2019, and has never been used in production code. # MediaWiki Doctrine Connection [![Build Status](https://travis-ci.org/wmde/mediawiki-doctrine-connection.svg?branch=master)](https://travis-ci.org/wmde/mediawiki-doctrine-connection) [![Latest Stable Version](https://poser.pugx.org/mediawiki/doctrine-connection/version.png)](https://packagist.org/packages/mediawiki/doctrine-connection) [![Download count](https://poser.pugx.org/mediawiki/doctrine-connection/d/total.png)](https://packagist.org/packages/mediawiki/doctrine-connection) Tiny library for creating a Doctrine DBAL Connection from a MediaWiki Database object. Supported databases are: * Mysqli * SQLite (PDO) ## Usage Connections are constructed via the `DoctrineConnectionFactory`: ```php $factory = new DoctrineConnectionFactory(); $doctrineConnection = $factory->connectionFromDatabase( $mwDatabase ); ``` ## Installation To use the MediaWiki Doctrine Connection library in your project, simply add a dependency on mediawiki/doctrine-connection to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on MediaWiki Doctrine Connection 1.x: ```json { "require": { "mediawiki/doctrine-connection": "~1.0" } } ``` ## Development Start by installing the project dependencies by executing composer update You can run the style checks by executing make cs Since the library depends on MediaWiki, you need to have a working MediaWiki installation to run the tests. You need these two steps to run the tests: * Load `vendor/autoload.php` of this library in your MediaWiki's `LocalSettings.php` file * Execute `maintenance/phpunit.php -c /path/to/this/lib/phpunit.xml.dist` For an example see the TravisCI setup (`.travis.yml` and `.travis.install.sh`)
33.087719
154
0.767232
eng_Latn
0.869674
da6d4d42b6a478d3d66e5c56cb01eb3dea98807a
693
md
Markdown
README.md
zeebe-io/zeebe-changelog
e41cfca65427cd139dc04e47d9c3316d4398d64b
[ "Apache-2.0" ]
null
null
null
README.md
zeebe-io/zeebe-changelog
e41cfca65427cd139dc04e47d9c3316d4398d64b
[ "Apache-2.0" ]
5
2019-11-11T12:13:40.000Z
2021-12-07T20:24:10.000Z
README.md
zeebe-io/zeebe-changelog
e41cfca65427cd139dc04e47d9c3316d4398d64b
[ "Apache-2.0" ]
null
null
null
# Zeebe Changelog [![Build Status](https://travis-ci.com/zeebe-io/zeebe-changelog.svg?branch=master)](https://travis-ci.com/zeebe-io/zeebe-changelog) [![Go Report Card](https://goreportcard.com/badge/github.com/zeebe-io/zeebe-changelog?style=flat-square)](https://goreportcard.com/report/github.com/zeebe-io/zeebe-changelog) [![Release](https://img.shields.io/github/release/zeebe-io/zeebe-changelog.svg?style=flat-square)](https://github.com/zeebe-io/zeebe-changelog/releases/latest) [![codecov](https://codecov.io/gh/zeebe-io/zeebe-changelog/branch/master/graph/badge.svg)](https://codecov.io/gh/zeebe-io/zeebe-changelog) Generate changelog for [Zeebe](github.com/zeebe-io/zeebe) project.
77
174
0.773449
yue_Hant
0.392598
da6de394dcc5192af0ec51fb231156c52655973b
2,530
markdown
Markdown
content/interviews/liam-proven.markdown
ddfreyne/fosdem-website
431fb6da2e6eb8383d547d2ae9998ab93b3457a3
[ "CC-BY-2.0" ]
null
null
null
content/interviews/liam-proven.markdown
ddfreyne/fosdem-website
431fb6da2e6eb8383d547d2ae9998ab93b3457a3
[ "CC-BY-2.0" ]
null
null
null
content/interviews/liam-proven.markdown
ddfreyne/fosdem-website
431fb6da2e6eb8383d547d2ae9998ab93b3457a3
[ "CC-BY-2.0" ]
null
null
null
--- year: 2020 speaker: liam_proven event: generation_gaps --- Q: Could you briefly introduce yourself? I've been in IT for just over 30 years, moving from tech support to consultancy to technical journalism. These days, I work as a technical writer for SUSE in Prague, where I live with partner and daughter. Q: What will your talk be about, exactly? Why this topic? I've been watching the computer industry develop since fairly early in the 8-bit era, long enough ago that the first two computers I ever used supported neither sound nor graphics. I've watched about 3 big technological shifts, then a long gap. I think another one is about to happen, and it will be the biggest in about 40 years. Q: What's this new shift and what's so important about it? This is a shift from multi-level storage (RAM and disks) to single-level storage (NVDIMMs). This is starting to come onto the market now, and it enables an entirely different model of OS design which renders _all_ existing operating systems, FOSS and proprietary, obsolete. If you don't have secondary storage, if your primary storage is nonvolatile --- it's all just RAM. You don't need to boot, or to shutdown. You don't need files. You don't need file types, binaries, text etc. You don't need a filesystem. No filesystem, no files means no more Unix. Remember "everything is a file"? No files, no \*nix. But nobody has noticed yet. Q: What do you hope to accomplish by giving this talk? What do you expect? There aren't many people left in the industry today who remember what such shifts are like, but I do. I hope to prepare the way a tiny bit, because it's the last big opportunity we're going to get. Q: Your talk has a quite broad topic, about the whole computer industry and our model of computing. What do you consider the biggest changes in computing over the last 20 years? That is precisely the problem. There haven't been any truly disruptive changes in that time. The last big ones were over 25 years ago, and as a community, we've forgotten what it's like. Q: 2020 marks the 20th anniversary of (F)OSDEM. What contributions has FOSDEM made to the advancement of FOSS, or how did you in particular benefit from FOSDEM? This will be my third FOSDEM, and personally it's been valuable to me not only in what I've learned from it, and about the impressive breadth of the FOSS community, but also the people I've met. Q: Have you enjoyed previous FOSDEM editions? Hugely. It's consistently one of the best IT conferences I've ever been to.
43.62069
181
0.773123
eng_Latn
0.99977
da6e3c39ba10788015865622cbe84d8f53978caa
5,452
md
Markdown
docs/ide/build-actions.md
MicrosoftDocs/visualstudio-docs.pl-pl
64a8f785c904c0e158165f3e11d5b0c23a5e34c5
[ "CC-BY-4.0", "MIT" ]
2
2020-05-20T07:52:54.000Z
2021-02-06T18:51:42.000Z
docs/ide/build-actions.md
MicrosoftDocs/visualstudio-docs.pl-pl
64a8f785c904c0e158165f3e11d5b0c23a5e34c5
[ "CC-BY-4.0", "MIT" ]
8
2018-08-02T15:03:13.000Z
2020-09-27T20:22:01.000Z
docs/ide/build-actions.md
MicrosoftDocs/visualstudio-docs.pl-pl
64a8f785c904c0e158165f3e11d5b0c23a5e34c5
[ "CC-BY-4.0", "MIT" ]
16
2018-01-29T09:30:06.000Z
2021-10-09T11:23:54.000Z
--- title: Akcje kompilacji dla plików description: Dowiedz się, jak wszystkie pliki w Visual Studio mają akcję kompilacji, a akcja kompilacji kontroluje, co się dzieje z plikiem podczas kompilowania projektu. ms.custom: SEO-VS-2020 ms.date: 11/19/2018 ms.technology: vs-ide-compile ms.topic: reference author: ghogen ms.author: ghogen manager: jmartens ms.workload: - multiple ms.openlocfilehash: 9bb9678d421e9e12c3595806af1afcfe1f1fd82ad760aa3aaa3934149f59ff51 ms.sourcegitcommit: c72b2f603e1eb3a4157f00926df2e263831ea472 ms.translationtype: MT ms.contentlocale: pl-PL ms.lasthandoff: 08/12/2021 ms.locfileid: "121234060" --- # <a name="build-actions"></a>Akcje kompilacji Wszystkie pliki w Visual Studio mają akcję kompilacji. Akcja kompilacji kontroluje, co się dzieje z plikiem podczas kompilowania projektu. > [!NOTE] > Ten temat dotyczy Visual Studio na Windows. Aby uzyskać Visual Studio dla komputerów Mac, zobacz [Akcje kompilacji w Visual Studio dla komputerów Mac](/visualstudio/mac/build-actions). ## <a name="set-a-build-action"></a>Ustawianie akcji kompilacji Aby ustawić akcję kompilacji dla pliku, otwórz właściwości pliku w oknie Właściwości, wybierając plik w oknie **Eksplorator rozwiązań** naciśnij **klawisz** + **Alt Enter**. Możesz też kliknąć prawym przyciskiem myszy plik w oknie **Eksplorator rozwiązań** i wybrać pozycję **Właściwości.** W **oknie** Właściwości w **sekcji** Zaawansowane użyj listy rozwijanej obok opcji Akcja kompilacji, aby ustawić akcję kompilacji dla pliku. ![Akcje kompilacji dla pliku w Visual Studio](media/build-actions.png) ## <a name="build-action-values"></a>Wartości akcji kompilacji Niektóre z bardziej typowych akcji kompilacji dla języka C# Visual Basic plików projektu to: |Akcja kompilacji | Project typów | Opis | |-|-| | **Dodatkowepliki** | C#, Visual Basic | Plik tekstowy nie źródłowy, który jest przekazywany do języka C# lub Visual Basic jako dane wejściowe. Ta akcja kompilacji służy głównie [](../code-quality/roslyn-analyzers-overview.md) do zapewnienia danych wejściowych analizatorom, do których odwołuje się projekt, aby zweryfikować jakość kodu. Aby uzyskać więcej informacji, zobacz [Korzystanie z dodatkowych plików.](https://github.com/dotnet/roslyn/blob/master/docs/analyzers/Using%20Additional%20Files.md)| | **ApplicationDefinition** | WPF | Plik, który definiuje aplikację. Podczas pierwszego tworzenia projektu jest to *App.xaml.* | | **CodeAnalysisDictionary** | .NET | Słownik wyrazów niestandardowych używany przez Code Analysis sprawdzania pisowni. Zobacz [Jak dostosować Code Analysis słownika](../code-quality/how-to-customize-the-code-analysis-dictionary.md)| | **Skompilować** | dowolny | Plik jest przekazywany do kompilatora jako plik źródłowy.| | **Zawartość** | .NET | Plik oznaczony jako **Zawartość można** pobrać jako strumień, wywołując wywołanie <xref:System.Windows.Application.GetContentStream%2A?displayProperty=nameWithType> . W ASP.NET te pliki są uwzględniane podczas wdrażania lokacji.| | **DesignData** | WPF | Używany w przypadku plików ViewModel języka XAML, aby umożliwić wyświetlanie kontrolek użytkownika w czasie projektowania z fikcyjnych typów i przykładowych danych. | | **DesignDataWithDesignTimeCreateable** | WPF | Podobnie **jak w przypadku danych DesignData**, ale z rzeczywistymi typami. | | **Zasób osadzony** | .NET | Plik jest przekazywany do kompilatora jako zasób, który ma zostać osadzony w zestawie. Możesz wywołać wywołanie <xref:System.Reflection.Assembly.GetManifestResourceStream%2A?displayProperty=fullName> , aby odczytać plik z zestawu.| | **EntityDeploy** | .NET | Dla Entity Framework .edmx (EF) określających wdrażanie artefaktów EF. | | **Fakes** | .NET | Używany na Microsoft Fakes testowania. Zobacz [Izolowanie testowego kodu przy użyciu Microsoft Fakes](../test/isolating-code-under-test-with-microsoft-fakes.md) | | **Brak** | dowolny | Plik w żaden sposób nie jest częścią kompilacji. Ta wartość może być używana na przykład w przypadku plików dokumentacji, takich jak pliki "ReadMe".| | **Strona** | WPF | Skompiluj plik XAML do binarnego pliku BAML, aby przyspieszyć ładowanie w czasie działania. | | **Zasób** | WPF | Określa, aby osadzić plik w pliku zasobów manifestu zestawu z *rozszerzeniem .g.resources.* | | **W tle** | .NET | Używany w przypadku pliku .accessor, który zawiera listę wbudowanych nazw plików zestawu, po jednym w wierszu. Dla każdego zestawu na liście wygeneruj klasy publiczne z nazwami, które są podobne do oryginalnych, ale z metodami publicznymi `ClassName_Accessor` zamiast metodami prywatnymi. Służy do testowania jednostkowego. | | **Ekran powitalny** | WPF | Określa plik obrazu, który ma być wyświetlany w czasie uruchamiania aplikacji. | | **XamlAppDef** | Windows Workflow Foundation | Instruuje kompilację, aby skompilowała plik XAML przepływu pracy w zestawie z osadzonym przepływem pracy. | > [!NOTE] > Dodatkowe akcje kompilacji mogą być definiowane przez program dla określonych typów projektów, więc lista akcji kompilacji zależy od typu projektu, a wartości mogą być wyświetlane poza tą listą. ## <a name="see-also"></a>Zobacz też - [Opcje kompilatora C#](/dotnet/csharp/language-reference/compiler-options/listed-alphabetically) - [Visual Basic opcje kompilatora](/dotnet/visual-basic/reference/command-line-compiler/compiler-options-listed-alphabetically) - [Akcje kompilacji (Visual Studio dla komputerów Mac)](/visualstudio/mac/build-actions)
85.1875
504
0.786867
pol_Latn
0.999653
da6e9c2db019386cc07abdadb1270129ac42929b
142
md
Markdown
_posts/0000-01-02-horaleon1.md
horaleon1/github-slideshow
9ba9ac198164f19b208e3e48c3e639e48f8b3aca
[ "MIT" ]
null
null
null
_posts/0000-01-02-horaleon1.md
horaleon1/github-slideshow
9ba9ac198164f19b208e3e48c3e639e48f8b3aca
[ "MIT" ]
3
2019-04-01T01:40:34.000Z
2019-04-01T02:01:41.000Z
_posts/0000-01-02-horaleon1.md
horaleon1/github-slideshow
9ba9ac198164f19b208e3e48c3e639e48f8b3aca
[ "MIT" ]
null
null
null
--- layout: slide title: "Welcome to our second slide!" --- Your text " hello again i am happy i am learning " Use the left arrow to go back!
20.285714
50
0.697183
eng_Latn
0.993539
da6ed6fd066b844da1a2c2ef03e4f8177184d5bd
101
md
Markdown
src/dynamic_index/multithread/libcuckoo/README.md
bombehub/IndexZoo
75af96797a8019c3b41186eebdc6d497c41dbb79
[ "Apache-2.0" ]
22
2018-06-08T05:32:55.000Z
2021-09-24T10:54:43.000Z
src/dynamic_index/multithread/libcuckoo/README.md
bombehub/IndexZoo
75af96797a8019c3b41186eebdc6d497c41dbb79
[ "Apache-2.0" ]
null
null
null
src/dynamic_index/multithread/libcuckoo/README.md
bombehub/IndexZoo
75af96797a8019c3b41186eebdc6d497c41dbb79
[ "Apache-2.0" ]
3
2018-09-11T13:00:06.000Z
2020-04-01T04:38:44.000Z
URL: https://github.com/efficient/libcuckoo.git Commit ID: 602beb50c13b6062dd7a430958288c6d562e89af
25.25
51
0.851485
yue_Hant
0.776125
da6f31c2be731c1b056a54e01a3bfa18f3a7bb16
730
md
Markdown
docs/pages/kdoc/detekt-api/io.gitlab.arturbosch.detekt.api/-entity/-companion/from.md
petertrr/detekt
3d805148d90b0a62ba7e539299ccde43e8b2c1e8
[ "Apache-2.0" ]
1
2021-04-09T12:39:17.000Z
2021-04-09T12:39:17.000Z
docs/pages/kdoc/detekt-api/io.gitlab.arturbosch.detekt.api/-entity/-companion/from.md
petertrr/detekt
3d805148d90b0a62ba7e539299ccde43e8b2c1e8
[ "Apache-2.0" ]
null
null
null
docs/pages/kdoc/detekt-api/io.gitlab.arturbosch.detekt.api/-entity/-companion/from.md
petertrr/detekt
3d805148d90b0a62ba7e539299ccde43e8b2c1e8
[ "Apache-2.0" ]
null
null
null
--- title: from - --- //[detekt-api](../../../index.md)/[io.gitlab.arturbosch.detekt.api](../../index.md)/[Entity](../index.md)/[Companion](index.md)/[from](from.md) # from [jvm] Brief description Factory function which retrieves all needed information from the PsiElement itself. Content fun [from](from.md)(element: PsiElement, offset: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Entity](../index.md) [jvm] Brief description Use this factory method if the location can be calculated much more precisely than using the given PsiElement. Content fun [from](from.md)(element: PsiElement, location: [Location](../../-location/index.md)): [Entity](../index.md)
22.8125
149
0.682192
eng_Latn
0.438439
da70b46fb35f93ff5a63014b8f301b3303da6a4a
25,615
md
Markdown
training-amp-camp-3-berkeley-2013/ampcamp/mesos.md
onehao/park-2.2.0-bin-hadoop2.7
84f43cd34eae14a434bb2a5f3928b60200f5c7f6
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
null
null
null
training-amp-camp-3-berkeley-2013/ampcamp/mesos.md
onehao/park-2.2.0-bin-hadoop2.7
84f43cd34eae14a434bb2a5f3928b60200f5c7f6
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
4
2018-01-23T03:47:48.000Z
2018-01-23T09:46:14.000Z
training-amp-camp-3-berkeley-2013/ampcamp/mesos.md
onehao/park-2.2.0-bin-hadoop2.7
84f43cd34eae14a434bb2a5f3928b60200f5c7f6
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
1
2020-10-25T06:13:15.000Z
2020-10-25T06:13:15.000Z
--- layout: global title: Mesos - Cluster & Framework Mgmt categories: [module] navigation: weight: 100 show: true skip-chapter-toc: true --- Apache Mesos is a cluster manager that makes building and running distributed systems, or _frameworks_, easy and efficient. Using Mesos you can simultaneously run Apache Hadoop, Apache Spark, Apache Storm,k and many other applications on a dynamically shared pool of resources (machines). Mesos itself is a distributed system made up of _masters_ and _slaves_. You should have been given `master_node_hostname` at the beginning of this training, or you might have [launched your own cluster](launching-a-bdas-cluster-on-ec2.html) and made a note of it then. Let's start by logging into `master_node_hostname`: <pre class="prettyprint lang-bsh"> $ ssh -i /path/to/ampcamp3-all.pem root@master_node_hostname</pre> ### Command Line Flags ### The master and slaves can be configured using command line flags. There is not a configuration file for Mesos, but any command line flag can be passed via an environment variable prefixed with `MESOS_`. 1. Use `--help` to see the available flags: <pre class="prettyprint lang-bsh"> $ mesos-master --help</pre> <div class="solution" markdown="1"> <pre> Usage: mesos-master [...] Supported options: --allocation_interval=VALUE Amount of time to wait between performing (batch) allocations (e.g., 500ms, 1sec, etc) (default: 1secs) --cluster=VALUE Human readable name for the cluster, displayed in the webui --framework_sorter=VALUE Policy to use for allocating resources between a given user's frameworks. Options are the same as for user_allocator (default: drf) --[no-]help Prints this help message (default: false) --ip=VALUE IP address to listen on --log_dir=VALUE Location to put log files (no default, nothing is written to disk unless specified; does not affect logging to stderr) --logbufsecs=VALUE How many seconds to buffer log messages for (default: 0) --port=VALUE Port to listen on (default: 5050) --[no-]quiet Disable logging to stderr (default: false) --roles=VALUE A comma seperated list of the allocation roles that frameworks in this cluster may belong to. --[no-]root_submissions Can root submit frameworks? (default: true) --slaves=VALUE Initial slaves that should be considered part of this cluster (or if using ZooKeeper a URL) (default: *) --user_sorter=VALUE Policy to use for allocating resources between users. May be one of: dominant_resource_fairness (drf) (default: drf) --webui_dir=VALUE Location of the webui files/assets (default: /usr/local/share/mesos/webui) --weights=VALUE A comma seperated list of role/weight pairs of the form 'role=weight,role=weight'. Weights are used to indicate forms of priority. --whitelist=VALUE Path to a file with a list of slaves (one per line) to advertise offers for; should be of the form: file://path/to/file (default: *) --zk=VALUE ZooKeeper URL (used for leader election amongst masters) May be one of: zk://host1:port1,host2:port2,.../path zk://username:password@host1:port1,host2:port2,.../path file://path/to/file (where file contains one of the above) (default: )</pre> </div> <pre class="prettyprint lang-bsh"> $ mesos-slave --help</pre> <div class="solution" markdown="1"> <pre> Usage: mesos-slave [...] Supported options: --attributes=VALUE Attributes of machine --[no-]checkpoint Whether to checkpoint slave and frameworks information to disk. This enables a restarted slave to recover status updates and reconnect with (--recover=reconnect) or kill (--recover=kill) old executors (default: false) --default_role=VALUE Any resources in the --resources flag that omit a role, as well as any resources that are not present in --resources but that are automatically detected, will be assigned to this role. (default: *) --disk_watch_interval=VALUE Periodic time interval (e.g., 10secs, 2mins, etc) to check the disk usage (default: 1mins) --executor_registration_timeout=VALUE Amount of time to wait for an executor to register with the slave before considering it hung and shutting it down (e.g., 60secs, 3mins, etc) (default: 1mins) --executor_shutdown_grace_period=VALUE Amount of time to wait for an executor to shut down (e.g., 60secs, 3mins, etc) (default: 5secs) --frameworks_home=VALUE Directory prepended to relative executor URIs (default: ) --gc_delay=VALUE Maximum amount of time to wait before cleaning up executor directories (e.g., 3days, 2weeks, etc). Note that this delay may be shorter depending on the available disk usage. (default: 1weeks) --hadoop_home=VALUE Where to find Hadoop installed (for fetching framework executors from HDFS) (no default, look for HADOOP_HOME in environment or find hadoop on PATH) (default: ) --[no-]help Prints this help message (default: false) --ip=VALUE IP address to listen on --isolation=VALUE Isolation mechanism, may be one of: process, cgroups (default: process) --launcher_dir=VALUE Location of Mesos binaries (default: /usr/local/libexec/mesos) --log_dir=VALUE Location to put log files (no default, nothing is written to disk unless specified; does not affect logging to stderr) --logbufsecs=VALUE How many seconds to buffer log messages for (default: 0) --master=VALUE May be one of: zk://host1:port1,host2:port2,.../path zk://username:password@host1:port1,host2:port2,.../path file://path/to/file (where file contains one of the above) --port=VALUE Port to listen on (default: 5051) --[no-]quiet Disable logging to stderr (default: false) --recover=VALUE Whether to recover status updates and reconnect with old executors. Valid values for 'recover' are reconnect: Reconnect with any old live executors. cleanup : Kill any old live executors and exit. Use this option when doing an incompatible slave or executor upgrade!). NOTE: If checkpointed slave doesn't exist, no recovery is performed and the slave registers with the master as a new slave. (default: reconnect) --resource_monitoring_interval=VALUE Periodic time interval for monitoring executor resource usage (e.g., 10secs, 1min, etc) (default: 5secs) --resources=VALUE Total consumable resources per slave, in the form 'name(role):value;name(role):value...'. --[no-]strict If strict=true, any and all recovery errors are considered fatal. If strict=false, any expected errors (e.g., slave cannot recover information about an executor, because the slave died right before the executor registered.) during recovery are ignored and as much state as possible is recovered. (default: false) --[no-]switch_user Whether to run tasks as the user who submitted them rather than the user running the slave (requires setuid permission) (default: true) --work_dir=VALUE Where to place framework work directories (default: /tmp/mesos)</pre> </div> ------------------------------------------------------------------------ ### Web Interface ### A web interface is available on the master. The default master port is `5050` (which can be changed via the `--port` option). _Note that the port used for the web interface **is the same** port used by the slaves to connect to the master!_ 1. Open your favorite browser and go to `http://<master_node_hostname>:5050`: <div class="solution" markdown="1"> ![Mesos Web UI](img/mesos-webui640.png) </div> 2. Without any frameworks running, the only thing interesting is the connected slaves. Click `Slaves` in the top navigation bar: <div class="solution" markdown="1"> ![Mesos Web UI All Slaves](img/mesos-webui-all-slaves640.png) </div> **NOTE:** _The web interface updates automagically so don't bother refreshing it or closing the window as we'll use it throughout this training._ ------------------------------------------------------------------------ ### High Availability ### Multiple masters can be run simultaneously in order to provide high availability (i.e., if one master fails, another will take over). The current implementation relies on Apache ZooKeeper to perform leader election between the masters. Slaves use ZooKeeper to find the leading master as well. To start a master that uses ZooKeeper use the `--zk` option: <pre> --zk=VALUE ZooKeeper URL (used for leader election amongst masters) May be one of: zk://host1:port1,host2:port2,.../path zk://username:password@host1:port1,host2:port2,.../path file://path/to/file (where file contains one of the above) (default: )</pre> To start a slave that uses ZooKeeper to determine the leading master use the `--master` option: <pre> --master=VALUE May be one of: zk://host1:port1,host2:port2,.../path zk://username:password@host1:port1,host2:port2,.../path file://path/to/file (where file contains one of the above)</pre> **NOTE:** _Use_ `file://` _when you want to use authentication (i.e.,_ `username:password`_) but don't want to reveal any secrets on the command line (or in the environment)!_ We've already launched a ZooKeeper cluster for you and started the slaves with ZooKeeper. But let's simulate a master failover! 1. Kill the running master: <pre class="prettyprint lang-bsh"> $ killall mesos-master</pre> If you didn't close your browser window, switch to it now: <div class="solution" markdown="1"> ![Mesos Web UI Not Connected](img/mesos-webui-not-connected640.png) </div> 2. Restart the master with the `--zk` option: <pre class="prettyprint lang-bsh"> $ nohup mesos-master --zk=zk://master_node_hostname:2181/mesos </dev/null >/dev/null 2>&1 &</pre> After the web interfaces refreshes you should see all of the slaves re-registered. **NOTE:** _You can leverage the high availability of Mesos to perform backwards compatible upgrades without any downtime!_ ------------------------------------------------------------------------ ### Logs ### By default, _a Mesos master and slave log to standard error_. You can additionally log to the filesystem by setting the `--log_dir` option: <pre> --log_dir=VALUE Location to put log files (no default, nothing is written to disk unless specified;</pre> 1. Browse back to the "home" page (hit back or click `Mesos` in the upper left corner) the to your browser and click on the `LOG` link in the left hand column: <div class="solution" markdown="1"> ![Mesos Web UI No Log](img/mesos-webui-no-log640.png) </div> Ah ha! Close the popup window and let's restart the master using the `--log_dir` option: <pre class="prettyprint lang-bsh"> $ killall mesos-master $ nohup mesos-master --zk=zk://master_node_hostname:2181/mesos --log_dir=/mnt/mesos-logs </dev/null >/dev/null 2>&1 &</pre> Now click on the `LOG` link again: <div class="solution" markdown="1"> ![Mesos Web UI Log](img/mesos-webui-log640.png) </div> **NOTE:** _The web interface is simply paging/tailing the logs from_ `/mnt/mesos-logs/mesos-master.INFO`_, which you can do as well using_ `tail` _and/or_ `less`_._ ------------------------------------------------------------------------ ### REST Interface ### The Mesos masters and slaves provide a handful of REST endpoints that can be useful for users and operators. A collection of "help" pages are available for some of them (our version of `man` for REST). 1. Go to `http://<master_node_hostname>:5050/help` in your browser to see all of the available endpoints: <div class="solution" markdown="1"> ![Mesos Web UI Help](img/mesos-webui-help640.png) </div> 2. You can get more details about an endpoint or nested endpoints by clicking on one; click on `/logging`: <div class="solution" markdown="1"> ![Mesos Web UI Help Logging](img/mesos-webui-help-logging640.png) </div> 3. Now click on `/logging/toggle` to see the help page: <div class="solution" markdown="1"> ![Mesos Web UI Help Logging Toggle](img/mesos-webui-help-logging-toggle640.png) </div> 4. Let's toggle the verbosity level of the master: <pre class="prettyprint lang-bsh"> $ curl 'http://master_node_hostname:5050/logging/toggle?level=3&duration=1mins'</pre> If you switch to (or reopen) the `LOG` popup window you should see a lot more output now (but only for another minute!). 5. The web interface uses the REST endpoints exclusively; for example, to get the current "state" of a Mesos cluster (in JSON): <pre class="prettyprint lang-bsh"> $ curl `http://master_node_hostname:5050/master/state.json` | python -mjson.tool</pre> <div class="solution" markdown="1"> <pre class="prettyprint lang-js"> { "activated_slaves": 5, "build_date": "2013-08-26 06:41:22", "build_time": 1377499282, "build_user": "root", "completed_frameworks": [], "deactivated_slaves": 0, "failed_tasks": 0, "finished_tasks": 0, "frameworks": [], "id": "201308280103-3340478474-5050-8366", "killed_tasks": 0, "leader": "[email protected]:5050", "log_dir": "/mnt/mesos-logs", "lost_tasks": 0, "pid": "[email protected]:5050", "slaves": [ { "attributes": {}, "hostname": "ec2-54-226-160-180.compute-1.amazonaws.com", "id": "201308270519-3340478474-5050-5886-2", "pid": "slave(1)@10.235.1.38:5051", "registered_time": 1377651804.00701, "reregistered_time": 1377651804.00703, "resources": { "cpus": 4, "disk": 418176, "mem": 13960, "ports": "[31000-32000]" } }, { "attributes": {}, "hostname": "ec2-107-21-68-44.compute-1.amazonaws.com", "id": "201308270519-3340478474-5050-5886-0", "pid": "slave(1)@10.182.129.12:5051", "registered_time": 1377651804.00682, "reregistered_time": 1377651804.00682, "resources": { "cpus": 4, "disk": 418176, "mem": 13960, "ports": "[31000-32000]" } }, { "attributes": {}, "hostname": "ec2-54-227-64-244.compute-1.amazonaws.com", "id": "201308270519-3340478474-5050-5886-4", "pid": "slave(1)@10.235.48.134:5051", "registered_time": 1377651804.0065899, "reregistered_time": 1377651804.0065999, "resources": { "cpus": 4, "disk": 418176, "mem": 13960, "ports": "[31000-32000]" } }, { "attributes": {}, "hostname": "ec2-54-211-57-184.compute-1.amazonaws.com", "id": "201308270519-3340478474-5050-5886-1", "pid": "slave(1)@10.181.139.99:5051", "registered_time": 1377651804.00635, "reregistered_time": 1377651804.0063601, "resources": { "cpus": 4, "disk": 418176, "mem": 13960, "ports": "[31000-32000]" } }, { "attributes": {}, "hostname": "ec2-54-221-25-64.compute-1.amazonaws.com", "id": "201308270519-3340478474-5050-5886-3", "pid": "slave(1)@10.181.142.211:5051", "registered_time": 1377651804.0058999, "reregistered_time": 1377651804.0059199, "resources": { "cpus": 4, "disk": 418176, "mem": 13960, "ports": "[31000-32000]" } } ], "staged_tasks": 0, "start_time": 1377651801.08849, "started_tasks": 0, "version": "0.15.0" } </pre> </div> ------------------------------------------------------------------------ ### Frameworks ### Mesos isn't very useful unless you run some frameworks! We'll now walk through launching Hadoop and Spark on Mesos. For now, it's expected that you run framework schedulers independently of Mesos itself. You can often reuse your master machine(s) for this purpose (which is what we'll do here). #### Hadoop #### We downloaded a Hadoop distribution including support for Mesos already. See [`http://github.com/mesos/hadoop`](http://github.com/mesos/hadoop) for more details on how to create/download a Hadoop distribution including Mesos. You **DO NOT** need to install Hadoop on every machine in your cluster in order to run Hadoop on Mesos! Instead, you can upload your Hadoop distribution to `HDFS` and configure the `JobTracker` appropriately. We've already uploaded our distribution to `HDFS` as well as configured the `JobTracker`. Take a look at `/root/ephemeral-hdfs/conf/mapred-site.xml` for more details. 1. Launch Hadoop (i.e., the `JobTracker`): <pre class="prettyprint lang-bsh"> $ hadoop jobtracker >/mnt/jobtracker.out 2>&1 &</pre> The web interface should show Hadoop under `Active Frameworks`: <div class="solution" markdown="1"> ![Mesos Web UI Active Hadoop](img/mesos-webui-active-hadoop640.png) </div> Clicking on the link in the `ID` column for Hadoop takes you to a page with task information (albeit, there are not currently any tasks): <div class="solution" markdown="1"> ![Mesos Web UI Hadoop No Tasks](img/mesos-webui-hadoop-no-tasks640.png) </div> 3. Launch a Hadoop job (calculating pi): <pre class="prettyprint lang-bsh"> $ hadoop jar /root/ephemeral-hdfs/hadoop-examples-1.0.4.jar pi 4 1000</pre> You should now see some tasks in the web interface: <div class="solution" markdown="1"> ![Mesos Web UI Hadoop Tasks](img/mesos-webui-hadoop-tasks640.png) </div> Click on `Sandbox` on the far right column of one of the tasks: <div class="solution" markdown="1"> ![Mesos Web UI Hadoop Sandbox](img/mesos-webui-hadoop-sandbox640.png) </div> Click on `stderr` to see the standard error of the `TaskTracker`: <div class="solution" markdown="1"> ![Mesos Web UI Hadoop stdout](img/mesos-webui-hadoop-stdout640.png) </div> #### Spark #### Like Hadoop, you need to upload a Spark "distribution" to `HDFS`. We've already done this for you, but we'll walk through the steps here for completeness: <pre class="prettyprint lang-bsh"> $ cd spark $ ./make_distribution.sh $ mv dist spark-x.y.z $ tar czf spark-x.y.z.tar.gz spark-x.y.z $ hadoop fs -put spark-x.y.z.tar.gz /path/to/spark-x.y.z.tar.gz</pre> You'll need to set the configuration property `spark.executor.uri` or the environment variable `SPARK_EXECUTOR_URI` to `/path/to/spark-x.y.z.tar.gz` in `HDFS`. We've set the environment variable for you in `/root/spark/conf/spark-env.sh`. 1. Start the Spark shell: <pre class="prettyprint lang-bsh"> $ MASTER=mesos://master_node_hostname:5050 ./spark-shell</pre> The web interface should show both Hadoop and Spark under `Active Frameworks`: <div class="solution" markdown="1"> ![Mesos Web UI Active Hadoop and Spark](img/mesos-webui-active-hadoop-and-spark640.png) </div> 2. Let's simulate an error that might occur if we forgot to upload the Spark distribution (or forgot to set `SPARK_EXECUTOR_URI`). We'll do this by renaming the Spark distribution in `HDFS`: <pre class="prettyprint lang-bsh"> $ hadoop fs -mv /spark.tar.gz /_spark.tar.gz</pre> 3. Run a simple Spark query: <div class="codetabs"> <div data-lang="scala" markdown="1"> scala> sc res: spark.SparkContext = spark.SparkContext@470d1f30 scala> val pagecounts = sc.textFile("/wiki/pagecounts") 12/08/17 23:35:14 INFO mapred.FileInputFormat: Total input paths to process : 74 pagecounts: spark.RDD[String] = MappedRDD[1] at textFile at <console>:12 scala> pagecounts.count </div> <div data-lang="python" markdown="1"> >>> sc <pyspark.context.SparkContext object at 0x7f7570783350> >>> pagecounts = sc.textFile("/wiki/pagecounts") 13/02/01 05:30:43 INFO mapred.FileInputFormat: Total input paths to process : 74 >>> pagecounts <pyspark.rdd.RDD object at 0x217d510> >>> pagecounts.count() </div> </div> You should start seeing tasks failing (`State` is `LOST`): <div class="solution" markdown="1"> ![Mesos Web UI Spark Tasks Lost](img/mesos-webui-spark-tasks-lost640.png) </div> Click on the `Sandbox` of any lost task and open up `stdout`: <div class="solution" markdown="1"> ![Mesos Web UI Spark Lost Task Stdout](img/mesos-webui-spark-lost-task-stdout640.png) </div> Okay, looks like we ran `hadoop` to fetch `spark.tar.gz`. Now click on `stderr`: <div class="solution" markdown="1"> ![Mesos Web UI Spark Lost Task Stderr](img/mesos-webui-spark-lost-task-stderr640.png) </div> Ah ha! The slave failed to fetch the executor. Okay, exit the Spark shell and let's revert our rename of the Spark distribution: <pre class="prettyprint lang-bsh"> $ hadoop fs -mv /_spark.tar.gz /spark.tar.gz</pre> Now relaunch the Spark shell and reissue the query: <div class="solution" markdown="1"> res: Long = 329641466 </div> ------------------------------------------------------------------------ All done! Hopefully this training gave you some basic knowledge of using Mesos and some places to look for help. Please see the [github.com/apache/mesos/docs](http://github.com/apache/mesos/docs) for more documentation. And don't hesitate to email [email protected] with questions!
43.786325
130
0.565801
eng_Latn
0.895326
da71a27fe332646c12a8dc1da97eec1ad9633af7
6,967
md
Markdown
libs/builders/CHANGELOG.md
tbrannam/platform
aa1f8abf2fad60fe5b6414d42ffa9b3418ee437d
[ "MIT" ]
null
null
null
libs/builders/CHANGELOG.md
tbrannam/platform
aa1f8abf2fad60fe5b6414d42ffa9b3418ee437d
[ "MIT" ]
null
null
null
libs/builders/CHANGELOG.md
tbrannam/platform
aa1f8abf2fad60fe5b6414d42ffa9b3418ee437d
[ "MIT" ]
null
null
null
## [3.2.4](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-08-10) ### Bug Fixes * **builders:** :arrow_up: update @ng-easy/image-config to 1.1.0 [skip ci] ([28be812](https://github.com/ng-easy/platform/commit/28be812f9a3f2d93362fc03c8937254354ba9a05)) * **builders:** :arrow_up: update @ng-easy/image-optimizer to 1.3.2 [skip ci] ([9528f9a](https://github.com/ng-easy/platform/commit/9528f9a80757dae683c7a4c6684f8d0cb50d139e)) ## [3.2.3](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-08-10) ### Bug Fixes * **builders:** :bug: calculation of dependent projects using project graph ([#147](https://github.com/ng-easy/platform/issues/147)) ([d0c9b03](https://github.com/ng-easy/platform/commit/d0c9b035f7f913f6c89b95aa776f8f03ca18f320)) ### Documentation * **builders:** :memo: update readme with explanation of dependencies ([#148](https://github.com/ng-easy/platform/issues/148)) ([c3ddba5](https://github.com/ng-easy/platform/commit/c3ddba5a34bd8c2911de613023d0557db35ff652)) ## [3.2.2](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-08-10) ### Bug Fixes * :arrow_up: update client tooling ([1ba37ee](https://github.com/ng-easy/platform/commit/1ba37eeb8187966d1c257fd21f401127f9fb94e9)) * :arrow_up: update client tooling ([4e22aef](https://github.com/ng-easy/platform/commit/4e22aeffdbba6851754ff80707090ac07f52db0e)) * :arrow_up: update dependency eslint-plugin-json to ^3.1.0 ([10797d6](https://github.com/ng-easy/platform/commit/10797d62079a2523d2088b1b87007f5326f32f2a)) ## [3.2.1](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-07-29) ### Bug Fixes * :memo: add links to Nx and Angular websites ([#124](https://github.com/ng-easy/platform/issues/124)) ([bc1d5fd](https://github.com/ng-easy/platform/commit/bc1d5fdccfa774e79c72dc05c14e8b8f699b1941)) * update readme ([84a6e4a](https://github.com/ng-easy/platform/commit/84a6e4ae07afbc64f946aa8b78022a9f34bc7eaf)) * :memo: update readme to clarify compatibility with Nx workspaces ([#123](https://github.com/ng-easy/platform/issues/123)) ([2afdd57](https://github.com/ng-easy/platform/commit/2afdd577300f4dbf2ddccd9ea82b06b095b1a083)) * **builders:** :bug: handle * scope so that it applies to all projects ([c1070b0](https://github.com/ng-easy/platform/commit/c1070b0405bef0fa0e0d82984c14d4747a1bc339)) # [3.2.0](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-07-26) ### Bug Fixes * :arrow_up: update dependency @ngrx/component-store to v12.3.0 ([03f1305](https://github.com/ng-easy/platform/commit/03f130508a4846ca59ab12e4302e598044f17395)) * :arrow_up: update dependency eslint-plugin-jsdoc to ^35.5.1 ([49b4cbf](https://github.com/ng-easy/platform/commit/49b4cbf4934a2f969d69a1f593c9c472119f8d19)) * :arrow_up: update dependency eslint-plugin-jsdoc to v36 ([#114](https://github.com/ng-easy/platform/issues/114)) ([5af79b7](https://github.com/ng-easy/platform/commit/5af79b71810690176fa4f58b649e3684e04e85a5)) ### Features * **builders:** :sparkles: generate optimized images according to config ([#102](https://github.com/ng-easy/platform/issues/102)) ([7a91686](https://github.com/ng-easy/platform/commit/7a9168662899498920ded1005a719e69114fe231)) # [3.1.0](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-07-19) ### Features * **builders:** :sparkles: add image optimizer basic builder ([#99](https://github.com/ng-easy/platform/issues/99)) ([ec8077f](https://github.com/ng-easy/platform/commit/ec8077f96f92fb9dcef427a2f7a40a56ceb821d4)) ## [3.0.3](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-07-16) ### Bug Fixes * :package: update homepage to main branch ([5b513a7](https://github.com/ng-easy/platform/commit/5b513a75f7977cf47af1db777652ebbbaf46d211)) * :arrow_up: update angular workspace ([3c10d6a](https://github.com/ng-easy/platform/commit/3c10d6a9dbeacf8163d0d7df4da57e3914a7863e)) * :arrow_up: update angular workspace to v12.1.0 ([5029c26](https://github.com/ng-easy/platform/commit/5029c26c8e448213884b681c68e571be4986d8e9)) * :arrow_up: update angular workspace to v12.1.2 ([5d8c45f](https://github.com/ng-easy/platform/commit/5d8c45ff3d0933948ef4ba55bfa03fc15eaf010d)) * :arrow_up: update client tooling ([2f80f76](https://github.com/ng-easy/platform/commit/2f80f7615495d5041b1836ae79a9145c996870b1)) * :arrow_up: update client tooling to ^4.28.2 ([73b8ee1](https://github.com/ng-easy/platform/commit/73b8ee173b950f573440f1fe54b26ad44f5d675d)) * :arrow_up: update dependency eslint to v7.30.0 ([31b66ad](https://github.com/ng-easy/platform/commit/31b66ada3de4d25122c0d90e29c4c3159f0084e6)) * :arrow_up: update dependency eslint-plugin-unused-imports to ^1.1.2 ([425111a](https://github.com/ng-easy/platform/commit/425111a2440b1f6caf4b1a70ef2d2250c319024e)) * :arrow_up: update dependency prettier to ^2.3.2 ([30237e7](https://github.com/ng-easy/platform/commit/30237e7ecadb298b1ccdeec0da40cdd38d6a2e14)) * :arrow_up: update dependency svgo to ^2.3.1 ([fef6141](https://github.com/ng-easy/platform/commit/fef614161c14f9caa2d1ced0942d4cd985c06e85)) * :arrow_up: update dependency tailwindcss to ^2.2.4 ([24026ee](https://github.com/ng-easy/platform/commit/24026ee85efbebfb36cfd29e0d585817b9654920)) * :package: fix link to homepage in packages ([#94](https://github.com/ng-easy/platform/issues/94)) ([5870e4e](https://github.com/ng-easy/platform/commit/5870e4eb2dd9827aba0cb682f350980736dd5a6f)) ## [3.0.2](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-06-21) ### Bug Fixes - :arrow_up: update angular workspace to v12.0.5 ([48d61cc](https://github.com/ng-easy/platform/commit/48d61cc3e462c139930c357e2f088f28dd05eaa4)) - :arrow_up: update dependency tailwindcss to ^2.2.0 ([c070541](https://github.com/ng-easy/platform/commit/c07054130b14184ce1bf93e538aae36f7d22c55b)) - :arrow_up: update dependency tailwindcss to ^2.2.2 ([1323753](https://github.com/ng-easy/platform/commit/1323753c32ac65cb94c52c28d886291d40251a70)) - **builders:** :memo: update readme ([a895978](https://github.com/ng-easy/platform/commit/a895978710fa143ff94bf1026ee91331f0a5bfc1)) - **builders:** :memo: update readme ([172af76](https://github.com/ng-easy/platform/commit/172af7616d6be51ea4ffe9ec665ed7e1395fa4d9)) ## [3.0.1](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-06-18) # [3.0.0](https://github.com/ng-easy/platform/compare/@ng-easy/[email protected]...@ng-easy/[email protected]) (2021-06-18) ### Features - :sparkles: release stable version ([1ddd01d](https://github.com/ng-easy/platform/commit/1ddd01dd431787fb73eefc1ab42b2ddebad8aefd)) ### BREAKING CHANGES - Release stable version
69.67
229
0.765035
yue_Hant
0.263352
da71fc70582c21aba420737c6b1d40e08f535a78
65
md
Markdown
README.md
felipesntsassis/clock-js
2004fd597920f08f832e2bb32889ff509a4011b5
[ "MIT" ]
1
2018-01-19T16:51:07.000Z
2018-01-19T16:51:07.000Z
README.md
felipesntsassis/clock-js
2004fd597920f08f832e2bb32889ff509a4011b5
[ "MIT" ]
null
null
null
README.md
felipesntsassis/clock-js
2004fd597920f08f832e2bb32889ff509a4011b5
[ "MIT" ]
null
null
null
# clock-js Sample demo project using Canvas and GeoLocation API.
21.666667
53
0.8
eng_Latn
0.939746
da7248e88de85a54603ac3315dfbd428306006d1
909
md
Markdown
_pages/heap.md
pome95/pome95.github.io
84e45c2292c5bb4526ab62d2cd400256303a3299
[ "MIT" ]
3
2021-01-24T04:16:34.000Z
2021-01-30T10:50:24.000Z
_pages/heap.md
pome95/pome95.github.io
84e45c2292c5bb4526ab62d2cd400256303a3299
[ "MIT" ]
null
null
null
_pages/heap.md
pome95/pome95.github.io
84e45c2292c5bb4526ab62d2cd400256303a3299
[ "MIT" ]
null
null
null
--- title: "힙 (Heap)" permalink: /heap/ toc_sticky: true toc_ads : true layout: single --- <img width="200" src="/assets/img/data/heap.png"> <br/> [힙 기초]({{ site.url }}{{ site.baseurl }}/computer%20engineering/heap/) - 힙 기초 <br/> [힙 구현 기초(1)]({{ site.url }}{{ site.baseurl }}/computer%20engineering/makeheap/) - 힙 구현하기 &nbsp; [![Github_page](https://img.shields.io/badge/-Github-%23181717?style=flat-square&logo=Github&logoColor=white&link=https://github.com/pome95/Data-Structure/tree/master/Heap)](https://github.com/pome95/Data-Structure/tree/master/Heap) <br/> [힙 구현 기초(2)]({{ site.url }}{{ site.baseurl }}/computer%20engineering/heappop/) - 힙 구현하기 &nbsp; [![Github_page](https://img.shields.io/badge/-Github-%23181717?style=flat-square&logo=Github&logoColor=white&link=https://github.com/pome95/Data-Structure/tree/master/Heap)](https://github.com/pome95/Data-Structure/tree/master/Heap) <br/>
56.8125
331
0.706271
yue_Hant
0.305697
da72b887cf4ff2852ea59aa4fb2fe6236ce2f081
506
markdown
Markdown
_posts/2019-06-19-aprs.markdown
hamnet-as64600/hamnet-as64600.github.io
e16178d6516083600ef7f573f580b018c58074a0
[ "MIT" ]
null
null
null
_posts/2019-06-19-aprs.markdown
hamnet-as64600/hamnet-as64600.github.io
e16178d6516083600ef7f573f580b018c58074a0
[ "MIT" ]
null
null
null
_posts/2019-06-19-aprs.markdown
hamnet-as64600/hamnet-as64600.github.io
e16178d6516083600ef7f573f580b018c58074a0
[ "MIT" ]
null
null
null
--- author: IW3AMQ comments: false date: 2019-06-19 06:28:30+00:00 layout: page link: https://drc.bz/aprs/ slug: aprs title: APRS wordpress_id: 18409 tags: - APRS - Kurse - Packet Radio --- Vortrag über APRS - die Betriebsart kann viel mehr, als man denkt! Samstag, 29. Juni um 14:00 Uhr im Clublokal Meran. Bitte hier innerhalb 23. Juni anmelden: [https://drc.bz/aprs-das-telemetriesystem-der-funkamateure/ ](https://drc.bz/aprs-das-telemetriesystem-der-funkamateure/) 73! Thomas, IW3AMQ
15.8125
160
0.721344
deu_Latn
0.518271
da7340ad93de3b6017255df428c8924982702d86
4,946
md
Markdown
powerapps-docs/maker/canvas-apps/functions/function-numericals.md
eltociear/powerapps-docs.ru-ru
448c9296691ad7d862b6c022e3ba379ab8351a9d
[ "CC-BY-4.0", "MIT" ]
null
null
null
powerapps-docs/maker/canvas-apps/functions/function-numericals.md
eltociear/powerapps-docs.ru-ru
448c9296691ad7d862b6c022e3ba379ab8351a9d
[ "CC-BY-4.0", "MIT" ]
null
null
null
powerapps-docs/maker/canvas-apps/functions/function-numericals.md
eltociear/powerapps-docs.ru-ru
448c9296691ad7d862b6c022e3ba379ab8351a9d
[ "CC-BY-4.0", "MIT" ]
null
null
null
--- title: Функции Abs, Exp, Ln, Power и Sqrt | Документация Майкрософт description: Справочные сведения, включая синтаксис и примеры, для ABS, sqrt и других функций в Power Apps author: gregli-msft manager: kvivek ms.service: powerapps ms.topic: reference ms.custom: canvas ms.reviewer: tapanm ms.date: 09/13/2016 ms.author: gregli search.audienceType: - maker search.app: - PowerApps ms.openlocfilehash: 925297a8e1a3f4c454cb8bbb09f75a87419cf5cb ms.sourcegitcommit: 6b27eae6dd8a53f224a8dc7d0aa00e334d6fed15 ms.translationtype: MT ms.contentlocale: ru-RU ms.lasthandoff: 12/03/2019 ms.locfileid: "74730484" ms.PowerAppsDecimalTransform: true --- # <a name="abs-exp-ln-power-and-sqrt-functions-in-power-apps"></a>Функции ABS, exp, LN, Power и sqrt в Power Apps Вычисление абсолютного значения, натурального логарифма и квадратного корня, возведение *e* или любого числа в указанную степень. ## <a name="description"></a>Description Функция **Abs** возвращает абсолютное значение полученного аргумента. Если передается отрицательное число, функция **Abs** возвращает противоположное ему положительное число. Функция **Exp** возвращает число *e*, возведенное в указанную степень. Трансцендентное число *e* начинается так: 2,7182818... Функция **Ln** возвращает натуральный логарифм (по основанию *e*) от полученного аргумента. Функция **Power** возвращает число, возведенное в указанную степень. Эта функция эквивалентна [оператору **^** ](operators.md). Функция **Sqrt** возвращает число, квадрат которого равен полученному аргументу. Если передать одно число, возвращается один результат, соответствующий вызванной функции. Если передать [таблицу](../working-with-tables.md) с одним столбцом, содержащим числовые значения, возвращается таблица с одним столбцом, содержащим результаты вычислений — по одному результату для каждой записи в таблице аргументов. Таблицу с несколькими столбцами можно преобразовать в таблицу с одним столбцом, как описано в статье об [использовании таблиц](../working-with-tables.md). Если для аргумента не определено значение функции, возвращается *пустое* значение. (Например, при попытке получить квадратный корень или логарифм от отрицательного числа.) ## <a name="syntax"></a>Синтаксис **Abs**( *Number* )<br>**Exp**( *Number* )<br>**Ln**( *Number* )<br>**Sqrt**( *Number* ) * *Number* — обязательный аргумент. Число, для которого нужно выполнить операцию. **Power**( *Base*; *Exponent* ) * *Base* — обязательный аргумент. Число, которое нужно возвести в степень. * *Exponent* — обязательный аргумент. Показатель степени, в которую нужно возвести число. **Abs**( *SingleColumnTable* )<br>**Exp**( *SingleColumnTable* )<br>**Ln**( *SingleColumnTable* )<br>**Sqrt**( *SingleColumnTable* ) * *SingleColumnTable* — обязательный аргумент. Таблица с одним столбцом, для значений в котором нужно выполнить операцию. ## <a name="examples"></a>Примеры ### <a name="single-number"></a>Для одного числа | Формула | Description | Возвращаемый результат | | --- | --- | --- | | **Abs( -55 )** |Возвращает число без знака "минус". |55 | | **Exp( 2 )** |Возвращает *e* в степени 2, то есть *e* \* *e*. |7,389056... | | **Ln( 100 )** |Возвращает натуральный логарифм (по основанию *e*) от числа 100. |4,605170... | | **Power( 5; 3 )** |Возвращает 5 в степени 3, то есть 5 \* 5 \* 5. |125 | | **Sqrt( 9 )** |Возвращает число, квадрат которого равен числу 9. |3 | ### <a name="single-column-table"></a>Для таблицы с одним столбцом В примерах этого раздела используется [источник данных](../working-with-data-sources.md) с именем **ValueTable**, который содержит такие данные: ![](media/function-numericals/values.png) | Формула | Description | Возвращаемый результат | | --- | --- | --- | | **Abs(&nbsp;ValueTable&nbsp;)** |Возвращает абсолютное значение для каждого числа из таблицы. |<style> img { max-width: none } </style> ![](media/function-numericals/values-abs.png) | | **Exp(&nbsp;ValueTable&nbsp;)** |Возвращает число *e*, возведенное в указанную степень для каждого числа из таблицы. |<style> img { max-width: none } </style> ![](media/function-numericals/values-exp.png) | | **Ln(&nbsp;ValueTable&nbsp;)** |Возвращает натуральный логарифм для каждого числа из таблицы. |<style> img { max-width: none } </style> ![](media/function-numericals/values-ln.png) | | **Sqrt(&nbsp;ValueTable&nbsp;)** |Возвращает квадратный корень для каждого числа из таблицы. |![](media/function-numericals/values-sqrt.png) | ### <a name="step-by-step-example"></a>Пошаговый пример 1. Добавьте элемент управления **[Текстовое поле](../controls/control-text-input.md)** и назовите его **Source**. 2. Добавьте элемент управления **Метка** и задайте в качестве значения свойства **[Text](../controls/properties-core.md)** следующую формулу: <br> **Sqrt( Value( Source.Text ) )** 3. Введите число в элемент **Source** и убедитесь, что в элементе управления **Метка** отображается квадратный корень введенного числа.
57.511628
481
0.735746
rus_Cyrl
0.878192
da73cb8a01643fba9febb549e17cecfd3486307c
902
markdown
Markdown
_posts/2020-09-13-destructuring.markdown
nguyenlan13/nguyenlan13.github.io
e1d14b74880e16ad01b900494d57148d3d09c8d6
[ "MIT" ]
null
null
null
_posts/2020-09-13-destructuring.markdown
nguyenlan13/nguyenlan13.github.io
e1d14b74880e16ad01b900494d57148d3d09c8d6
[ "MIT" ]
null
null
null
_posts/2020-09-13-destructuring.markdown
nguyenlan13/nguyenlan13.github.io
e1d14b74880e16ad01b900494d57148d3d09c8d6
[ "MIT" ]
null
null
null
--- layout: post title: "Destructuring" date: 2020-09-13 11:04:31 -0400 permalink: destructuring --- Destructuring assignment is a javascript expression that helps extract out data from objects and arrays. Destructuring allows us to reduce repetitive code by assigning multiple variables at a time and simplifying the syntax. This can be used with objects or arrays, even their nested structures. Examples Object: ``` const object = { first: 'Lan', last: 'Nguyen' }; const {first: f, last: l} = object; // f = 'Lan'; l = 'Nguyen' const {first, last} = object; // first = 'Lan'; last = 'Nguyen' ``` Array: ``` const numbers = ['one', 'two', 'three']; const [red, yellow, green] = numbers; console.log(red); // "one" console.log(yellow); // "two" console.log(green); // "three" let hello, bye; [hello, bye] = [1, 2]; console.log(hello); // 1 console.log(bye); // 2 ```
21.47619
295
0.657428
eng_Latn
0.959294
da743c07b6f474390d92a8548a8e77ea5af03944
8,688
md
Markdown
_posts/2022-03-07-cafe-project-03.md
miro7923/miro7923.github.com
e480a8e13cf43f1d5014b293d53d1724f31e22df
[ "MIT" ]
1
2022-01-29T15:26:31.000Z
2022-01-29T15:26:31.000Z
_posts/2022-03-07-cafe-project-03.md
miro7923/miro7923.github.io
16746db1135825aaa33bc2ff6d41e37f33288f88
[ "MIT" ]
null
null
null
_posts/2022-03-07-cafe-project-03.md
miro7923/miro7923.github.io
16746db1135825aaa33bc2ff6d41e37f33288f88
[ "MIT" ]
null
null
null
--- title: JAVA Servlet 프로젝트) Cafe(웹 사이트) 만들기 3 - 회원가입 기능 만들기 toc: true toc_sticky: true toc_label: 목차 published: true categories: - Project Log tags: - Project - Cafe - Log --- # 개발환경 * OpenJDK 8 * Eclipse 2021-12 * tomcat 8.5 * MySQL Workbench 8.0.19<br><br><br> # 기간 * 2022.3.4 ~ 2022.4.6<br><br><br> # 주제 * 웹 백엔드 수업 중 중간 과제로 개인 프로젝트를 진행하게 되었다. * 회원가입/로그인/탈퇴 등 기본적인 회원관리 시스템을 가진 웹 사이트를 만드는 것이다. 주어진 기한은 `한 달` * 나는 `다음 카페`를 소규모로 만들어 보기로 했다. 평소 자주 이용하기도 했고 과제의 평가 기준에서 요구하는 기능들을 다 담고 있기도 했기 때문에 이번 기회에 구현해 보면 그동안 배운 것들을 활용하기에 좋을 거 같았다. * 평가 기준에 사이트의 디자인 구현(HTML/CSS 등 프론트엔드)은 포함되지 않기 때문에 본인이 쓰고 싶은 HTML/CSS 템플릿을 구한 뒤 회원 관리 기능을 구현하면 된다.<br><br><br> # 진행상황 * 오늘은 저번 시간에 만든 `DB 테이블`과 내가 만든 사이트를 연동해서 회원가입 기능을 구현했다. ## 1. xml 파일 만들기 * `DB` 연결이 필요한 페이지마다 DB 연결을 위한 코드를 작성하면 비효율적이니까 먼저 `xml` 파일에 연결에 필요한 정보를 저장한 후 불러온다. ```xml <?xml version="1.0" encoding="UTF-8"?> <Context> <!-- Context : 프로젝트 --> <Resource name="디비에 접근하기 위한 이름" auth="컨테이너 자원 관리자 설정 - Application or Container" type="리소스를 사용할 때 실제로 사용되는 클래스 타입" username="디비 아이디" password="디비 비밀번호" driverClassName="드라이버 주소" url="디비 연결 주소" maxActive="커넥션 회수 대기시간" /> </Context> ``` * 기본 형식과 각 라인의 의미는 위와 같으며 ```xml <?xml version="1.0" encoding="UTF-8"?> <Context> <Resource name = "jdbc/cafe" auth = "container" type = "javax.sql.DataSource" driverClassName = "com.mysql.cj.jdbc.Driver" url = "jdbc:mysql://localhost:3306/cafedb" username = "root" password = "1234" /> </Context> ``` * 나는 이렇게 작성했다. ## 2. DTO, DAO 클래스 만들기 * 회원 가입에 필요한 정보를 모아서 한꺼번에 전달할 수 있는 객체를 만들기 위해 `MemberDTO` 클래스를 만들었다. ```java import java.sql.Date; import java.sql.Timestamp; public class MemberDTO { private int num; private String id; private String pass; private String name; private Date birth; private int age; private String gender; private String address; private String phone; private String email; private Timestamp regdate; // getter/setter 작성 } ``` * 그리고 `DB` 연결을 처리할 서블릿 클래스를 만들었다. 커넥션 풀을 사용하도록 구현했다. ```java import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; public class MemberDAO { private Connection con = null; private PreparedStatement pstmt = null; private ResultSet rs = null; private String sql = ""; // DB 연결정보 준비 private Connection getCon() throws Exception { // Context 객체 생성 Context initCTX = new InitialContext(); DataSource ds = (DataSource) initCTX.lookup("java:comp/env/jdbc/cafe"); con = ds.getConnection(); System.out.println("DAO : 1.2. DB 연결 성공"); System.out.println("DAO : " + con); return con; } // DB 자원해제 public void CloseDB() { try { if (null != rs) rs.close(); if (null != pstmt) pstmt.close(); if (null != con) con.close(); } catch (Exception e) { e.printStackTrace(); } } // insertMember(dto) public void insertMember(MemberDTO dto) { System.out.println("insertMember(dto) 호출"); // 1.2. DB 연결 try { con = getCon(); // 3. sql 작성 & pstmt 연결 sql = "insert into cafe_members(id, pass, name, birth, age, gender, address, phone, email, regdate) " + "values(?,?,?,?,?,?,?,?,?,?)"; pstmt = con.prepareStatement(sql); pstmt.setString(1, dto.getId()); pstmt.setString(2, dto.getPass()); pstmt.setString(3, dto.getName()); pstmt.setDate(4, dto.getBirth()); pstmt.setInt(5, dto.getAge()); pstmt.setString(6, dto.getGender()); pstmt.setString(7, dto.getAddress()); pstmt.setString(8, dto.getPhone()); pstmt.setString(9, dto.getEmail()); pstmt.setTimestamp(10, dto.getRegdate()); // 4. sql 실행 pstmt.executeUpdate(); System.out.println("DAO : 회원가입 완료"); } catch (Exception e) { e.printStackTrace(); } finally { CloseDB(); } System.out.println("DAO : insertMember(dto) 끝!"); } // insertMember(dto) } ``` ## 3. 회원가입 처리 동작을 수행할 Action 클래스 만들기 * `jsp` 페이지에서 회원가입 처리를 수행하지 않고 자바 클래스에서 처리할 것이다. * `Action` 페이지에서 구현해야 하는 기능을 빼먹지 않고 강제하기 위해서 인터페이스를 `implements` 한 뒤 오버라이딩하여 구현했다. ```java import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public interface Action { public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception; } import java.sql.Date; import java.sql.Timestamp; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.project.cafe.member.db.MemberDAO; import com.project.cafe.member.db.MemberDTO; // 회원가입 처리동작 수행 // model 객체로 pro 페이지 역할을 한다. public class MemberJoinAction implements Action { @Override public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception { System.out.println("M : MemberJoinAction - execute() 호출"); // 한글처리 request.setCharacterEncoding("UTF-8"); // 전달받은 파라미터 저장 (JSP 페이지가 아니므로 액션태그는 쓸 수 없고 setter를 이용해 저장한다) MemberDTO dto = new MemberDTO(); dto.setId(request.getParameter("id")); dto.setPass(request.getParameter("pass")); dto.setName(request.getParameter("name")); dto.setAddress(request.getParameter("address")); dto.setAge(Integer.parseInt(request.getParameter("age"))); dto.setBirth(Date.valueOf(request.getParameter("birth"))); dto.setEmail(request.getParameter("email")); dto.setGender(request.getParameter("gender")); // 폰번호 3개 필드 합친 후 저장 StringBuilder sb = new StringBuilder(); sb.append(request.getParameter("phone1")); sb.append(request.getParameter("phone2")); sb.append(request.getParameter("phone3")); dto.setPhone(sb.toString()); // 날짜 정보 추가 저장 dto.setRegdate(new Timestamp(System.currentTimeMillis())); System.out.println("M : 전달된 회원 정보 저장"); System.out.println("M : " + dto); // DAO 객체 생성 MemberDAO dao = new MemberDAO(); // 회원가입 메서드 호출 dao.insertMember(dto); System.out.println("M : 회원가입 완료"); // 페이지 이동 (로그인 페이지로 - ./login.me) ActionForward forward = new ActionForward(); forward.setPath("./login.me"); forward.setRedirect(true); // Action 페이지를 노출하지 않고 가상 주소를 보여줘야 하니까 true로 설정해서 주소줄에 표시되는 주소를 바꾼다. return forward; } } ``` * `DB 테이블`에서 회원의 생년월일 정보를 `DATE` 타입으로 설정했기 때문에 이 단계에서 생년월일은 어떻게 세팅해서 넣어줘야 하는지 몰라서 좀 헤멨다. 그 동안 `Timestamp`만 쓰고 `Date`를 쓰는 것이 처음이었기 때문에...😅 * 처음엔 `YYYY-DD-MM` 형태로 입력되는 데이터에서 '-'을 빼고 숫자만 있는 형태로 `new Date` 객체를 생성해서 넣어보기도 하는 등 헤메다가 구글링 후 `Date.valueOf("YYYY-DD-MM")` 형태로 넣어주면 된다는 것을 알게 되어서 `request` 객체의 `getParameter()`를 그대로 넣었다. * `jsp` 페이지의 `<input>` 태그의 `date` 타입으로 입력받기 때문에 전달되는 데이터의 형태가 `YYYY-DD-MM`였다. ## 4. 회원가입 페이지에서 MemberJoinAction 클래스 연결 * `join.jsp` 페이지에서 폼태그의 `action` 부분을 수정한다. ```jsp <h3>회원가입</h3> <form id="join" action="./MemberJoinAction.me" method="post"> <div class="formRow"> <label for="MOD_TEXTFORM_NameField">아이디 </label><input id="MOD_TEXTFORM_NameField" type="text" name="id"> </div> <div class="formRow"> <label for="MOD_TEXTFORM_NameField">비밀번호 </label><input id="MOD_TEXTFORM_NameField" type="password" name="pass"> </div> ... ``` ## 5. Controller에서 Action 클래스 연결하기 * `MemberFrontController` 클래스의 `doProcess()` 함수의 가상주소 매핑 부분을 수정한다. ```java protected void doProcess(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // 1. 전달되는 가상주소 계산 ... // 2. 가상주소 매핑 Action action = null; ActionForward forward = null; if (command.equals("/main.me") || command.equals("/join.me") || command.equals("/login.me")) { forward = new ActionForward(); if (command.equals("/main.me")) { System.out.println("C : 메인페이지 호출"); forward.setPath("./main/main.jsp"); } else if (command.equals("/join.me")) { System.out.println("C : 회원가입 페이지 호출"); forward.setPath("./member/join.jsp"); } else if (command.equals("/login.me")) { System.out.println("C : 로그인 페이지 호출"); forward.setPath("./member/login.jsp"); } forward.setRedirect(false); } else if (command.equals("/MemberJoinAction.me")) { System.out.println("C : /MemberJoinAction.me 호출"); System.out.println("C : 이전 페이지 정보를 가져와서 DB 테이블에 저장 후 페이지 이동"); action = new MemberJoinAction(); // 인터페이스를 통해 객체를 생성함으로써 약한결합이 되도록 한다. try { forward = action.execute(req, resp); } catch (Exception e) { e.printStackTrace(); } } System.out.println("C : 가상주소 매핑 완료\n"); // 2. 가상주소 매핑 // 3. 페이지 이동 ... } ``` ## 6. 동작 테스트 결과! <p align="center"><img src="../../assets/images/cafeMemTable.png"></p> * 잘 들어간다! * 그리고 회원가입이 완료되면 로그인 페이지로 이동하는 것까지 잘 구현되었다.<br> 뿌듯-!😄<br><br><br> # 마감까지 * `D-28`
24.611898
188
0.659991
kor_Hang
0.997572
da74a8b7c356dc6ade768c54c0c2c57990271eef
125
md
Markdown
README.md
mriza/XnView-linux-installer
9a00d4b9d223f051007b701567d7f8ab623b8437
[ "MIT" ]
null
null
null
README.md
mriza/XnView-linux-installer
9a00d4b9d223f051007b701567d7f8ab623b8437
[ "MIT" ]
null
null
null
README.md
mriza/XnView-linux-installer
9a00d4b9d223f051007b701567d7f8ab623b8437
[ "MIT" ]
null
null
null
# XnView-linux-installer A helper script to install XnView 64bit to general Linux How to install: `sudo ./XnView-install.sh`
31.25
56
0.784
eng_Latn
0.743509
da74cafb42c26f136924647d450bd071bd9e844f
696
md
Markdown
docs/fr/api/wrapper-array/filter.md
oliver-dvorski/vue-test-utils
b1ce2fede42b63ac2eefae6e4ea9352b4da79817
[ "MIT" ]
3,646
2017-05-28T11:40:52.000Z
2022-03-29T09:38:08.000Z
docs/fr/api/wrapper-array/filter.md
oliver-dvorski/vue-test-utils
b1ce2fede42b63ac2eefae6e4ea9352b4da79817
[ "MIT" ]
1,494
2017-05-28T12:03:34.000Z
2022-03-31T13:54:31.000Z
docs/fr/api/wrapper-array/filter.md
oliver-dvorski/vue-test-utils
b1ce2fede42b63ac2eefae6e4ea9352b4da79817
[ "MIT" ]
796
2017-06-02T17:49:51.000Z
2022-03-24T02:30:20.000Z
## filter Filtrez `WrapperArray` avec une fonction de prédicat sur les objets `Wrapper`. Le comportement de cette méthode est similaire à celui de [Array.prototype.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter). - **Arguments:** - `{function} predicate` - **Retours:** `{WrapperArray}` Une nouvelle instance `WrapperArray` contenant des instances de `Wrapper` qui retourne vrai pour la fonction prédicat. - **Exemple:** ```js import { shallowMount } from '@vue/test-utils' import Foo from './Foo.vue' const wrapper = shallowMount(Foo) const filteredDivArray = wrapper .findAll('div') .filter(w => !w.classes('filtered')) ```
26.769231
178
0.731322
fra_Latn
0.604782
da77dee692d44324493ee497850605ae8a142f41
424
md
Markdown
_pages/about.md
jfaccioni/jfaccioni.github.io
ae5266b15f4044ae6b5ee1977f8d3f616b3f6365
[ "MIT" ]
null
null
null
_pages/about.md
jfaccioni/jfaccioni.github.io
ae5266b15f4044ae6b5ee1977f8d3f616b3f6365
[ "MIT" ]
null
null
null
_pages/about.md
jfaccioni/jfaccioni.github.io
ae5266b15f4044ae6b5ee1977f8d3f616b3f6365
[ "MIT" ]
null
null
null
--- permalink: / title: "Hello!" excerpt: "Juliano Faccioni" author_profile: true redirect_from: - /about/ - /about.html --- I'm **Juliano Faccioni**, a biomedical researcher, PhD student and developer working with Python, Linux and R (in this particular order!). I'm currently doing my PhD at LabSinal / UFRGS in Porto Alegre, Brazil. Feel free to browse the other tabs and learn a bit more about me! Cheers 😊 🎉
23.555556
139
0.71934
eng_Latn
0.964942
da7820609aae3c8b691bfae27b8842a8a1c07a5c
477
md
Markdown
mojaloop-technical-overview/central-ledger/transfers/timeout/2.3.0-transfer-timeout.md
harshita-gupta/mojaloop-documentation
df8c843cac6107c1545fe18c90a91b9a74595042
[ "Apache-2.0" ]
null
null
null
mojaloop-technical-overview/central-ledger/transfers/timeout/2.3.0-transfer-timeout.md
harshita-gupta/mojaloop-documentation
df8c843cac6107c1545fe18c90a91b9a74595042
[ "Apache-2.0" ]
null
null
null
mojaloop-technical-overview/central-ledger/transfers/timeout/2.3.0-transfer-timeout.md
harshita-gupta/mojaloop-documentation
df8c843cac6107c1545fe18c90a91b9a74595042
[ "Apache-2.0" ]
null
null
null
# Transfer Timeout ## Transfer Timeout Sequence design diagram for the Transfer Timeout process. ## References within Sequence Diagram * [Timeout Handler Consume \(2.3.1\)](2.3.1-timeout-handler-consume.md) * [Position Handler Consume \(Timeout\)\(1.3.3\)](../reject-abort/1.3.3-abort-position-handler-consume.md) * [Send Notification to Participant \(1.1.4.a\)](../../central-bulk-transfers/notifications/1.1.4.a-send-notification-to-participant.md) ## Sequence Diagram
31.8
136
0.735849
eng_Latn
0.23229
da789344f1bfac0bdefe5e9bd545e84e8f92db66
74
md
Markdown
TODO.md
BryanBo-Cao/BryanBo-Cao.github.io
3d3c151f3af1a1c82b1812e292572b9bbee4bf0f
[ "MIT" ]
null
null
null
TODO.md
BryanBo-Cao/BryanBo-Cao.github.io
3d3c151f3af1a1c82b1812e292572b9bbee4bf0f
[ "MIT" ]
2
2017-09-19T22:09:26.000Z
2017-09-19T23:05:10.000Z
TODO.md
BryanBo-Cao/BryanBo-Cao.github.io
3d3c151f3af1a1c82b1812e292572b9bbee4bf0f
[ "MIT" ]
1
2018-02-21T00:58:48.000Z
2018-02-21T00:58:48.000Z
2017-12-26Thu Add undersubmission section. Add volunteer service section.
18.5
30
0.837838
eng_Latn
0.71361
da78aa8cc3b3d9cb40ef9bdf586dd4de34793301
203
md
Markdown
minesweep/readme.md
Mafia-Goose/chilibowlflash
49f8d16f0f0cf2e294dd16e931b9b8d47adac5dc
[ "Apache-2.0", "MIT" ]
2
2021-09-23T02:11:04.000Z
2022-01-29T21:41:16.000Z
minesweep/readme.md
Mafia-Goose/chilibowlflash
49f8d16f0f0cf2e294dd16e931b9b8d47adac5dc
[ "Apache-2.0", "MIT" ]
5
2021-08-22T20:34:34.000Z
2022-03-25T16:56:17.000Z
minesweep/readme.md
Mafia-Goose/chilibowlflash
49f8d16f0f0cf2e294dd16e931b9b8d47adac5dc
[ "Apache-2.0", "MIT" ]
17
2021-08-24T02:39:04.000Z
2022-03-30T15:49:52.000Z
minesweeper =========== Clone of Microsoft's Minesweeper from Windows XP. An effort was made to duplicate every feature (excluding menus) as exactly as possible. Demo: http://jonziebell.com/minesweeper
33.833333
137
0.763547
eng_Latn
0.990167
da7949ae1a4c49f864cd05869e73b7fea1a7aa11
896
md
Markdown
06-security-baselines.md
murriel/cloudnativesectools
cef5f0d17352175b2a5c341bda2ef517281519bb
[ "MIT" ]
null
null
null
06-security-baselines.md
murriel/cloudnativesectools
cef5f0d17352175b2a5c341bda2ef517281519bb
[ "MIT" ]
null
null
null
06-security-baselines.md
murriel/cloudnativesectools
cef5f0d17352175b2a5c341bda2ef517281519bb
[ "MIT" ]
null
null
null
# Security Baselines and Frameworks # STIG US Department of Defense Information Systems Agency (DISA)\ [Security Technical Implementation Guides (STIG)](https://public.cyber.mil/stigs/) 400+\ [STIG Viewer](https://www.stigviewer.com/stigs) # CIS [Center for Internet Security’s Benchmarks](https://www.cisecurity.org/cis-benchmarks/) # MITRE - [ATT&CK](https://attack.mitre.org)\ Adversarial Tactics, Techniques, and Common Knowledge - [CVE '99](https://cve.mitre.org/) # Cloud Security Alliance - [Cloud Controls Matrix](https://cloudsecurityalliance.org/research/cloud-controls-matrix/) # OpenSCAP - [Open Security Content Automation Protocol](https://www.open-scap.org/) (SCAP) - U.S. NIST standard - Collection of open source tools for implementing and enforcing this standard # OpenVAS - [Open Vulnerability Assessment Scanner](https://www.openvas.org) - GNU GPL - Nessus Fork
32
101
0.753348
kor_Hang
0.685021
da797a71535eaf14cd8436ef5fa3459e0eaca298
174
md
Markdown
README.md
jasbrake/ip-server
2f1309dcbc1a05def3358a6b5aef9c3d8bc3f513
[ "MIT" ]
null
null
null
README.md
jasbrake/ip-server
2f1309dcbc1a05def3358a6b5aef9c3d8bc3f513
[ "MIT" ]
null
null
null
README.md
jasbrake/ip-server
2f1309dcbc1a05def3358a6b5aef9c3d8bc3f513
[ "MIT" ]
null
null
null
# IP Server A small Go server that returns the remote IP. Because it uses the X-Forwarded-For header, this web server is meant to sit behind a HTTP proxy server like NGINX.
34.8
114
0.775862
eng_Latn
0.999159
da7a12664768e20a0f9a6a1854bbe1276f00309a
1,297
md
Markdown
_pages/develop/kotlin.md
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
16
2020-08-03T20:08:00.000Z
2022-03-02T15:50:47.000Z
_pages/develop/kotlin.md
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
196
2015-09-14T19:15:07.000Z
2022-03-31T02:22:39.000Z
_pages/develop/kotlin.md
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
60
2020-06-04T14:18:37.000Z
2022-03-30T23:10:55.000Z
--- mediawiki: Kotlin title: Kotlin --- In order to start using Kotlin to develop plugins we need to ensure that the Annotation are pre processed so that ImageJ can display the shortcuts in the menu's To accomplish that the following code need to be added to your pom: ```xml <execution> <id>kapt</id> <goals> <goal>kapt</goal> </goals> <configuration> <sourceDirs> <sourceDir>src/main/kotlin</sourceDir> <sourceDir>src/main/java</sourceDir> </sourceDirs> <annotationProcessorPaths> <annotationProcessorPath> <groupId>net.imagej</groupId> <artifactId>imagej</artifactId> <version>2.0.0-rc-68</version> </annotationProcessorPath> </annotationProcessorPaths> </configuration> </execution> ``` and example can also be found in https://github.com/imagej/example-imagej-command-kotlin/pom.xml If gradle is your built system of choice, then the following code need to be added to your build.gradle: ```groovy plugins { id "org.jetbrains.kotlin.kapt" version "1.3.10" } dependencies { kapt 'net.imagej:imagej:2.0.0-rc-68' } ``` and example can also be found in https://github.com/imagej/example-imagej-command-kotlin/build.gradle
27.595745
160
0.664611
eng_Latn
0.915506
da7bc6efa6104042a7012310b6c8a65cb91097de
18
md
Markdown
README.md
dianapulatova/AI.with.Python01
eace2f79a1529698c2c59f8d13a579b6abfafbe0
[ "MIT" ]
null
null
null
README.md
dianapulatova/AI.with.Python01
eace2f79a1529698c2c59f8d13a579b6abfafbe0
[ "MIT" ]
null
null
null
README.md
dianapulatova/AI.with.Python01
eace2f79a1529698c2c59f8d13a579b6abfafbe0
[ "MIT" ]
null
null
null
# AI.with.Python01
18
18
0.777778
eng_Latn
0.759002
da7d5e91e57a286c07dccde3e0da6ad32ab3b82d
104
md
Markdown
README.md
oesolutions/gradle-plugin-examples
8728df061974f682f273f51e19e68f13a40b6b65
[ "Unlicense" ]
1
2020-06-07T02:31:43.000Z
2020-06-07T02:31:43.000Z
README.md
oesolutions/gradle-plugin-examples
8728df061974f682f273f51e19e68f13a40b6b65
[ "Unlicense" ]
null
null
null
README.md
oesolutions/gradle-plugin-examples
8728df061974f682f273f51e19e68f13a40b6b65
[ "Unlicense" ]
null
null
null
# Gradle Plugin Examples A collection of example Gradle projects, targeting plugin development topics.
26
77
0.826923
eng_Latn
0.929702
da7e3e0e68b3d56859e75d99e11d2979733c412b
49
md
Markdown
README.md
Saend/cutl
31c091ec3155185a7764682654ad9ed3932f6267
[ "MIT" ]
null
null
null
README.md
Saend/cutl
31c091ec3155185a7764682654ad9ed3932f6267
[ "MIT" ]
null
null
null
README.md
Saend/cutl
31c091ec3155185a7764682654ad9ed3932f6267
[ "MIT" ]
null
null
null
# cutl A simple C and Lua unit testing library.
12.25
40
0.734694
eng_Latn
0.909414
da7e70e741714207db053ebbfb2bfd04c73b5e7b
787
md
Markdown
README.md
RuslanIsrafilov/WPFPlot
627af387d200c5d9442b000554d51d4d0296f81c
[ "MIT" ]
11
2016-01-22T20:39:12.000Z
2017-05-14T14:45:19.000Z
README.md
RuslanIsrafilov/WPFPlot
627af387d200c5d9442b000554d51d4d0296f81c
[ "MIT" ]
null
null
null
README.md
RuslanIsrafilov/WPFPlot
627af387d200c5d9442b000554d51d4d0296f81c
[ "MIT" ]
null
null
null
WPF Plot ======= WPF library for plotting one dimensional mathematical functions including control for interactive plot. Features -------- * Dynamic data plotting. * Scaling and moving coordinate system. * Bind UIElements to points in cartesian coordinate system. Screenshot ---------- ![WPFPlot screenshot](http://s28.postimg.org/ydgkcmvhp/wpfplot.png) Quickstart ---------- Import WPF Plot namespace: ~~~xml <Window xmlns:wpfplot="clr-namespace:WPFPlot.Controls;assembly=WPFPlot" /> ~~~ Create `GraphControl` and set `PlotData`. Data context object must be instance of `IPlotDataSource`. ~~~xml <wpfplot:GraphControl SegmentBegin="-3.14" SegmentEnd="3.14"> <wpfplot:GraphItem StrokeBrush="Blue" PlotData="{Binding}" /> </wpfplot:GraphControl> ~~~ License ------- MIT License.
25.387097
103
0.730623
yue_Hant
0.353515
da7f23661ca09de8ed024c9d0698fb21349d8862
27
md
Markdown
test_fixtures/pages/bad-malformed-header.md
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
302
2016-08-01T05:16:06.000Z
2022-03-26T07:20:46.000Z
test_fixtures/pages/bad-malformed-header.md
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
206
2016-08-04T15:18:35.000Z
2022-03-01T03:07:57.000Z
test_fixtures/pages/bad-malformed-header.md
skunkwerks/serum
45039417a101bf89f3a86a4aa3d42ce41df2d676
[ "MIT" ]
35
2016-10-29T13:59:34.000Z
2022-03-01T01:50:31.000Z
--- title: Bad Page what?
5.4
15
0.592593
eng_Latn
0.997523
da7fc54a831e9fb2a2c1128b542698762f88c491
891
md
Markdown
main/demo/about-dict-db-struct-foreach-cell/README.md
samwhelp/note-php-office-for-read-dict-db
7fa94443002fc155074f49c297f72485af480267
[ "MIT" ]
null
null
null
main/demo/about-dict-db-struct-foreach-cell/README.md
samwhelp/note-php-office-for-read-dict-db
7fa94443002fc155074f49c297f72485af480267
[ "MIT" ]
null
null
null
main/demo/about-dict-db-struct-foreach-cell/README.md
samwhelp/note-php-office-for-read-dict-db
7fa94443002fc155074f49c297f72485af480267
[ "MIT" ]
null
null
null
# demo - about-dict-db-struct-var_dump ## 操作步驟 執行 ``` sh $ ./main.php ``` 顯示 ``` Row: 0 Column A: 忙碌 Column B: ㄇㄤˊ ㄌㄨˋ Column C: máng lù Row: 1 Column A: 慢動作 Column B: ㄇㄢˋ ㄉㄨㄥˋ ㄗㄨㄛˋ Column C: màn dòng zuò Row: 2 Column A: 不理不睬 Column B: ㄅㄨˋ ㄌㄧˇ ㄅㄨˋ ㄘㄞˇ Column C: bù lǐ bù cǎi Row: 3 Column A: 感謝 Column B: ㄍㄢˇ ㄒㄧㄝˋ Column C: gǎn xiè Row: 4 Column A: 會心一笑 Column B: ㄏㄨㄟˋ ㄒㄧㄣ ㄧ ㄒㄧㄠˋ Column C: huì xīn yī xiào Row: 5 Column A: 置之不理 Column B: ㄓˋ ㄓ ㄅㄨˋ ㄌㄧˇ Column C: zhì zhī bù lǐ Row: 6 Column A: 置之度外 Column B: ㄓˋ ㄓ ㄉㄨˋ ㄨㄞˋ Column C: zhì zhī dù wài Row: 7 Column A: 真 Column B: ㄓㄣ Column C: zhēn Row: 8 Column A: 守 Column B: ㄕㄡˇ Column C: shǒu Row: 9 Column A: 一笑置之 Column B: ㄧ ㄒㄧㄠˋ ㄓˋ ㄓ (變)ㄧˊ ㄒㄧㄠˋ ㄓˋ ㄓ Column C: yī xiào zhì zhī (變)yí xiào zhì zhī ``` ## 說明 * [來源資料結構/column](https://samwhelp.github.io/note-php-office-for-read-dict-db/main/#/about-dict-db-struct?id=column)
12.728571
116
0.674523
vie_Latn
0.460622
da815451df2860537fd0b08b539d8defabeef390
257
md
Markdown
README.md
stepan-perlov/press
9ad2a23b711a3b2877ca895d9a4712f9412d1cfa
[ "MIT" ]
null
null
null
README.md
stepan-perlov/press
9ad2a23b711a3b2877ca895d9a4712f9412d1cfa
[ "MIT" ]
null
null
null
README.md
stepan-perlov/press
9ad2a23b711a3b2877ca895d9a4712f9412d1cfa
[ "MIT" ]
null
null
null
# press WYSIWYG editor for browser # Based on * https://github.com/GetmeUK/FSM * https://github.com/GetmeUK/HTMLString * https://github.com/GetmeUK/ContentSelect * https://github.com/GetmeUK/ContentEdit * https://github.com/GetmeUK/ContentTools
23.363636
44
0.735409
yue_Hant
0.983025
da828f3bebc972ae3815267a336d269cad97e962
37
md
Markdown
clusters/README.md
infochimps-labs/chimpstation-homebase
f63d93f971fa49636ae83957fb83a7e66a097575
[ "Apache-2.0" ]
2
2015-11-05T10:53:26.000Z
2016-02-05T15:15:43.000Z
clusters/README.md
infochimps-labs/chimpstation-homebase
f63d93f971fa49636ae83957fb83a7e66a097575
[ "Apache-2.0" ]
null
null
null
clusters/README.md
infochimps-labs/chimpstation-homebase
f63d93f971fa49636ae83957fb83a7e66a097575
[ "Apache-2.0" ]
null
null
null
Place your cluster definitions here
12.333333
35
0.837838
eng_Latn
0.989839
da839370c6f14ba92a92acef0525635ca01fa52b
1,804
md
Markdown
README.md
tzi/metalsmith-looper
2a2dcc2649dc7903ac07b62c047c1191e93f4ebc
[ "MIT" ]
1
2020-02-03T10:59:19.000Z
2020-02-03T10:59:19.000Z
README.md
tzi/metalsmith-looper
2a2dcc2649dc7903ac07b62c047c1191e93f4ebc
[ "MIT" ]
1
2020-02-03T10:30:52.000Z
2020-02-03T10:30:52.000Z
README.md
tzi/metalsmith-looper
2a2dcc2649dc7903ac07b62c047c1191e93f4ebc
[ "MIT" ]
null
null
null
metalsmith-looper ====== A small plugin to iterate over metalsmith data. Quick example ------ ```js const Metalsmith = require('metalsmith'); const looper = require('metalsmith-looper'); Metalsmith(__dirname) .metadata({}) .source('./content') .destination('./docs') .use(looper(function({ loopContent }) { // Loop through HTML files loopContent(function(file, { move }) { // Move file and associated assets to another subfolder move('/root/' + file.$name); }); })); ``` Looper API ------ ### loopContent( callback ) Loop through every HTML files. ### loopOnType( callback ) Loop through every HTML files from a specific subfolder of the sources. ### createIndex( indexName, sortProp ) Create a new index to reference content file. Loop API ------ ### move( newName ) Move the current file, and associated assets, to another destination. ### remove( ) Remove the current from the sources to treat. ### required( propName ) Throw an error if the current file doesn't have a specific property. ### unique( propName ) Throw an error if the current file has the same property value than another file. ### setType( newType ) Define the type of document, by default, the type of document is the source subfolder. ### addReference( propName, referencedType ) Link another file according to a property value. ### addIndex( indexName, key ) Add the current file to a spacific index under a specific key. ### getIndex( indexName ) Retrieve a specific index of files. Template API ------ ### $name The relative path of the current file destination path. ### $type The type of the current file. ### $indexes An array that contains all indexes. ### $self An object containing the current file.
16.252252
86
0.677938
eng_Latn
0.966198
da84c008b62cb7056a5f03267be9b28543a0429b
128
md
Markdown
Scikit-learn/README.md
SMony-L/Machine-Learning
be0a0bab6dbf6d7931e1d07d4d871ccadfc785d0
[ "MIT" ]
null
null
null
Scikit-learn/README.md
SMony-L/Machine-Learning
be0a0bab6dbf6d7931e1d07d4d871ccadfc785d0
[ "MIT" ]
null
null
null
Scikit-learn/README.md
SMony-L/Machine-Learning
be0a0bab6dbf6d7931e1d07d4d871ccadfc785d0
[ "MIT" ]
null
null
null
Linear-Regression Model for Wine Data (Scikit-Learn) Implementing simple linear regression on Wine dataset using scikit-learn
25.6
72
0.828125
eng_Latn
0.509789
da84c4f1908ce8bf66bae77d07c92aacfe048a41
194
md
Markdown
README.md
akennedy4155/course-v3
9dba47f80af5c7aca4645c54da4d600570d04d1f
[ "Apache-2.0" ]
null
null
null
README.md
akennedy4155/course-v3
9dba47f80af5c7aca4645c54da4d600570d04d1f
[ "Apache-2.0" ]
null
null
null
README.md
akennedy4155/course-v3
9dba47f80af5c7aca4645c54da4d600570d04d1f
[ "Apache-2.0" ]
null
null
null
# course-v3 The 3rd edition of [course.fast.ai](https://course.fast.ai). See the `nbs` folder for the notebooks. ## Work by: Alex Kennedy (2020) __https://www.linkedin.com/in/alex-j-kennedy/__
32.333333
100
0.721649
eng_Latn
0.373128
da8551c95a99bdc2cd01809c35f8bbe1dc725f60
5,980
md
Markdown
azurermps-4.4.1/AzureRM.ApiManagement/Remove-AzureRmApiManagementPolicy.md
AdrianaDJ/azure-docs-powershell.tr-TR
78407d14f64e877506d6c0c14cac18608332c7a8
[ "CC-BY-4.0", "MIT" ]
1
2020-12-05T17:58:35.000Z
2020-12-05T17:58:35.000Z
azurermps-4.4.1/AzureRM.ApiManagement/Remove-AzureRmApiManagementPolicy.md
AdrianaDJ/azure-docs-powershell.tr-TR
78407d14f64e877506d6c0c14cac18608332c7a8
[ "CC-BY-4.0", "MIT" ]
null
null
null
azurermps-4.4.1/AzureRM.ApiManagement/Remove-AzureRmApiManagementPolicy.md
AdrianaDJ/azure-docs-powershell.tr-TR
78407d14f64e877506d6c0c14cac18608332c7a8
[ "CC-BY-4.0", "MIT" ]
null
null
null
--- external help file: Microsoft.Azure.Commands.ApiManagement.ServiceManagement.dll-Help.xml Module Name: AzureRM.ApiManagement ms.assetid: 466AFB8C-C272-4A4F-8E13-A4DBD6EE3A85 online version: '' schema: 2.0.0 content_git_url: https://github.com/Azure/azure-powershell/blob/preview/src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagementPolicy.md original_content_git_url: https://github.com/Azure/azure-powershell/blob/preview/src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagementPolicy.md ms.openlocfilehash: 5f7fa78cb368afe3e277661122682f43f885f7f6 ms.sourcegitcommit: f599b50d5e980197d1fca769378df90a842b42a1 ms.translationtype: MT ms.contentlocale: tr-TR ms.lasthandoff: 08/20/2020 ms.locfileid: "93587031" --- # Remove-AzureRmApiManagementPolicy ## SYNOPSIS Belirtilen kapsamdan API yönetim ilkesini kaldırır. [!INCLUDE [migrate-to-az-banner](../../includes/migrate-to-az-banner.md)] ## INDEKI ### Kiracı düzeyi (varsayılan) ``` Remove-AzureRmApiManagementPolicy -Context <PsApiManagementContext> [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] ``` ### Ürün düzeyi ``` Remove-AzureRmApiManagementPolicy -Context <PsApiManagementContext> -ProductId <String> [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] ``` ### API düzeyi ``` Remove-AzureRmApiManagementPolicy -Context <PsApiManagementContext> -ApiId <String> [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] ``` ### İşlem düzeyi ``` Remove-AzureRmApiManagementPolicy -Context <PsApiManagementContext> -ApiId <String> -OperationId <String> [-PassThru] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] ``` ## Tanım **Remove-Azurermapsananagementpolicy** cmdlet 'i, BELIRTILEN kapsamdan API yönetim ilkesini kaldırır. ## ÖRNEKLERDEN ### Örnek 1: kiracı düzeyi ilkesini kaldırma ``` PS C:\>Remove-AzureRmApiManagementPolicy -Context $APImContext ``` Bu komut, kiracı düzeyi ilkesini API yönetiminden kaldırır. ### Örnek 2: ürün kapsamı ilkesini kaldırma ``` PS C:\>Remove-AzureRmApiManagementPolicy -Context $APImContext -ProductId "0123456789" ``` Bu komut, API yönetiminden ürün kapsam ilkesini kaldırır. ### Örnek 3: API kapsam ilkesini kaldırma ``` PS C:\>Remove-AzureRmApiManagementPolicy -Context $APImContext -ApiId "9876543210" ``` Bu komut API Yönetimi 'nden API kapsam ilkesini kaldırır. ### Örnek 4: işlem kapsamı ilkesini kaldırma ``` PS C:\>Remove-AzureRmApiManagementPolicy -Context $APImContext -ApiId "9876543210" -OperationId "777" ``` Bu komut, işlem kapsam ilkesini API yönetiminden kaldırır. ## PARAMETRELERINE ### -Apııd Var olan bir API 'ın tanımlayıcısını belirtir. Bu parametreyi belirtirseniz cmdlet API kapsam ilkesini kaldırır. ```yaml Type: System.String Parameter Sets: API level, Operation level Aliases: Required: True Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -Context **Psapimanagementcontext** nesnesinin örneğini belirtir. ```yaml Type: Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -OperationId Var olan bir işlemin tanımlayıcısını belirtir. Bu parametreyi *Apııd* parametresiyle belirtirseniz, bu cmdlet işlem kapsamı ilkesini kaldırır. ```yaml Type: System.String Parameter Sets: Operation level Aliases: Required: True Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -Geçiş Bu cmdlet 'in bir $True değerini (başarılı olursa), aksi takdirde $False değerini döndürmediğini belirtir. ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -ÜrünKimliği Var olan ürünün tanımlayıcısını belirtir. Bu parametreyi belirtirseniz, cmdlet ürün kapsam ilkesini kaldırır. ```yaml Type: System.String Parameter Sets: Product level Aliases: Required: True Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -Onay Cmdlet 'i çalıştırmadan önce onaylamanızı ister. ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -WhatIf Cmdlet çalışırsa ne olacağını gösterir. Cmdlet çalışmaz. ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -DefaultProfile Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik. ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer Parameter Sets: (All) Aliases: AzureRmContext, AzureCredential Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### CommonParameters Bu cmdlet ortak parametreleri destekler:-Debug,-ErrorAction,-ErrorVariable,-ınformationaction,-ınformationvariable,-OutVariable,-OutBuffer,-Pipelinedeğişken,-verbose,-WarningAction ve-Warningdeğişken. Daha fazla bilgi için bkz about_CommonParameters ( https://go.microsoft.com/fwlink/?LinkID=113216) . ## GÖLGELENDIRICI ## ÇıKıŞLAR ### Boole ## NOTLARıNDA ## ILGILI BAĞLANTıLAR [Get-Azurermapımanagementpolicy](./Get-AzureRmApiManagementPolicy.md) [Set-Azurermapımanagementpolicy](./Set-AzureRmApiManagementPolicy.md)
26.460177
301
0.791973
tur_Latn
0.416562
da859aa0b1ee7de36a1bfd4ede021aca3b6d6873
4,115
md
Markdown
docs/netserver/globalization-and-localization/phoneformatter.md
SuperOfficeDocs/data-access
f0a7033b0f43c4b60921885c7cebde9b789f4487
[ "MIT" ]
null
null
null
docs/netserver/globalization-and-localization/phoneformatter.md
SuperOfficeDocs/data-access
f0a7033b0f43c4b60921885c7cebde9b789f4487
[ "MIT" ]
59
2021-04-28T07:02:54.000Z
2022-02-03T13:08:46.000Z
docs/netserver/globalization-and-localization/phoneformatter.md
SuperOfficeDocs/data-access
f0a7033b0f43c4b60921885c7cebde9b789f4487
[ "MIT" ]
2
2021-07-01T10:19:20.000Z
2021-08-12T09:41:30.000Z
--- title: Phone formatter uid: globalization_phoneformatter description: Localization, class PhoneFormatter author: {github-id} so.date: 05.08.2018 so.topic: reference keywords: --- # Phone formatter The `PhoneFormatter` class contains various methods used to format phone numbers. ![Phone formats][img1] ## GetInternationalNumber The `GetInternationalNumber` method returns the international number of the specified phone number. The following example specifies a country ID and a local number and then formats the local number into an international number. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // get the international number of the specified country for the given // phone number Country ID 578 == Norway string formatedPhoneNumber = PhoneFormatter.GetInternationalNumber(578, "96458551"); // outputs // 4796458551 } ``` ## GetBaseNumber `GetBaseNumber` is another useful method in the phone formatter class. The example specifies the country ID and the phone number to format. The method formats to the normal phone number format of the specified country. The method removes the additional numbers and characters, and then return the base number as a string. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // format the phone number to the base number format of the // specified country this will get rid of the additional // number and characters string formatedPhoneNumber = PhoneFormatter.GetBaseNumber(578, "+47 779 645 855"); // output: // 779645855 } ``` ## GetGSMNumber This method returns the GSM compliant phone number formatted according to the country specified. Additionally, the method resolves the letters in the number. The V is resolved to 8, according to the standard phone key-pad, and so on. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // format the phone number to GSM compliant format of the given // country the letters of the phone number will be resolved string formatedPhoneNumber = PhoneFormatter.GetGSMNumber(578,"077748VISTA"); // output: // +4707774884782 } ``` ## GetLongDisplayNumber This method is designed to format a number to the long country number format. Here the number will be formatted to the long phone number format of Norway. The method adds the country code to the phone number. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // get the long display number formatted according to the country // specified the method will add the country code and the area // code to the number string formatedPhoneNumber = PhoneFormatter.GetLongDisplayNumber(578,"678657856"); // output: // +47 678657856 } ``` ## GetPrefix The above method is a very simple method designed to return the country prefix of the specified country as a string. Here we retrieve the country prefix of Norway. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // get the country prefix of the country we specify string formatedPhoneNumber = PhoneFormatter.GetPrefix(578); // output: // +47 } ``` ## ResolveAlphanumericNumber This method is designed to resolve the alpha-numeric characters in a number. Here the number will get resolved according to the standard key-pad of a phone. ```csharp using SuperOffice.CRM.Globalization; using SuperOffice; using(SoSession session = SoSession.Authenticate("SAL0", "")) { // get the alpha numeric characters of a phone number that we specify // resolved this will happen according to the standard key pad // of phone e.g: the letters T,U and V will be replased will number 8 string formatedPhoneNumber = PhoneFormatter.ResolveAlphanumericNumber("077 748VISTA"); // output: // 077 74884782 } ``` <!-- Referenced images --> [img1]: media/image004.gif
32.65873
321
0.765006
eng_Latn
0.982571
da8615453eef625e9b44fc0aeebcf7e42cf5ec41
103
md
Markdown
archetypes/books.md
andriydruk/min-blog-hugo-theme
78180e45d7db74dcf9b5f019d30815e12a475f60
[ "MIT" ]
null
null
null
archetypes/books.md
andriydruk/min-blog-hugo-theme
78180e45d7db74dcf9b5f019d30815e12a475f60
[ "MIT" ]
null
null
null
archetypes/books.md
andriydruk/min-blog-hugo-theme
78180e45d7db74dcf9b5f019d30815e12a475f60
[ "MIT" ]
null
null
null
+++ title = "" author = "" description = "" googleplaybooks = "" amazon = "" cover = "" ganre = "" +++
10.3
20
0.514563
eng_Latn
0.804758
da863dd89d2aa19830180a62793f05d0ed609b6b
2,312
md
Markdown
docs/blog/13.md
xrkffgg/Knotes
55eb3ccd408ae68bc05663717d0a1d097753052a
[ "MIT" ]
10
2019-08-14T02:04:53.000Z
2022-02-04T08:04:12.000Z
docs/blog/13.md
xrkffgg/Knotes
55eb3ccd408ae68bc05663717d0a1d097753052a
[ "MIT" ]
25
2020-07-16T03:57:59.000Z
2022-02-27T11:02:37.000Z
docs/blog/13.md
xrkffgg/Knotes
55eb3ccd408ae68bc05663717d0a1d097753052a
[ "MIT" ]
5
2020-06-30T06:11:23.000Z
2021-06-24T08:05:54.000Z
# 13. Npm 发布 Vue 组件教程 ## 1 前 言 平时我们在开发的时候经常使用 `npm` 安装各种组件。 今天我们就来尝试下制作一个自己的组件发布到 `npm` 上。 这里我以自己刚发布的一个 `Vue` 组件来介绍。感兴趣的可以来下载玩玩。 [k-progress](https://github.com/xrkffgg/k-progress) ### 安 装 `npm install -S k-progress` ### 使 用 ```js // main.js import 'k-progress'; import 'k-progress/dist/k-progress.css'; ``` ## 2 开 发 ### 2.1 新建项目 新建一个 `Vue` ,熟悉的可以直接略过哈。 这里我使用的是 `@vue/cli`。 1. ```bash npm install -g @vue/cli # OR yarn global add @vue/cli ``` 2. 执行该命令,可检查是否安装成功。 `vue --version` 3. 我经常使用 `vue ui` 来新建项目,这个命令会生成一个可视化操作页面,特别方便。 我的项目用到了 `scss`,新建的时候勾选上。 至此项目新建完成。 ### 2.2 开发功能 默认新建的项目有个 `HelloWorld.vue` 的例子,我们可以在这个页面,引用我们的组件来检测开发效果。 1. 在 `src/components` 中,我们新建一个 `progress.vue`,该文件名称随意。 具体的插件功能在此页面编写。 2. 在同级目录下新建一个 `index.scss` 文件用来保存插件使用的样式文件。 3. 在同级目录下新建一个 `index.js` 文件来注册 `Vue` 组件。 这里以我为例。 ```js import Vue from 'vue'; import kProgress from './progress.vue'; import './index.scss'; const Components = { kProgress }; Object.keys(Components).forEach(name => { Vue.component(name, Components[name]); }); export default Components; ``` 4. 同时我们可以在 `HelloWorld.vue` 文件中来调用我们的组件查看效果。 ## 3 构 建 构建主要是对 `package.json` 文件进行更改。以我的为例。 ```js "name": "k-progress", "version": "1.0.0", "main": "./dist/k-progress.common.js", "files": [ "dist" ], "private": false, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "package": "vue-cli-service build --target lib --k-progress main ./src/components/index.js" }, ``` - `name` : 插件名称; - `version` : 版本号,每次 `npm publish` 都需要进行更改; - `main` : 插件的主文件路径; - `files` : 发布保留的文件; - `private` : 这里要改成 `false` ; - `scripts` : 执行命令; 执行 `yarn package` 进行构建命令,不熟悉 `yarn` 的可以执行 `npm run package`,不过真心推荐 `yarn`。 ## 4 发 布 ### 4.1 注册账号 [NPM](https://www.npmjs.com/) ### 4.2 登 录 在自己的项目中,执行 `npm login`,会提示让你输入 `npm` 账号密码。 可以通过 `npm whoami` 来检查自己是否登录成功。 ### 4.3 发 布 `npm publish` 这里列出可能出现的 2 个错误。 1. `"private": true` 会报错 2. `version` :`publish` 过一次后,相同版本的无法再次发布 ## 5 后 记 **感谢支持。** **若不足之处,欢迎大家指出,共勉。** **如果觉得不错,记得 点赞,谢谢大家 ʚ💖ɞ** **欢迎关注。** - [GitHub](https://github.com/xrkffgg) - [掘 金](https://juejin.im/user/59c369496fb9a00a4843a3e2) - [简 书](https://www.jianshu.com/u/4ca4daac5890) ### 5.1 原文地址 [https://xrkffgg.github.io/Knotes/blog/13.html](https://xrkffgg.github.io/Knotes/blog/13.html)
16.28169
95
0.653547
yue_Hant
0.441142
da864e1cd50d5dc08154203b1d1ac1e0e305fcb3
1,265
md
Markdown
TEDed/Titles_starting_A_to_O/Mysteries_of_vernacular_Zero_Jessica_Oreck_and_Rachael_Teel.md
gt-big-data/TEDVis
328a4c62e3a05c943b2a303817601aebf198c1aa
[ "MIT" ]
91
2018-01-24T12:54:48.000Z
2022-03-07T21:03:43.000Z
cleaned_teded_data/Titles_starting_A_to_O/Mysteries_of_vernacular_Zero_Jessica_Oreck_and_Rachael_Teel.md
nadaataiyab/TED-Talks-Nutrition-NLP
4d7e8c2155e12cb34ab8da993dee0700a6775ff9
[ "MIT" ]
null
null
null
cleaned_teded_data/Titles_starting_A_to_O/Mysteries_of_vernacular_Zero_Jessica_Oreck_and_Rachael_Teel.md
nadaataiyab/TED-Talks-Nutrition-NLP
4d7e8c2155e12cb34ab8da993dee0700a6775ff9
[ "MIT" ]
18
2018-01-24T13:18:51.000Z
2022-01-09T01:06:02.000Z
Mysteries of vernacular: Zero, a number that indicates an absence of units. In order to understand the genesis of the word zero, we must begin with the very origins of counting. The earliest known archaeological evidence of counting dates back approximately 37,000 years and is merely a series of notches in bone. It wasn&#39;t until around 2500 B.C. that the first written number system began to take form in Mesopotamia, using the units one, ten, and sixty. Fast forward another three millennia to seventh century India where mathematicians used a single dot to distinguish between numbers like 25, 205, and 250. Employed as both a placeholder and a number, this all-powerful dot eventually morphed into the symbol we know today. The word zero comes from the Arabic safira, whose literal translation is empty. Passing through Italian as zefiro, zero came into English in the seventeenth century. A second descendant of the Arabic root was adopted into English through old French as the word cipher. Originally sharing the meaning empty with zero, cipher later came to describe a code, as early codes often used complicated substitutions between letters and numbers. From this shared empty origin, zero continues to represent the number that represents nothing.
34.189189
54
0.812648
eng_Latn
0.999954
da866ce504f580e732ef38abb5e0aed0a6f8d7e1
505
md
Markdown
README.md
jeremyd/influxdb-subscription-cleaner
aa9bffc330c9a15715d3be217bb22c16ce90ad34
[ "0BSD" ]
5
2017-03-13T13:36:45.000Z
2020-04-13T19:08:37.000Z
README.md
jeremyd/influxdb-subscription-cleaner
aa9bffc330c9a15715d3be217bb22c16ce90ad34
[ "0BSD" ]
null
null
null
README.md
jeremyd/influxdb-subscription-cleaner
aa9bffc330c9a15715d3be217bb22c16ce90ad34
[ "0BSD" ]
3
2017-06-13T19:40:33.000Z
2018-04-04T14:52:57.000Z
# This handy script will DELETE ALL INFLUXDB SUBSCRIPTIONS! Workaround for https://github.com/influxdata/kapacitor/issues/870 Kapacitor will re-create automatically it's currently used subscriptions. ## Build (deps are vendored using glide) go get github.com/jeremyd/influxdb-subscription-cleaner ## Configure using Environment variables: ``` INFLUXDB_URL=http://myinflux:8086 INFLUXDB_DRYRUN=true (optional, output what we would have done) ``` ## Run ``` INFLUXDB_URL=http://localhost:8086 cleaner ```
29.705882
73
0.788119
eng_Latn
0.49252
da86a2d14613bad4b90848cb3f66f5a4a9886d4e
81
md
Markdown
README.md
larissamartinsss/Hello-world
59fde8d6e4c3e44ce8f3050c9e76b38845f9f2cf
[ "MIT" ]
null
null
null
README.md
larissamartinsss/Hello-world
59fde8d6e4c3e44ce8f3050c9e76b38845f9f2cf
[ "MIT" ]
null
null
null
README.md
larissamartinsss/Hello-world
59fde8d6e4c3e44ce8f3050c9e76b38845f9f2cf
[ "MIT" ]
null
null
null
# Hello world This is my first repository to gitHub! I'm learning it right now!
27
66
0.753086
eng_Latn
0.999767
da87236306afb0d58237e1285ac27ad6a9acb02c
3,651
md
Markdown
README.md
kadersaka/socket_io_common_client
e54ee3d3cdf52ad4d74614204da93112719744f4
[ "MIT" ]
6
2019-01-07T02:13:05.000Z
2019-08-22T01:48:16.000Z
README.md
kadersaka/socket_io_common_client
e54ee3d3cdf52ad4d74614204da93112719744f4
[ "MIT" ]
1
2019-07-07T17:45:27.000Z
2019-07-15T05:05:26.000Z
README.md
kadersaka/socket_io_common_client
e54ee3d3cdf52ad4d74614204da93112719744f4
[ "MIT" ]
3
2019-06-26T05:51:58.000Z
2020-06-04T13:39:56.000Z
# socket.io-client-dart Port of awesome JavaScript Node.js library - [Socket.io-client v2.0.1](https://github.com/socketio/socket.io-client) - in Dart ## Usage(For not browser platform) import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:socket_io_common_client/socket_io_client.dart' as IO; import 'package:logging/logging.dart'; class ReadSender implements StreamConsumer<List<int>> { IO.Socket socket; ReadSender(IO.Socket this.socket); @override Future addStream(Stream<List<int>> stream) { return stream.transform(utf8.decoder).forEach((content){ print(content); this.socket.emit("chat message",content); }).timeout(Duration(days: 30)); } @override Future close() { return null; } } main() async { Logger.root.level = Level.ALL; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); stdout.writeln('Type something'); List<String> cookie = null; IO.Socket socket = IO.io('https://sandbox.ssl2.duapps.com', { 'secure': false, 'path': '/socket.io', 'transports': ['polling'], 'request-header-processer': (requestHeader) { print("get request header " + requestHeader.toString()); if (cookie != null) { requestHeader.add('cookie', cookie); print("set cookie success"); }else{ print("set cookie faield"); } }, 'response-header-processer': (responseHeader) { print("get response header " + responseHeader.toString()); if ( responseHeader['set-cookie'] != null) { cookie = responseHeader['set-cookie']; print("receive cookie success"); } else { print("receive cookie failed"); } }, }); socket.on('connect', (_) { print('connect happened'); socket.emit('chat message', 'init'); }); socket.on('req-header-event', (data) { print("req-header-event " + data.toString()); }); socket.on('resp-header-event', (data) { print("resp-header-event " + data.toString()); }); socket.on('event', (data) => print("received " + data)); socket.on('disconnect', (_) => print('disconnect')); socket.on('fromServer', (_) => print(_)); await stdin.pipe(ReadSender(socket)); } ## Usage(For Browser) import 'package:socket_io_common_client/socket_io_browser_client.dart' as BrowserIO; import 'package:logging/logging.dart'; main() { Logger.root.level = Level.ALL; Logger.root.onRecord.listen((LogRecord rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); }); BrowserIO.Socket socket = BrowserIO.io('ws://localhost:3000', { 'transports': ['polling','websocket'], 'secure': false }); socket.on('connect', (_) { print('connect happened'); socket.emit('chat message', 'init'); }); socket.on('event', (data) => print("received "+data)); socket.on('disconnect', (_) => print('disconnect')); socket.on('fromServer', (_) => print(_)); } ## Notes to Contributors ## Notes to Users This tool is develope for my team which try to use flutter build an app. Main for internal use.Open source for other who want to use it. ## Thanks * Thanks [@rikulo](https://github.com/rikulo) for https://github.com/rikulo/socket.io-client-dart
30.425
126
0.576007
eng_Latn
0.357852
da8772f78675a948ad08f326a2f261d1e64201f0
741
md
Markdown
03.HelloRecordAction/README.md
truthiswill/extension-samples
6cdde6603ef574ab8698eadccbd6b8d7f85e6745
[ "MIT" ]
7
2017-06-12T19:13:53.000Z
2022-02-14T02:52:31.000Z
03.HelloRecordAction/README.md
truthiswill/extension-samples
6cdde6603ef574ab8698eadccbd6b8d7f85e6745
[ "MIT" ]
12
2017-10-13T14:30:12.000Z
2022-02-26T15:12:14.000Z
03.HelloRecordAction/README.md
truthiswill/extension-samples
6cdde6603ef574ab8698eadccbd6b8d7f85e6745
[ "MIT" ]
8
2018-11-30T01:53:03.000Z
2022-03-01T03:43:19.000Z
## Hello Record Action The hello world of custom record actions that shows the data passed from Bullhorn. ![Screenshot](../doc_files/hello-record-action.png) #### Prerequisites * [Host File Hack](../README.md#prerequisites) (One Time Only) #### Install Dependencies ```npm npm install ``` #### Run the App * Serve the app at `https://local.bullhornstaffing.com:4201/`: ```npm npm start ``` * Follow the steps for [Viewing the App Locally](../README.md#viewing-the-app). * Follow the steps for [Adding the Extension to Bullhorn](../README.md#adding-to-bullhorn). * Open a record in Bullhorn, select the Actions dropdown, then select _Your Custom Action_ and view your custom extension in a new Bullhorn tab.
23.903226
92
0.704453
eng_Latn
0.837754
da8984630fe7288c3f317063ec0382010c354a82
144
md
Markdown
CHANGELOG.md
Ashok-Varma/design_tools
52fd852d1ef74ece920df1f5d671207b800179eb
[ "MIT" ]
2
2021-07-11T13:19:21.000Z
2021-07-12T05:43:24.000Z
CHANGELOG.md
Ashok-Varma/design_tools
52fd852d1ef74ece920df1f5d671207b800179eb
[ "MIT" ]
null
null
null
CHANGELOG.md
Ashok-Varma/design_tools
52fd852d1ef74ece920df1f5d671207b800179eb
[ "MIT" ]
null
null
null
## 0.2.0 * Update to Decorators API (breaking change) * Update example and fix read me ## 0.1.0 * Support for keylines * Support for gridlines
18
44
0.715278
eng_Latn
0.866187
da8a951eecc1b474b5d048d3647b096c7c86bdbd
21
md
Markdown
README.md
JamesWoolfenden/terraform-oci-iamuser
ae1608e37e57076f4b047fae91a0f6eb31ea2174
[ "Apache-2.0" ]
null
null
null
README.md
JamesWoolfenden/terraform-oci-iamuser
ae1608e37e57076f4b047fae91a0f6eb31ea2174
[ "Apache-2.0" ]
null
null
null
README.md
JamesWoolfenden/terraform-oci-iamuser
ae1608e37e57076f4b047fae91a0f6eb31ea2174
[ "Apache-2.0" ]
1
2021-11-22T13:48:55.000Z
2021-11-22T13:48:55.000Z
# terraform-oci-user
10.5
20
0.761905
ita_Latn
0.160944
da8b4ac3229bfd5bb08fb4de3c1c965e95aab2cc
1,191
md
Markdown
_posts/2017-02-27-Enabling_Chromium_password_storage_in_i3.md
CRamsan/cramsan.github.io
fa563e06c00870d7edb28228210090caf62c2443
[ "CC-BY-4.0" ]
1
2016-09-17T01:07:56.000Z
2016-09-17T01:07:56.000Z
_posts/2017-02-27-Enabling_Chromium_password_storage_in_i3.md
CRamsan/cramsan.github.io
fa563e06c00870d7edb28228210090caf62c2443
[ "CC-BY-4.0" ]
11
2016-04-10T04:39:04.000Z
2021-12-29T03:17:48.000Z
_posts/2017-02-27-Enabling_Chromium_password_storage_in_i3.md
CRamsan/cramsan.github.io
fa563e06c00870d7edb28228210090caf62c2443
[ "CC-BY-4.0" ]
null
null
null
--- title: Enabling Chromium password storage in i3 date: 2017-02-27 00:00:00 Z categories: - linux tags: - chromium - i3 - linux layout: post --- Chroium may not use the correct password storage under linux if it fails to detect the desktop enviroment. In my case, when using i3 as my WM witout a desktop enviroment, Chromium was failing to unlock the keychain and a result all my creds would have been stored in plain text. To solve this problem you can use the `--password-store=<basic|gnome|kwallet>` paramenter. Since I use gnome-keyring, I will use --password-storage=gnome, to ensure Chromium stores all the creds in the gnome-keyring. Couple things that help me debug this issue was the information at [chrome://signin-internals]() and the flags `--enable-logging=stderr --v=1` to enable logging in Chromium. Also if you want to make the `--password-store` a permanent flag in Arch Linux, you can store it in chromium-flags.conf under $HOME/.config/. Sources: - chromium --help - [https://wiki.archlinux.org/index.php/Chromium/Tips_and_tricks]() - [https://www.chromium.org/for-testers/enable-logging]() - [https://productforums.google.com/forum/#!topic/chrome/POKH5enbwgU]()
51.782609
495
0.758186
eng_Latn
0.934438
da8b6133734339e0a87992c4cc89f4e46d647b14
33
md
Markdown
README.md
emanoelemuller/compartilhevida
de8470d4884c4fafdea70f45980b27ed4b42ca88
[ "Apache-2.0" ]
null
null
null
README.md
emanoelemuller/compartilhevida
de8470d4884c4fafdea70f45980b27ed4b42ca88
[ "Apache-2.0" ]
null
null
null
README.md
emanoelemuller/compartilhevida
de8470d4884c4fafdea70f45980b27ed4b42ca88
[ "Apache-2.0" ]
null
null
null
# compartilhevida trabalho final
11
17
0.848485
por_Latn
0.999897
da8b9fb67bb33f68f27fa9e347dba0d914cf8cb8
160
md
Markdown
README.md
aunthtoo/ICPCUniversityContestUCSPyay
03876eefc64f493e9b9463bcfdc44ef79df9f0d7
[ "MIT" ]
1
2019-10-26T09:47:34.000Z
2019-10-26T09:47:34.000Z
README.md
aunthtoo/ICPCUniversityContestUCSPyay
03876eefc64f493e9b9463bcfdc44ef79df9f0d7
[ "MIT" ]
null
null
null
README.md
aunthtoo/ICPCUniversityContestUCSPyay
03876eefc64f493e9b9463bcfdc44ef79df9f0d7
[ "MIT" ]
null
null
null
# ICPCUniversityContestUCSPyay Just upload Answers of Problem B and C of Uni contest of UCS Pyay. Still solving Problem A. Problem Questions in problem folder.
26.666667
54
0.81875
eng_Latn
0.768221
da8c06213deec2bafe03929c8fd1d8f14ff85fd4
2,286
md
Markdown
README.md
flaviostutz/openvpn-server
0603d721118f24b0f98d50c26584947023bed267
[ "MIT" ]
1
2020-03-17T14:31:53.000Z
2020-03-17T14:31:53.000Z
README.md
flaviostutz/openvpn-server
0603d721118f24b0f98d50c26584947023bed267
[ "MIT" ]
null
null
null
README.md
flaviostutz/openvpn-server
0603d721118f24b0f98d50c26584947023bed267
[ "MIT" ]
null
null
null
# openvpn-server [<img src="https://img.shields.io/docker/automated/flaviostutz/openvpn-server"/>](https://hub.docker.com/r/flaviostutz/openvpn-server) OpenVPN server container. Based on https://github.com/kylemanna/docker-openvpn ## Server Usage * Create docker-compose.yml file ```yml version: '3.5' services: openvpn-server: build: . environment: - PUBLIC_CONNECTION_URL=tcp://192.168.20.23:1194 ports: - 1194:1194 privileged: true volumes: - ./openvpn-etc:/etc/openvpn ``` * Remember to replace the IP above with your own public IP and PORT that allows access to the machine this container is running (NAT etc) * Create volume dir with ```mkdir ./openvpn-etc``` * Run ```docker-compose up -d``` * Copy OpenVPN client configuration from "./openvpn-etc/openvpn-client.ovpn" to the client machines ## Client Usage * Get openvpn-client.ovpn file from the server machine (pen drive, email etc) ### Windows * Download OpenVPN for Windows from https://openvpn.net/community-downloads/ * Click with the right button on installer and "Execute as Administrator" to begin installation * After installation, click on Start Menu "TAP-Windows -> Utilities -> Add New Tap..." * Locate icon on task bar and select "Import config file" and select the openvpn-client.ovpn file * After successful import, right click on task bar icon, select "openvpn-client" -> "Connect" * Now you should be connected to remote network ## ENVs * PUBLIC_CONNECTION_URL - Connection URL for connecting to this server. Used for generating the client configuration files at /etc/openvpn/openvpn-client.ovpn. Describe the URL in format [udp/tcp]://[your-public-ip]:[your-public-port]. Required. * PUSH_DEFAULT_GATEWAY - Whatever push an instruction to clients telling them to route all its traffic through this VPN connection of just routes defined by PUSH_CLIENT ROUTE. defaults to 'false' * PUSH_CLIENT_ROUTE - Routes defined here will be used by client machines to decide on which local traffic will be routed through the VPN, so that it arrives the server. defaults to '10.0.0.0 255.0.0.0' * PUSH_CLIENT_ROUTE2 - additional client route. defaults to '192.168.0.0 255.255.0.0' * PUSH_CLIENT_ROUTE3 - additional client route. defaults to 172.16.0.0 255.255.0.0
40.105263
245
0.748469
eng_Latn
0.933302
da8c25d4546d5ac137a53ada05dec80713362a39
11,035
md
Markdown
README.md
azavea/azavea-design-system
ae1eb2b0d2c84e7c681192d571dc9f14cc972576
[ "MIT" ]
2
2018-03-25T16:28:16.000Z
2018-11-22T10:37:52.000Z
README.md
azavea/azavea-branding-guide
ae1eb2b0d2c84e7c681192d571dc9f14cc972576
[ "MIT" ]
93
2018-03-20T18:57:32.000Z
2022-02-26T03:51:41.000Z
README.md
azavea/azavea-design-system
ae1eb2b0d2c84e7c681192d571dc9f14cc972576
[ "MIT" ]
2
2020-07-03T09:33:02.000Z
2021-02-16T21:55:57.000Z
# Azavea’s Branding Guide A guide that contains visual assets (logos, color palettes, logo do’s and don’ts, etc) and guiding principles (blog writing tips, accessibility tools, resources, etc). 1. [Developing locally](#developing-locally) 2. [Site Structure](#site-structure) 3. [Editing the site configuration](#editing-the-site-configuration) 4. [Editing Pages](#editing-pages) 5. [Data files](#data-files) 6. [Copy Paste Components](#copy-paste-components) ## Developing locally ## How it works Azavea’s branding guide is built using [Jekyll](https://jekyllrb.com/), a static site generator, and [Style Guide Guide](https://github.com/bradfrost/style-guide-guide), a style guide boilerplate. Jekyll uses a plugin called [Hawkins](https://github.com/awood/hawkins) (specified in the `Gemfile`) that integrates with [LiveReload](http://livereload.com) to watch for changes and rebuild static files. ## Requirements - Vagrant 2.0+ - VirtualBox 5.1+ ## Getting Started From your workstation, execute the following command to bring up a Vagrant virtual machine with all of the necessary dependencies installed: ```bash $ ./scripts/setup ``` Next, login to the Vagrant virtual machine and launch the Jekyll services: ```bash $ vagrant ssh $ ./scripts/server ``` If `server` isn't running, or to trigger a build of Jekyll's static website output, use: ```bash $ ./scripts/update ``` ## URLS In order to access the content served by Jekyll, and the LiveReload endpoint, use the following links: | Service | URL | |------------|--------------------------------------------------------| | Jekyll | [`http://localhost:4000`](http://localhost:4000) | ## Site Structure ### Data: `./_data/` Within the data folder are YAML files, holding structured data used by other components of the website. - `nav.yml` This includes navigation information that will be used for the next/prev buttons and primary navigation. ### Includes `./_includes/` Includes are `html` partials used in creating the structure of the pages. These rarely change. They all pull from .yml files or front matter. ### Layouts `./_layouts/` Layouts are the skeleton of every page. These rarely change. ### Pages `./_pages/` Pages make up the bulk of the site. See [Editing pages.](#editing-pages) ### Posts `./_posts/` Posts are being used for announcing releases of the Branding Guide. See [Announcing Releases.](#announcing-releases) ### Sass `./_sass/` We use `.scss` for styling. The SCSS follows rules set in Brad Frost's article [CSS Architecture for Design Systems.](http://bradfrost.com/blog/post/css-architecture-for-design-systems/) ### Site `./_site/` The compiled jekyll site which is served on Github Pages. Do not edit files within. ### Downloads `./downloads/` Contains assets that users of the guide can download from the site, such as .zip, .ai, .scss files. ### Images `./images/` Contains imagery used in the frontend of the site, such as logos, font examples, and dos and don’ts. ### Fonts `./fonts/` Contains fonts and font icons being used within the site. ### CSS `./css/` Should contain only one file: `main.scss` which includes every file from the above sass directory. ## Editing the site configuration ### Jekyll Config The `_config.yml` file contains a few very important site settings. This is a [YAML](https://github.com/Animosity/CraftIRC/wiki/Complete-idiot%27s-introduction-to-yaml) file. YAML keeps data stored as keys and values associated to those keys. For example: ```yaml key: value title: Azavea Branding Guide ``` When you make changes to this file, you must rebuild the entire website for the changes to take effect. If you're working locally, this means you will want to restart `./scripts/server`. The most common settings to change are the following: - SEO Description and Email #### SEO Description and Email The first section of the config controls the default SEO values used across the site (`title` and `description`). Additionally, there is an option to set the email address for the jobs website. *[email protected] is currently used* ## Editing Pages Main pages of the website can be located within the `_pages` directory of the repo. Notably, the some pages are in the root. | Setting | Description | Type | |-------------|-------------|-------------| | layout | Determines which layout from the `_layouts` directory this page will uses | string | yes| | permalink | The link users will use to navigate to the page | string | | body_class | A class applied to the body of the page to help with specific styles to the page. | string | | group | **Important** Subpages (e.g. any page within a subfolder of _pages/) must have their group (the name of the folder) specified for navigation purposes | string | | title | SEO Title used in the meta tag within the header | string | | status| Indicate how "complete" a page is. **in_progress**, **complete**, **deprecated** | string | ### Jekyll front matter We take advantage of [front matter](https://jekyllrb.com/docs/frontmatter/) for copy editing. Front matter is defined via two lines of three dashes each with YAML inside. ```yaml --- front-matter: true --- ``` Each page of our site uses front matter to inject copy into our html code. This makes it so you never have to dig through hundreds of lines of html to find the copy you want to change. In addition to copy we also define page variables such as the layout, permalink and seo overrides. Our front matter is typically laid out to follow the natural structure of our page. From top to bottom, the front-matter and actual computed page should line up. **tl;dr**: front-matter allows us to use the power of YAML in our html files. ### List of pages | Page | permalink | files | In `_pages` | |------------------------|----------------------------|--------------------------------|--------------------------------| | Homepage | `/` | `index.html` | no | | Welcome | `/welcome.html` | `welcome.md` | no | | Identity | `/identity` | `/identity/index.md` | yes | | - Company | `/identity/company` | `/identity/company.md` | yes | | - Fellowships | `/identity/fellowships/` | `/identity/fellowships.md` | yes | | - Products | `/identity/products/` | `/identity/products.md` | yes | | - Open Source | `/identity/open-source/` | `/identity/open-source.md` | yes | | - Community | `/identity/community/` | `/identity/community.md` | yes | | - Partners | `/identity/partners/` | `/identity/partners.md` | yes | | Communication | `/communication` | `/communication/index.md` | yes | | - Voice and Tone | `/communication/voice-and-tone` | `/communication/voice-and-tone.md` | yes | | - Blog | `/communication/blog` | `/communication/blog.md` | yes | | - Social Media | `/communication/social-media` | `/communication/social-media.md` | yes | | - Email Signature | `/communication/email-signature` | `/communication/email-signature.md` | yes | | Design | `/design` | `/design/index.md` | yes | | - Logo | `/design/logo` | `/design/logo.md` | yes | | - Colors | `/design/colors` | `/design/colors.md` | yes | | - Typography | `/design/typography` | `/design/typography.md` | yes | | Resources | `/resources.html` | `resources.md` | no | | Release History | `/release-history.html` | `release-history.md` | no | ### Editing pages - **Homepage** Most copy edits will be made for the blocks that enter into specific parts of the site: ``` {% include block.html title = "Repeat after me: ah-zay-vee-ah" description = "Learn about what makes us Azavea, from our mission to our partners to the community groups we support." link-title = "Identity" link = "/identity/" %} ``` - **Welcome**, **Communications/**, **Design/**, **Identity/**, **Resources** Card copy (appears on Overview pages) and introductory header copy both pull from the `description` field in the front matter. The name and status of the page are also edited in the front matter. Most else can be edited outside of the front matter and written as markdown. - **Release History** All changes should be made to the front matter. This page pulls new posts in `_posts` in reverse date order. ## Data files ### Nav.yml The `nav.yml` file sets up the footer previous/next navigation as well as the primary navigation. **Entries with no children should look like the following:** ```yaml - title: "Page Title" href: "/permalink" - title: "Welcome" href: "/welcome" ... ``` **Entries with children should look like the following:** ```yaml - title: "Identity" href: "/identity/" subpages: - title: "Company" href: /identity/company group: "Identity" ... ``` ### Copy paste components Copy paste components are built using the built-in `_includes` functionality of Jekyll. More information about `_includes` [here.](https://jekyllrb.com/docs/includes/) Most copy/paste components are very simple to set up. This is what one looks like in a markdown page: ``` {% include copy-paste.html description = "Copy this text" %} ``` Including links, line breaks or Markdown elements in your copy/paste component is a little more complicated. First you need to insert your Markdown/HTML block in a [capture:](https://shopify.github.io/liquid/tags/variable/) ``` {% capture your_markdown_text %} [[email protected]](mailto:[email protected]) {% endcapture %} ``` Now we have a variable to work with for our copy/paste. The next step is to properly convert the variable’s Markdown so we can pass it to our copy/paste component. We can simply [assign](https://shopify.github.io/liquid/tags/variable/) the same variable to a markdownified version of itself: ``` {% assign your_markdown_text = your_markdown_text | markdownify %} ``` Finally, you pass the variable that you’ve created above into the description: ``` {% include copy-paste.html description = your_markdown_text %} ```
48.612335
445
0.629724
eng_Latn
0.979225
da8c8297b823d366b6d937dd4392b799302f2f8d
28
md
Markdown
README.md
quants-and-friends/open-advisor
daf8158ee5daf2c0e69444c26e033f3c92600eb9
[ "Apache-2.0" ]
null
null
null
README.md
quants-and-friends/open-advisor
daf8158ee5daf2c0e69444c26e033f3c92600eb9
[ "Apache-2.0" ]
null
null
null
README.md
quants-and-friends/open-advisor
daf8158ee5daf2c0e69444c26e033f3c92600eb9
[ "Apache-2.0" ]
null
null
null
# open-advisor Robo advisor
9.333333
14
0.785714
azb_Arab
0.996928