This file contains hidden or 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
#!/usr/bin/env node | |
/** | |
* Node.js script as patch method for vscode-react extension of 2.2.0 version. | |
* | |
* https://github.com/xabikos/vscode-react | |
* https://github.com/tc39/proposal-class-public-fields | |
*/ | |
const fs = require('fs'); |
This file contains hidden or 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
/** | |
* Usage in React Native component example | |
*/ | |
import React, { Component } from 'react'; | |
import { NavigationActions } from 'react-navigation'; | |
import Navigator from 'app/navigators/RootNavigator'; | |
import createAuth from './library/auth'; | |
export default class Application extends Component { | |
navigator = null; |
This file contains hidden or 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
window.open('https://app.paytogo.cz/podnik/cisterna', 'PayToGo', 'toolbar=no, menubar=no, width=420, height=600') |
This file contains hidden or 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
$ rm ./node_modules/typescript/lib/lib.es2015.iterable.d.ts | |
$ touch ./node_modules/typescript/lib/lib.es2015.iterable.d.ts | |
$ rm ./node_modules/typescript/lib/lib.es2015.generator.d.ts | |
$ touch ./node_modules/typescript/lib/lib.es2015.generator.d.ts | |
$ npm start |
This file contains hidden or 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 download(filename, text, mime = 'image/svg+xml', ext = 'svg') { | |
var element = document.createElement('a'); | |
element.setAttribute('href', `data:${mime};charset=utf-8, ${encodeURIComponent(text)}`); | |
element.setAttribute('download', `${filename}.${ext}`); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); |
OlderNewer