Skip to content

Instantly share code, notes, and snippets.

View AbhimanyuAryan's full-sized avatar
:octocat:
"Attention is all you need" - Birth of LLM 2017

Abhimanyu Aryan AbhimanyuAryan

:octocat:
"Attention is all you need" - Birth of LLM 2017
View GitHub Profile
@AbhimanyuAryan
AbhimanyuAryan / Install Composer to use MAMP's PHP.md
Last active September 12, 2015 15:38 — forked from kkirsche/Install Composer to use MAMP's PHP.md
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

@AbhimanyuAryan
AbhimanyuAryan / cracking.md
Created February 11, 2016 07:08 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@AbhimanyuAryan
AbhimanyuAryan / .gitignore
Last active May 6, 2017 17:02
Unity 5.6 Git Ignore
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
/Assets/@THEME 5.6
/Assets/VSCode
# Visual Studio 2015 cache directory

A zoomable candlestick chart.

Copyright © 2015, Anil Nair - MIT License

@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.

def generate(label):
(
bbox_xmin,
bbox_ymin,
bbox_xmax,
bbox_ymax,
img_width,
img_height
) = (
label.get('xmin'),
@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>
@AbhimanyuAryan
AbhimanyuAryan / oneplus_bloatware_removal.bat
Last active April 12, 2022 18:51
oneplus bloatware to remove
@ECHO OFF
ECHO Listing connected android devices
adb devices
ECHO ==============================
adb shell
ECHO ==============================
ECHO preparing to remove bloatware ...
pm uninstall -k --user 0 com.android.chrome
pm uninstall -k --user 0 com.oneplus.membership
pm uninstall -k --user 0 com.tencent.soter.soterserver
@AbhimanyuAryan
AbhimanyuAryan / extension.md
Last active June 22, 2021 05:34
My goto vscode extension for vuejs
  1. Vetur: Vue Templates
<vue

hit enter populates a starting vue template

open settings.json add "vetur.validation.template": false

add jsconfig.json

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