Skip to content

Instantly share code, notes, and snippets.

View doglex's full-sized avatar
🍄
I may be slow to respond.

VuRBd8KQXjFNJmxG9Uo0 doglex

🍄
I may be slow to respond.
  • jFTZxNL9kZBPj95bfaWY
  • k17krxkiNgDCsfsyZDhL
View GitHub Profile
@doglex
doglex / get-aad-token.js
Created June 14, 2022 02:08 — forked from pieterdv/get-aad-token.js
Login through Azure AD with puppeteer
function getAadToken(user, password, identifier) {
return puppeteer.launch({ headless: true }).then(async browser => {
try {
const page = await browser.newPage();
await page.goto("SITEURL");
await page.click(
"LOGINBUTTON"
);
@doglex
doglex / __init__.pyi
Created April 25, 2022 09:47 — forked from t-vi/__init__.pyi
PyTorch Type Hints work in progress (put into python3.x/dist-packages/torch/ directory to try)
from typing import List, Tuple, Optional, Union, Any, ContextManager, Callable, overload
import builtins
import math
import pickle
class dtype: ...
_dtype = dtype