Skip to content

Instantly share code, notes, and snippets.

View NoamGaash's full-sized avatar
🚌

Noam Gaash NoamGaash

🚌
View GitHub Profile
@NoamGaash
NoamGaash / autofix no-unused-modules.js
Last active January 19, 2024 06:03
it's my solution for my particular case, I can't gureentee it will ever help you. Use with cation - it will delete a lot of your code (hopefully).
/*
example to fix:
*/
const fs = require("fs");
const path = require("path");
const filename = "lint";
@NoamGaash
NoamGaash / ga_out_tag.js
Created November 7, 2022 09:07
google analytics tag outbound links
document.addEventListener('DOMContentLoaded', ()=>{
if ("ga" in window) {
tracker = ga.getAll()[0];
var a = document.getElementsByTagName("a");
for(i = 0; i < a.length; i++) {
if (a[i].href.indexOf(location.host) == -1 && a[i].href[0] != "#") {
let url = a[i].href;
a[i].onclick = function(e){
tracker.send('event', 'outbound', 'click', url.replace("https:\/\/", ""), {
'transport': 'beacon',
@NoamGaash
NoamGaash / create EveryBodyDanceNow dataset.sh
Created February 5, 2021 08:18
create EveryBodyDanceNow dataset
mkdir -p EverybodyDanceNow/datasets/noam/frames
# step 1 - video 2 frames
ffmpeg -i EverybodyDanceNow/datasets/noam/noam.mp4 EverybodyDanceNow/datasets/noam/frames/frame_%05d.bmp
# step 2 - running openpose and get json output
sudo docker run -v $PWD/EverybodyDanceNow/datasets/noam:/noam --gpus=all -it --rm -e NVIDIA_VISIBLE_DEVICES=0 cwaffles/openpose \
./build/examples/openpose/openpose.bin \
-image_dir ../noam/frames \
-hand -disable_blending -face \
@NoamGaash
NoamGaash / collect_dance_videos.sh
Created November 28, 2020 18:52
collect single person video dataset
tiktok-scraper hashtag dancer -d -n 400 -s --historypath $pwd/download_history -w -a 8
cd "#dancer"
touch ../blacklist.txt
# delete blacklisted videos
for filename in *; do
if cat ../blacklist.txt | grep $filename > /dev/null; then
echo "delete $filename due to the blacklist"