Skip to content

Instantly share code, notes, and snippets.

View entrptaher's full-sized avatar
🎯
Focusing

Md. Abu Taher entrptaher

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
function didScroll(e) {
let scrolled;
try {
scrolled = (e.event.type === "scroll" && e.currentPosition === "inside" && e.previousPosition === "below");
} catch (e) {
console.log('having problem grabbing data')
}
return scrolled;
}
@entrptaher
entrptaher / config
Last active October 27, 2017 06:58
Hyper Snazzy for terminator linux terminal
[global_config]
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
profile = hyper-snazzy
type = Terminal
[[[window0]]]
parent = ""
@entrptaher
entrptaher / index.html
Last active November 12, 2017 20:09
reverse vs normal #jsbench #jsperf (http://jsbench.github.io/#edf6f99af0f26dda518f14fda0a7d388) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>reverse vs normal #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@entrptaher
entrptaher / problem_template.md
Last active November 18, 2017 08:30
Fork the snippet below and use it to create issues. This will help debugging the issue in a better way.

Steps to reproduce

Tell us about your environment:

  • Software/Script version:
  • Platform / OS version:
  • URLs (if applicable):

What steps will reproduce the problem?

If you mistakenly pushed node_modules and want to remove it from repo along with the history but want to keep other files intact, then you can use the following.
It'll search for node_modules directory and remove it.
```
git filter-branch --force --index-filter \
'git rm -r --cached --ignore-unmatch node_modules' \
--prune-empty --tag-name-filter cat -- --all
```
@entrptaher
entrptaher / index.html
Last active April 6, 2021 08:57
Imperative vs Declarative #jsbench #jsperf (http://jsbench.github.io/#c3e3b0053eaf78e239f0d0f756d90517) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Imperative vs Declarative #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test Maps</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@entrptaher
entrptaher / index.html
Last active December 5, 2017 03:27
Math Min/Max vs Loop #jsbench #jsperf (http://jsbench.github.io/#84b054feec741bf3be52b4d769afa65c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Math Min/Max vs Loop #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>