This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| example to fix: | |
| */ | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const filename = "lint"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |