Skip to content

Instantly share code, notes, and snippets.

View comdiv's full-sized avatar

Fagim Sadykov comdiv

  • Media Technology LTD
  • Yekaterinburg
View GitHub Profile
@comdiv
comdiv / AnyHost.html
Last active February 11, 2024 22:27
Module and Mocha-test template for requirejs/ AMD module testing both for in-browser and for node js in single test fixture
<html>
<head>
<meta charset="utf-8">
<title>AnyHost browser test</title>
<link rel="stylesheet" href="../Dependency/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="require.js"></script>
<script src="mocha.js"></script>
#this command prepare list of lost/unreachable commits and print those Hash and comment
#suggested by wise answer in http://stackoverflow.com/questions/16793637/recover-deleted-branch-git
git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline