git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| "use strict" | |
| class EventSystem{ | |
| constructor() { | |
| this.queue = {}; | |
| this.maxNamespaceSize = 50; | |
| } |
| // 实现 | |
| const queuedObservers = new Set(); | |
| const observe = fn => queuedObservers.add(fn); | |
| const observable = obj => new Proxy(obj, {set}); | |
| function set(target, key, value, receiver) { | |
| const result = Reflect.set(target, key, value, receiver); | |
| queuedObservers.forEach(observer => observer()); | |
| return result; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <body> | |
| <h1>输入经纬度值</h1> | |
| <br><p>latitude</p> | |
| <input id="latitude"> </input> | |
| <br> | |
| <p>longitude</p> | |
| <input id="longitude"> </input> | |
| <br> | |
| <button class="btn btn-primary" onclick="searchIt()"> Enter</button> |
Show random quotes using "Random Famous Quotes" API (https://www.mashape.com/andruxnet/random-famous-quotes)
Forked from Gabriel Nunes's Pen Random Quote Machine.
Forked from Free Code Camp's Pen Random Quote Machine.
Forked from Free Code Camp's Pen FreeCodeCamp : Random Quote Machine.
| <link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'> | |
| <body id="bodypart"> | |
| <!-- the head of page start --> | |
| <div class="row" id="head"> | |
| <table border="1" width="95%" height="60" cellpadding="0" cellspacing="0" align="center"> <tr> <td id="signature" >zhang olve</td> <td>about</td> <td>protfolio</td> <td>comment</td></tr> </table> | |
| #用正则简单过滤html的<>标签 | |
| import re | |
| str = "<img /><a>srcd</a>hello</br><br/>" | |
| str = re.sub(r'</?\w+[^>]*>','',str) | |
| print str |