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

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@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,
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
import numpy as np
from timeit import timeit
def matmul_python(C, A, B):
for m in range(C.rows):
for n in range(C.cols):
for k in range(A.cols):
C[m, n] += A[m, k] * B[k, n]
class Matrix:
using Random
using BenchmarkTools
function matmul_python(C, A, B)
for m in 1:C.rows
for n in 1:C.cols
for k in 1:A.cols
C[m, n] += A[m, k] * B[k, n]
end
end
@AbhimanyuAryan
AbhimanyuAryan / hbspot.js
Created February 19, 2023 16:05
hubspot form submission bearer token
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
const url = 'https://api.hsforms.com'
const endpoint = 'submissions/v3/integration/secure/submit'
const portalId = '26984581'
const formId = '53b71b97-dfdf-452e-baba-21c9adb7f63f'
const hapiKey = 'generated from developer panel'
function formv3(){
// Create the new request
@AbhimanyuAryan
AbhimanyuAryan / startup.jl
Last active January 28, 2023 17:54
julia configurations on repl initialization
#ENV["JULIA_PKG_DEVDIR"] = "C:\\Users\\aryan\\Documents\\mydev"
atreplinit() do repl
try
@eval using OhMyREPL
@eval using Crayons
@eval OhMyREPL.input_prompt!(string(VERSION) * ">", :green)
@eval OhMyREPL.enable_autocomplete_brackets(true)
@eval OhMyREPL.Passes.BracketHighlighter.setcrayon!(Crayon(background= :red, foreground = :green))
# Term.jl
@AbhimanyuAryan
AbhimanyuAryan / julia-vscode-settings.json
Last active January 20, 2023 02:26
vscode julia font italics
"editor.tokenColorCustomizations": {
"[Oranji]": {
"textMateRules": [
{
"scope": "support.type.julia",
"settings": {
"fontStyle": "italic"
}
},
{
@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 <[email protected]>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
# Settings apply across all Linux distros running on WSL 2
# Can see memory in wsl2 with "free -m"
# Goes in windows home directory as .wslconfig
[wsl2]
# Limits VM memory to use no more than 48 GB, defaults to 50% of ram
memory=8GB
# Sets the VM to use 8 virtual processors
processors=4