Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
| import * as React from 'react'; | |
| import { mount } from 'enzyme'; | |
| import { serialize, deserialize } from './react-seritalize'; | |
| class CustomComponent extends React.Component<any, any> { | |
| render () { | |
| return <div className="CustomComponent" >{this.props.children}</div> | |
| } | |
| } |
| /** For use in node.js environments. | |
| * Requires npm packages: | |
| * "@types/json-stable-stringify": "^1.0.29" | |
| * "json-stable-stringify": "^1.0.1" | |
| * "@types/uuid": "^2.0.29" | |
| * "uuid": "^3.0.1" | |
| */ | |
| import * as uuid from 'uuid'; | |
| import * as crypto from 'crypto'; |
| import os | |
| import struct | |
| import sys | |
| INTRANGE = 2 ** 15 | |
| REGCOUNT = 8 | |
| class Arch: | |
| def __init__(self): | |
| self.registers = [0] * REGCOUNT |
| /** | |
| * Building LL(1) parsing table from First and Follow sets. | |
| * | |
| * by Dmitry Soshnikov <dmitry.soshnikov@gmail.com> | |
| * MIT Style License | |
| * | |
| * This diff is a continuation of what we started in the previous two diffs: | |
| * | |
| * Dependencies: | |
| * |
| var a = 123, b = 'hello'; | |
| function test(x, y) { | |
| console.log(this); | |
| return a + x + b + y; | |
| } | |
| // Serialize a function *with its captured environment* | |
| var sf = serialize(test, { a: a, b: b }); | |
| // Deserialize with captured environment |
Update 2022: git checkout -p <other-branch> is basically a shortcut for all this.
FYI This was written in 2010, though I guess people still find it useful at least as of 2021. I haven't had to do it ever again, so if it goes out of date I probably won't know.
Example: You have a branch refactor that is quite different from master. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.