Skip to content

Instantly share code, notes, and snippets.

View AbhimanyuAryan's full-sized avatar
:atom:
transformers

Abhimanyu Aryan AbhimanyuAryan

:atom:
transformers
View GitHub Profile
@AbhimanyuAryan
AbhimanyuAryan / clutter-free-vscode.jsonc
Created January 2, 2024 06:50 — forked from kamilogorek/_screenshot.md
Clutter-free VS Code Setup
// Required Plugin: https://marketplace.visualstudio.com/items?itemName=drcika.apc-extension
// settings.json
{
// Remove left-side icons
"workbench.activityBar.location": "hidden",
// Remove bottom status bar
"workbench.statusBar.visible": false,
// Remove position indicator in the editor's scrollbar
"editor.hideCursorInOverviewRuler": true,
@AbhimanyuAryan
AbhimanyuAryan / Cargo.toml
Created October 9, 2022 21:38 — forked from CoolOppo/Cargo.toml
How to compile to a DLL in rust while using it as a normal rust library
[package]
name = "test"
version = "0.1.0"
authors = ["YOU <YOU@users.noreply.github.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
@AbhimanyuAryan
AbhimanyuAryan / decrypt.jl
Created September 5, 2022 15:53 — forked from shenhuang/decrypt.jl
Julia code for Caesar shift and columnar transposition cracking.
cipherText = "KUHPVIBQKVOSHWHXBPOFUXHRPVLLDDWVOSKWPREDDVVIDWQRBHBGLLBBPKQUNRVOHQEIRLWOKKRDD"
println("Begin to decrypt cipher text: ", cipherText)
#https://en.wikipedia.org/wiki/Letter_frequency
frequencies = Dict( "A" => 8.167,
"B" => 1.492,
"C" => 2.782,
"D" => 4.253,
"E" => 12.702,
@AbhimanyuAryan
AbhimanyuAryan / stars.jl
Created September 1, 2022 14:00 — forked from gdalle/stars.jl
Counting stars for Julia packages
using CSV
using GitHub
using Pkg
using ProgressMeter
using TOML
myauth = GitHub.authenticate(ENV["GITHUB_AUTH"])
general = first(reg for reg in Pkg.Registry.reachable_registries() if reg.name == "General")
package_url = Dict{String,String}()
@AbhimanyuAryan
AbhimanyuAryan / firefox-about-config-privacy.md
Last active March 21, 2022 03:50 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

Deploying Julia on heroku

Let's assume that you can run your web server on your own computer, and that you can open it in your own browser (through localhost or 127.0.0.1). This guide will go through the steps of putting that app online!

This guide will be based on a hello world sample project that uses Genie.jl, but the steps from this guide apply to any Julia web framework.

heroku has tons of features, but for a simple app, we only need the basics. In particular, we do not need the heroku command line, we can do everything through the online GUI.

Basics

heroku uses git for deployment: to package your app, you create a git repository, and to put a new version of your app online, you push to the git repository. If you already know git, then you now know how to manage a web server! It's like GitHub pages, but more powerful (and more complicated). Read heroku's introduction for a basi

@AbhimanyuAryan
AbhimanyuAryan / yolo_to_voc.py
Created August 22, 2019 12:06 — forked from goodhamgupta/yolo_to_voc.py
Convert yolo coordinates to VOC format
# Script to convert yolo annotations to voc format
# Sample format
# <annotation>
# <folder>_image_fashion</folder>
# <filename>brooke-cagle-39574.jpg</filename>
# <size>
# <width>1200</width>
# <height>800</height>
# <depth>3</depth>
def generate(label):
(
bbox_xmin,
bbox_ymin,
bbox_xmax,
bbox_ymax,
img_width,
img_height
) = (
label.get('xmin'),
@AbhimanyuAryan
AbhimanyuAryan / node-python-fastai.md
Created February 24, 2019 12:08 — forked from zcaceres/node-python-fastai.md
Starter code to use NodeJS with a Python layer for the model.

Deploying a Deep Learning Image Classification Model with NodeJS, Python, and Fastai

TL|DR: Use this to easily deploy a FastAI Python model using NodeJS.

You've processed your data and trained your model and now it's time to move it to the cloud.

If you've used a Python-based framework like fastai to build your model, there are several excellent solutions for deployment like Django or Starlette. But many web devs prefer to work in NodeJS, especially if your model is only part of a broader application.

My friend Navjot pointed out that NodeJS and Python could run together if we could send remote procedure calls from NodeJS to Python.

A zoomable candlestick chart.

Copyright © 2015, Anil Nair - MIT License