- reactでコンポーネントを一回画像にしてそのままPDF生成してダウンロードする機能
- react-pdfは使わない
- コンポーネントを画像にしてその画像をpdfとして出力する方法
| // modified based on: | |
| // - https://lowrey.me/scraping-a-book-from-kindle-read-amazon-com/ | |
| console.clear(); | |
| (function() { | |
| var hashes = {}; | |
| var all = ""; | |
| function hashString(str) { | |
| let hash = 0; |
| import time | |
| from datetime import datetime | |
| from textwrap import wrap | |
| import requests | |
| from requests_html import HTMLSession | |
| import paramiko | |
| import schedule | |
| def get_traffic(road): |
Upcoming flags to enable link capturing and other PWA features. Enable these flags by copying and pasting the following, then searching for the below chrome://flags/
Enable full desktop integration:
chrome://flags/#enable-desktop-pwas
Capture URLs in their scope, such as twitter URLs for the Twitter PWA:
chrome://flags/#enable-desktop-pwas-link-capturing
chrome://flags/#enable-desktop-pwas-stay-in-window
Get a pop-up that offers to allow the PWA to open certain URLs:
| // https://learnoutlive.com/german-english-dictionary-kindle-cloud-reader/ | |
| javascript: (function() { | |
| /* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */ | |
| var w = null; | |
| var kDoc = null; | |
| var kObj = null; | |
| if (typeof window.KindleReaderContextMenu !== 'undefined') { | |
| w = window; |
This is a simple bookmarklet that captures any webpage and save as png image using HTML5 technologies. Under the hood it uses HTML2Canvas to capture the webpage to canvas, then we convert the content inside this canvas element to image file.
You may copy the text below and save as bookmark. `javascript:!function()%7Bfunction%20e()%7Bthis&&this.parentNode&&this.parentNode.removeChild(this),html2canvas(document.body).then(function(e)%7Breturn%20new%20Promise(function(t)%7Be.toBlob(t)%7D)%7D).then(function(e)%7Bvar%20t=document.createElement(%22a%22);return%20t.href=URL.createObjectURL(e),t.download=document.title.replace(/%5B/%5C%7C%5C%5C%60~!@#%5C$%25%5C%5E&%5C*%5C+%5C-='%22%5C,%5C.:;%5D+/g,%22%22)+%22_%22+(new%20Date).getTime()+%22.png%22,t.click(),new%20Promise(function(e)%7BsetTimeout(10,e,t)%7D)%7D).then(function(e)%7B0===e.href.indexOf(%22blob:%22)&&(URL.revokeObjectURL(e.href),e.href=%22###%22)%7D).catch(function(e)%7Bconsole.error(e)
const assert = require('assert')
const BLUEBIRD = require('bluebird')
const nameAsync1 = async (name) => name
const nameAsync2 = (name) => Promise.resolve(name)
const nameAsync3 = (name) => BLUEBIRD.resolve(name)
const nameSync = (name) => name
const isPromise1 = (value) => Promise.resolve(value) === valuesomething like this will add a great regularly updated malware file for it to use. More security and privacy to you! Specifically, this uses https://github.com/StevenBlack/hosts Choose one of the Raw Hosts file from there to use.
To setup DNSMasq, follow the below ...
wget -O- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' > /etc/dnsmasq.d/malware.conf`
| const hasLocalStorage = (function(){ | |
| try { | |
| localStorage.setItem('mod', 'mod'); | |
| localStorage.removeItem('mod'); | |
| return true; | |
| } catch(e) { | |
| return false; | |
| } | |
| })() |
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
