Pretty formatter with relative time stamp, inspired by moreutils ts but with less noise, print only changes :)
Save file
chmod +x ts.js
| // Search table for, caprute rendered value and recognize using teseract. Pretty slow but works. | |
| // https://habr.com/ru/news/t/578832/comments/#comment_23499710 | |
| // Run script in dev console for this website: http://www.izbirkom.ru/region/region/karachaev-cherkess?action=show&root=92000011&tvd=4094002721588&vrn=100100225883172®ion=9&global=&sub_region=9&prver=0&pronetvd=null&vibid=4094002721588&type=242 | |
| (async ()=> { | |
| const { default: capture } = await import( 'https://esm.sh/html2canvas' ) | |
| const { default: { recognize } } = await import( 'https://esm.sh/tesseract.js' ) | |
| const rows = document.querySelectorAll('.table-responsive tr') | |
| <?xml version="1.0"?> | |
| <VAST version="3.0"> | |
| <Ad> | |
| <InLine> | |
| <AdSystem>Example Ad system</AdSystem> | |
| <AdTitle>Example title</AdTitle> | |
| <Description>KayzenRTB</Description><Impression><![CDATA[http://imp.url]]></Impression> | |
| <Creatives> | |
| <Creative> | |
| <Linear> |
| <VAST version="2.0"> | |
| <Ad> | |
| <Wrapper> | |
| <VASTAdTagURI><![CDATA[ https://ad.doubleclick.net/ddm/pfadx/N624.2192503PERMODOGMBH/B24335141.275967726;sz=0x0;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;dcmt=text/xml;dc_sdk_apis=[APIFRAMEWORKS];dc_omid_p=[OMIDPARTNER] ]]></VASTAdTagURI> | |
| </Wrapper> | |
| </Ad> | |
| </VAST> |
| xscreensaver & | |
| kbdd | |
| sleep 10 | |
| setxkbmap -layout "us,ru(winkeys),ua(winkeys)" -option grp:menu_toggle,grp_led:scroll |
| upstream my-web-app-here { | |
| server 127.0.0.1:8080; | |
| } | |
| server { | |
| listen 80; | |
| listen 443 ssl http2; | |
| listen [::]:80; | |
| listen [::]:443 ssl http2; |
| import { connect, FormikContext, getIn } from 'formik'; | |
| import * as React from 'react'; | |
| import { useEffectWhenCountIncremented } from './reactHooks'; | |
| import { PageContext } from './context'; | |
| const FormikGotoErrorOnSubmitEffectFn: React.FunctionComponent<{ | |
| formik?: FormikContext<any>; | |
| }> = ({ formik }) => { |
| var $state = angular.element(document).injector().get('$state'); | |
| var go = $state.go; | |
| $state.go = function(...x) { | |
| console.trace('!! state.go(', angular.copy(x), ')'); return go.apply($state, x) | |
| }; |
| #!/bin/bash | |
| # | |
| # Update baseline image from "actual" directory if test is failed. | |
| # | |
| # This script parse stdin for "Expected false to be true, 'screenshot " message | |
| # and copies image file from "actual" to "baseline" directory | |
| # | |
| # Example of usage | |
| # e2e/foo.spec.js: | |
| # it('matches screenshots', async () => { |
| String.prototype.template = function (object) { | |
| // Andrea Giammarchi - WTFPL License | |
| var | |
| stringify = JSON.stringify, | |
| re = /\$\{(.*?)\}/g, | |
| evaluate = [], | |
| i = 0, | |
| m | |
| ; | |
| while (m = re.exec(this)) { |