One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| /** | |
| * @param {number[]} nums | |
| * @param {number} target | |
| * @return {number} | |
| */ | |
| var search = function(nums, target) { | |
| let start = 0; | |
| let end = nums.length -1; | |
| while(start <= end) { |
| var ListNode = function (val, next) { | |
| this.val = val === undefined ? 0 : val; | |
| this.next = !next ? null : next; | |
| }; | |
| var MyLinkedList = function () { | |
| this.head = null; | |
| }; | |
| /** |
| If your pods are showing ErrImagePull, ErrImageNeverPull, or ImagePullBackOff errors after running kubectl apply, the simplest solution is to provide an imagePullPolicy to the pod. | |
| First, run kubectl delete -f infra/k8s/ | |
| Then, update your pod manifest: | |
| spec: | |
| containers: | |
| - name: posts | |
| image: cygnet/posts:0.0.1 |
| { | |
| "workbench.iconTheme": "material-icon-theme", | |
| "editor.fontFamily": "Jetbrains Mono", | |
| "editor.fontLigatures": true, | |
| "editor.fontWeight": "650", | |
| "editor.fontSize":14, | |
| "debug.console.fontSize": 14, | |
| // Editor Behavior | |
| "editor.suggest.localityBonus": true, |
| import requests | |
| import sys | |
| import json | |
| def waybackurls(host, with_subs): | |
| if with_subs: | |
| url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host | |
| else: | |
| url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host |
| import requests | |
| import re | |
| import sys | |
| from multiprocessing.dummy import Pool | |
| def robots(host): | |
| r = requests.get( | |
| 'https://web.archive.org/cdx/search/cdx\ | |
| ?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host) |
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
| Filter | Description | Example |
|---|---|---|
| allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
| intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
| inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
| allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
| intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |