git clone git@github.com: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
""" | |
The default tf.Print op goes to STDERR | |
Use the function below to direct the output to stdout instead | |
Usage: | |
> x=tf.ones([1, 2]) | |
> y=tf.zeros([1, 3]) | |
> p = x*x | |
> p = tf_print(p, [x, y], "hello") | |
> p.eval() | |
hello [[ 0. 0.]] |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
package scripts.ddl | |
import com.liferay.portal.kernel.dao.orm.QueryUtil | |
import com.liferay.portal.kernel.search.* | |
import com.liferay.portal.kernel.util.GetterUtil | |
import com.liferay.portal.kernel.util.LocaleUtil | |
import com.liferay.portal.service.GroupLocalServiceUtil | |
import com.liferay.portal.util.PortalUtil | |
import com.liferay.portlet.dynamicdatalists.model.DDLRecord | |
import com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalServiceUtil |
A git choose-your-own-adventure!
This document is an attempt to be a fairly comprehensive guide to recovering from what you did not mean to do when using git. It isn't that git is so complicated that you need a large document to take care or your particular problem, it is more that the set of things that you might have done is so large that different techniques are needed depending on exactly what you have done and what you want to have happen.