Skip to content

Instantly share code, notes, and snippets.

class AccountPage extends Component {
submitHandler(data) {
var self = this;
this.props.item.title = "New Title";
this.props.item.save();
}
render() {
...
}
@morgante
morgante / README.md
Last active March 10, 2018 06:25
Git command for adding Google Cloud Source Repos as a remote

Even though the process of adding cloud source repos as remotes is quite easy, I frequently forget it.

Just place git-google in your $PATH as an executable to get a handy git google command which adds a remote for you. Use it like so to add a repo from the current gcloud project:

git google $REPO_NAME
ptterns:
- name: add_trade_terminal
level: error
body: |
`let $theme = $widget.getTheme();` => `let $theme=$widget.getTheme();var margin=.1,tmode="cvr",dd=$widget.createDropdown({title:"Margin",tooltip:"How Much Margin To Use Per Trade",items:[{title:"5",onSelect:()=>{margin=.05,console.log("5"),dd.innerHTML="5"}},{title:"10",onSelect:()=>{margin=.1,console.log("10")}},{title:"15",onSelect:()=>{margin=.15,console.log("15")}},{title:"20",onSelect:()=>{margin=.2,console.log("20")}},{title:"30",onSelect:()=>{margin=.3,console.log("30")}},{title:"50",onSelect:()=>{margin=.5,console.log("50")}},{title:"70",onSelect:()=>{margin=.7,console.log("70")}},{title:"ZH",onSelect:()=>{tmode="zerohero",console.log(tmode)}},{title:"CO",onSelect:()=>{tmode="cvr",console.log(tmode)}}],icon:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none" stroke="currentColor"><circle cx="10" cy="10" r="2.5"/><circle cx="18" cy="18" r="2.5"/><path stroke-linecap="square" d="M17.5 7.5l-7 13"/></g></sv