Skip to content

Instantly share code, notes, and snippets.

@nashid
nashid / setup-eslint.md
Last active March 26, 2022 02:04
Running eslint in command line

running eslint

#install eslint in project
npm install eslint --save-dev

#initialize in root folder
node_modules/.bin/eslint --init

#Add the snippet below into "script" in package.json file.
@nashid
nashid / git-large-repo-maintenance.md
Last active April 12, 2022 06:37
Make large git repo faster

Try running Prune command it will get rid off, loose objects:

git gc
git fsck
git prune
git remote prune origin

If nothing works:

@nashid
nashid / tar-current-folder.md
Created April 25, 2022 18:09
tar: add all files and directories in current directory
tar -czf /mnt/volume1/workspace.tar.gz .
@nashid
nashid / delete-large-file-from-history.md
Last active July 6, 2022 07:00
delete large file from git history
@nashid
nashid / git-tag.md
Last active June 2, 2022 20:18
git tag

Creating Tags

git tag -a v0.2.5 -m "shiny-app v0.2.5"

Push Tags

git push origin --tags
@nashid
nashid / arxiv-submission.md
Created June 2, 2022 20:25
Steps before arxiv submission
\documentclass[sigconf,review]{acmart}
from zss import Node, simple_distance
import lxml.html
html1 = lxml.html.parse('file1.html')
html2 = lxml.html.parse('file1.html')
def tree_from_el(el):
node = Node(el.tag)
for child in el:
node.addkid(tree_from_el(child))
open -a "Google Chrome" html-result-viewer/view-results.html
@nashid
nashid / gist:49f32c77640344475ef63a2a9783b313
Created July 13, 2022 02:15
Author biographies in latex