man - format and display the on-line manual pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function exceptionHandler(){ | |
const error = Error; | |
const nullMessage = "[$rootScope:inprog] null already in progress"; | |
function exception(message){ | |
if(message.indexOf(nullMessage) === 0){ | |
const $rootScope = exceptionHandler.$rootScope; | |
if($rootScope) $rootScope.$$phase = null; | |
const exception = new error(nullMessage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const placeholder = (function(){ | |
const cache = {}; | |
const canvas = document.createElement(`canvas`); | |
const type = (function(){ | |
canvas.width = canvas.height = 100; | |
const context = canvas.getContext(`2d`); | |
context.rect(0, 0, 100, 100); | |
const webp = { | |
type: `image/webp`, | |
quality: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const forEach = Array.prototype.forEach; | |
module.exports = class TokenList { | |
constructor(){ | |
this.tokens = {}; | |
this.add.apply(this, arguments); | |
} | |
add(){ | |
const { tokens } = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sentry = require('./sentry.js').moduleName; | |
angular.module('app', ['your', 'dependencies', sentry]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useCallback } from 'react'; | |
function useStateRef(initialValue) { | |
const [ref, setState] = useState(initialValue) | |
const callback = useCallback( | |
ref => { | |
setState(ref) | |
}, | |
[ref, setState] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const file = fs.readFileSync('./a_example.in', 'utf8') | |
// const file = fs.readFileSync('./b_small.in', 'utf8') | |
function cloneArray(arr) { | |
return arr.slice(0) | |
} | |
function cloneMatrix(arr) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PromiseType<T> = T extends Promise<infer U> ? U : T | |
// const myPromise = new Promise<string>(() => {}) | |
// type MyPromiseType = PromiseType<typeof myPromise> // string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://apps.apple.com/app/macos-catalina/id1466841314?mt=12 | |
https://apps.apple.com/app/macos-mojave/id1398502828?ls=1&mt=12 | |
https://apps.apple.com/app/macos-high-sierra/id1246284741?ls=1&mt=12 | |
https://apps.apple.com/app/macos-sierra/id1127487414?ls=1&mt=12 | |
https://apps.apple.com/app/os-x-el-capitan/id1147835434?mt=12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-devtools/app.html b/node_modules/react-devtools/app.html | |
index 75fc137..bfc3c1b 100644 | |
--- a/node_modules/react-devtools/app.html | |
+++ b/node_modules/react-devtools/app.html | |
@@ -12,7 +12,7 @@ | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
- background-color: #fff; | |
+ background-color: #000; |
OlderNewer