This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"editor.tokenColorCustomizations": { | |
"[Oranji]": { | |
"textMateRules": [ | |
{ | |
"scope": "support.type.julia", | |
"settings": { | |
"fontStyle": "italic" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "test" | |
version = "0.1.0" | |
authors = ["YOU <YOU@users.noreply.github.com>"] | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
NewerOlder