I hereby claim:
- I am jketcham on github.
- I am jket (https://keybase.io/jket) on keybase.
- I have a public key ASAi8gCBSQvkiDqlPPuPsB1_FaQX3s_stsxxg0V5MydeMgo
To claim this, I am signing this object:
| db.collection.find({}).snapshot().forEach(function(item) { | |
| for (i = 0; i < item.array.length; i++) { | |
| item.array[i].newProp = item.array[i].oldProp; | |
| delete item.array[i].oldProp; | |
| } | |
| db.collection.update({ | |
| _id: item._id | |
| }, item); | |
| }) |
| const React = require('react'); | |
| class OfflineIndicator extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.handleOffline = this.handleOffline.bind(this); | |
| this.state = { offline: false }; | |
| } |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Node >= v2 required | |
| const util = require('util'); | |
| const TOP = 0; | |
| const RIGHT = 1; | |
| const BOTTOM = 2; | |
| const LEFT = 3; | |
| const SIDES = [TOP, RIGHT, BOTTOM, LEFT]; |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| name: Build, push, and deploy | |
| runs-on: ubuntu-latest | |
| steps: |
| # source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
| # First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
| git clone git://server.com/my-repo1.git | |
| # After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
| git filter-branch --subdirectory-filter your_dir -- -- all | |
| # This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
| // ASCII character codes | |
| const ZERO_CHAR = 48; | |
| const ONE_CHAR = 49; | |
| const TWO_CHAR = 50; | |
| const THREE_CHAR = 51; | |
| const FOUR_CHAR = 52; | |
| const FIVE_CHAR = 53; | |
| const SIX_CHAR = 54; | |
| const SEVEN_CHAR = 55; | |
| const EIGHT_CHAR = 56; |