git checkout master
git pull
git checkout -b feature/my-work
# edit your files
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
// would like to remove the last object with duplicate value 'bob' | |
let objects = [{author: 'bob'}, {author: 'shazza'}, {author: 'softy mc dad bod'}, {author: 'cap'}, {author: 'bob'} ] |
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
class FavouriteIcon extends Component { | |
constructor(props) { | |
super(props); | |
FavouriteIcon.defaultProps = { | |
style: { | |
position: 'relative', | |
top: 1, | |
color: 'grey', | |
fontSize: '26px' | |
} |
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 React from 'react'; | |
import {renderToString} from 'react-dom/server'; | |
import {StaticRouter} from 'react-router-dom'; | |
import {createStore} from 'redux'; | |
import {Provider} | |
import 'react-redux'; | |
import reducer from 'reducer.js'; | |
import App from 'App.js'; |
I hereby claim:
- I am blackfry on github.
- I am blackfry (https://keybase.io/blackfry) on keybase.
- I have a public key ASAMTlHS0KiWfsYXPWCGo8RQsnbH90EPOmOqtD-TaX6mvQo
To claim this, I am signing this object:
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://www.hackerrank.com/challenges/filter-elements/problem | |
------ | |
Given a list of N integers A = [a1, a2, ..., aN], you have to | |
find those integers which are repeated at least K times. | |
In case no such element exists you have to print -1. | |
If there are multiple elements in A which are repeated at least K times, | |
then print these elements ordered by their first occurrence in the list. | |
*/ |
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
{ | |
"python.pythonPath": "/Users/markdickie/.pyenv/versions/data-service/bin/python", | |
"jest.showCoverageOnLoad": true, | |
"files.exclude": { | |
"out": true, | |
"node_modules/jest-editor-support/src": false, | |
"coverage/": true | |
}, | |
"search.exclude": { | |
"out": true, |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach", |
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
module.exports = { | |
verbose: true, | |
collectCoverage: true, | |
collectCoverageFrom: ['**/*.{js,jsx}', '!**/node_modules/**'] | |
}; |
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
[ | |
{ | |
"key": "shift+z", | |
"command": "type", | |
"args": { | |
"text": "console.log()" | |
}, | |
"when": "editorTextFocus" | |
} | |
] |
OlderNewer