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
[ | |
{ | |
"value": "001", | |
"label": "Banco do Brasil S.A." | |
}, | |
{ | |
"value": "003", | |
"label": "Banco da Amazônia S.A." | |
}, | |
{ |
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
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
import styled from 'styled-components' | |
const ${NAME}Wrapper = styled.div`` | |
class ${NAME}Component extends Component { | |
static propTypes = { | |
children: PropTypes.any, | |
} |
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
import { Form } from 'antd' | |
import { FormInput } from './antd-masked-input' | |
export default () => ( | |
<Form> | |
<FormInput | |
form={this.props.form} // antd form | |
mask={'111.111.111-11'} | |
placeholder="" | |
label={''} |
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
# Will show all the driver packages which apply to your current system. You can then | |
# sudo ubuntu-drivers list | |
# to install all the packages you need, or you can do: | |
sudo ubuntu-drivers autoinstall | |
# to show you which devices need drivers, and their corresponding package names. | |
# sudo ubuntu-drivers devices | |
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
// https://stackoverflow.com/a/40958850 | |
function hashStr(str) { | |
let hash = 0, i, chr, len; | |
if (str.length === 0) return hash; | |
for (i = 0, len = str.length; i < len; i++) { | |
chr = str.charCodeAt(i); | |
hash = ((hash << 5) - hash) + chr; | |
hash |= 0; // Convert to 32bit integer | |
} | |
return hash; |
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
//... | |
remove_filter('template_redirect', 'redirect_canonical'); |
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
/** | |
* Register and cache promises for SSR | |
*/ | |
import React from 'react'; | |
// @ts-ignore | |
import EventEmitter from 'events'; | |
// @ts-ignore | |
import * as http from 'http'; | |
import { captureError } from './capture'; |
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
/** | |
go to https://open.spotify.com/collection/playlists | |
and ast this in the browser console | |
**/ | |
var observer = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutationRecord) { | |
window.onChangeProgressBar( | |
+mutationRecord.target.style.transform.split('.')[0].replace(/\D/gim, '') | |
); |
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
yarn policies set-version 1.18 | |
# https://github.com/yarnpkg/yarn/issues/7584#issuecomment-538048817 |
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
git log master..HEAD --oneline | tail -1 |