Skip to content

Instantly share code, notes, and snippets.

View igorbrigadir's full-sized avatar

Igor Brigadir igorbrigadir

View GitHub Profile
@aghasemi
aghasemi / streamlit-app.py
Created February 9, 2022 21:15
A way to send a Toast message in streamlit and using the Toastify.js library
import streamlit.components.v1 as components
_ = components.html(
"""
<script>
function loadScript(url)
{
return new Promise(function(resolve, reject) {
@artificialsoph
artificialsoph / wordle.ipynb
Last active February 6, 2022 17:06
Wordle Solver
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@unrealwill
unrealwill / collisionLSH.py
Created August 8, 2021 10:20
Proof of Concept : generating collisions on a neural perceptual hash
import tensorflow as tf #We need tensorflow 2.x
import numpy as np
#The hashlength in bits
hashLength = 256
def buildModel():
#we can set the seed to simulate the fact that this network is known and doesn't change between runs
#tf.random.set_seed(42)
model = tf.keras.Sequential()
@jbn
jbn / avi_rotate.py
Created July 7, 2021 17:31
How I rotate my AVI
import tweepy
import json
import time
import datetime
from calendar import monthrange
from PIL import Image, ImageEnhance
import pathlib
import pylunar

Cheat sheet: JavaScript Array methods

Deriving a new Array from an existing Array:

['■','●','▲'].slice(1, 3)           ['●','▲']
['■','●','■'].filter(x => x==='■')  ['■','■']
    ['▲','●'].map(x => x+x)         ['▲▲','●●']
    ['▲','●'].flatMap(x => [x,x])   ['▲','▲','●','●']
@yoavg
yoavg / stochastic-critique.md
Last active January 5, 2025 10:43
A criticism of Stochastic Parrots

A criticism of "On the Dangers of Stochastic Parrots: Can Languae Models be Too Big"

Yoav Goldberg, Jan 23, 2021.

The FAccT paper "On the Dangers of Stochastic Parrots: Can Languae Models be Too Big" by Bender, Gebru, McMillan-Major and Shmitchell has been the center of a controversary recently. The final version is now out, and, owing a lot to this controversary, would undoubtly become very widely read. I read an earlier draft of the paper, and I think that the new and updated final version is much improved in many ways: kudos for the authors for this upgrade. I also agree with and endorse most of the content. This is important stuff, you should read it.

However, I do find some aspects of the paper (and the resulting discourse around it and around technology) to be problematic. These weren't clear to me when initially reading the first draft several months ago, but they became very clear to me now. These points are for the most part

#!/usr/bin/env python3
# Script to create directories and index.md files for publications
# for Academic Kickstart or Research Group Kickstart, taking reference
# info from a Google Scholar CSV export.
# Templates found here, https://wowchemy.com/templates/
# input: one csv file from command line e.g. from scholar export
# output: a dir structure of the publications for import to kickstart
@medelman17
medelman17 / blacks-dictionary.jsonl
Created December 1, 2020 16:20
Black's Legal Dictionary in JSONL format.
This file has been truncated, but you can view the full file.
{"title":"AUTOGRAPH","definition":"The handwriting of any one.","related":["EX SCRIPTIS OLIM VISIS","MAYN L","WILL HOLOGRAPHIC","IDENTIFICATION","HOLOGRAFO","EX VISU SCRIPTIONIS","ONOMASTIC","HANDWRITING EXPERT","BON FR","COMPARISON OF HANDWRITING"]}
{"title":"AUXILIUM REGIS","definition":"In English law. The king’s aid or money levied for the royal use and the public service, as taxes granted by parliament.","related":["BANCUS REGIS","VIDUA REGIS","AUXILIUM","SERVIENS DOMINI REGIS","DE NON RESIDENTIA CLERICI REGIS","AD JURA REGIS","CAMERA REGIS","MINISTRI REGIS","NON-RESIDENTIO PRO CLERICO REGIS","AUXILIUM CURIAE"]}
{"title":"AVER SILVER","definition":"A custom or rent formerly so called.","related":["GREEN SILVER","AVER CORN","HERRING SILVER","ALE SILVER","SLOUGH SILVER","AVER, N","AVER, V","AVER","AVER PENNY","AVER LAND"]}
{"title":"AVOID","definition":"To annul; cancel; make yoid; to destroy the efficacy of anything.","related":["CONDITIONS TO AVOID","VITIATE","ANNUL","VACATE","DESTROY","DISSOLVE","DISCHA
@lucahammer
lucahammer / readme.txt
Created October 12, 2020 14:18
Readme of Twitter data export 2020-10-12
INTRODUCTION
============
This archive was generated at the request of the following user:
- @username at the time the archive was generated: luca
- Account ID: 11985982
The easiest way to navigate your archive is to open the HTML renderer in a desktop web browser by double clicking the “Your archive” file included in the main folder once the archive is unzipped.
Note that the HTML renderer only works if the archive is less than 50GB. Also note that the HTML renderer only includes a subset of the data included in the archive. To see all the data included in the archive, please navigate the JSON files located in the “data” folder.
@khusseini
khusseini / README.md
Last active August 25, 2022 04:04
Adding traefik to LKS

Setup Traefik 2.2 with Let's Encrypt On LKE

If you searched for this article I chances are you know what LKE, Traefik and Let's Encrypt are, else here is a quick primer:

What is LKE?

"The Linode Kubernetes Engine (LKE) is a fully-managed container orchestration engine for deploying and managing containerized applications and workloads.". For more information please have a look at "Deploy and manage a cluster with Linode Kubernetes Engine"