Skip to content

Instantly share code, notes, and snippets.

View Anyesh's full-sized avatar
🍀

Anish Shrestha Anyesh

🍀
View GitHub Profile
@Anyesh
Anyesh / emacs27.sh
Created May 14, 2022 09:14 — forked from atgmello/emacs27.sh
Install Emacs 27 from source in Ubuntu 20.04 LTS
cd
git clone --depth=1 --single-branch \
--branch emacs-27 https://github.com/emacs-mirror/emacs.git
cd emacs/
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \
libjansson-dev libharfbuzz-dev libharfbuzz-bin imagemagick \
  1. Install @module-federation/nextjs-mf.
yarn add @module-federation/nextjs-mf
  1. Add resolutions to package.json:
  "resolutions": {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Anyesh
Anyesh / yaml-cheatsheet.md
Last active December 5, 2020 04:55 — forked from jonschlinkert/examples.md
Three files: examples.md, yaml-cheatsheet.md and yaml-cheatsheet.yml

YAML 1.1: Reference card


Collection indicators:

    '? ' : Key indicator.
    ': ' : Value indicator.
    '- ' : Nested series entry indicator.
    ', ' : Separate in-line branch entries.
    '[]' : Surround in-line series branch.
    '{}' : Surround in-line keyed branch.
@Anyesh
Anyesh / mongodb_cheat_sheet.md
Created September 22, 2020 14:57 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@Anyesh
Anyesh / data_generator.py
Last active June 24, 2020 06:03
KNN: Synthetic Data Generation
#========================================#
# Data Generation #
#========================================#
n_points = 25
random = np.random.RandomState(0)
CENTERS = np.asarray([
[ 0.5, 0.5],
[-0.5, -0.5],
])
#========================================#
# Data Generation #
#========================================#
n_points = 25
random = np.random.RandomState(0)
CENTERS = np.asarray([
[ 0.5, 0.5],
# [-0.5, 0.5],
# [ 0.5, -0.5],
[-0.5, -0.5],
## model.py
import torch.nn as nn
import torch
class SentimentClassifier(nn.Module):
def __init__(self,
bert,
hidden_dim,
output_dim,
@Anyesh
Anyesh / README.md
Created September 19, 2019 05:08 — forked from BBloggsbott/README.md
A python script that will get the latest papers in machine learning from arxiv.org

Arxiv Scrapper (ML)

Install required packages

pip install -r requirements.txt

Run Scrapper

python arxiv_scrapper.py
@Anyesh
Anyesh / docker-help.md
Created July 1, 2019 15:14 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info