An alphabetical list of characters from The Simpsons
- Apu Nahasapeemapetilon
- Bart Simpson
- Carl Carlson
- Duffman
- Edna Krabappel
- Fat Tony
| interface Props { | |
| value: number; | |
| onChange: (value: number) => void; | |
| widthPx?: number; | |
| inline?: boolean; | |
| disabled?: boolean; | |
| } | |
| interface State { | |
| valueAsString: string; |
| function isDate(obj: any): obj is Date { | |
| return typeof obj === 'object' && 'toISOString' in obj; | |
| } | |
| function isString(obj: any): obj is string { | |
| return typeof obj === 'string'; | |
| } | |
| interface JWT { | |
| id: string; |
| type Opt = { id: string, name: string } | |
| interface MultiProps { | |
| isMultiple: true; | |
| options: Opt[]; | |
| id: string[]; | |
| onChange: (id: string[]) => void; | |
| } | |
| interface SingleProps { |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "status": "ok", | |
| "source": "the-new-york-times", | |
| "sortBy": "top", | |
| "articles": [{ | |
| "author": "Michael M. Grynbaum", | |
| "title": "Wall Street Journal Editor Admonishes Reporters Over Trump Coverage", | |
| "description": "In internal emails, Gerard Baker described the draft of an article about the president’s rally in Phoenix as “commentary dressed up as news reporting.”", | |
| "url": "https://www.nytimes.com/2017/08/23/business/media/wall-street-journal-editor-admonishes-reporters-over-trump-coverage.html", | |
| "urlToImage": "https://static01.nyt.com/images/2017/08/24/business/24wsj1/24wsj1-facebookJumbo.jpg", |
| <system.web> | |
| <httpCookies requireSSL="true" /> | |
| </system.web> | |
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> | |
| <add name="Strict-Transport-Security" value="max-age=31536000"/> | |
| <add name="X-XSS-Protection" value="1; mode=block"/> | |
| <add name="X-Content-Type-Options" value="nosniff"/> |
| ## Set security headers per https://observatory.mozilla.org | |
| Header set Strict-Transport-Security "max-age=15768000" env=HTTPS | |
| Header set Content-Security-Policy "frame-ancestors 'self'" | |
| Header set X-Frame-Options "SAMEORIGIN" | |
| Header set X-XSS-Protection "1; mode=block" | |
| Header set X-Content-Type-Options "nosniff" | |
| ## Add some rewrite rules per https://stackoverflow.com/a/13997498/266535 | |
| RewriteEngine On |
| function requirePromise(modName, fnName) { | |
| return require('util').promisify(require(modName)[fnName]); | |
| } | |
| const stat = requirePromise('fs', 'stat'); | |
| const writeFile = requirePromise('fs', 'writeFile'); | |
| const appendFile = requirePromise('fs', 'appendFile'); |
| const promisify = require('util').promisify; | |
| const fs = require('fs'); | |
| const stat = promisify(fs.stat); | |
| const writeFile = promisify(fs.writeFile); | |
| const appendFile = promisify(fs.appendFile); | |
| async function exists(f) { | |
| try { | |
| const stats = await stat(f); | |
| return true; |