Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / cifar_util.py
Last active August 4, 2020 22:58
CIFAR utils
from IPython.display import clear_output
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import pytorch_lightning as pl
import torchvision.transforms as transforms
from torchvision.datasets import CIFAR10
@boazbk
boazbk / CLAcrypto.md
Created January 3, 2018 16:00
CLA for crypto notes

An intensive introduction to cryptography Individual Contributor License Agreement

[Short version: Thank you for your contribution - I might turn these notes into a printed book or other format in the future, and want to ensure I can use your input, whether it's a typo, bug fix, or anything else, in any such version. Sorry for all the legalese below - I am not a lawyer and this is the template agreement I found on the web that seemed to make sense.]

Thank you for your interest in contributing to the text An intensive introduction to cryptography by Boaz Barak ("We" or "Us"). This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by electronic submission, following the instructions at . This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

Definitions

  • "You" means the individual who Submits a
@boazbk
boazbk / blog_edited.ipynb
Last active November 6, 2017 22:28
Edited version of blog post
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / blog_full.ipynb
Created November 6, 2017 21:38
Blog post with the full code needed to run it
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / cook_levin.ipynb
Created October 31, 2017 16:56
Cook Levin Theorem
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / reductions.ipynb
Created October 26, 2017 16:53
Polynomial time reductions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / NAND_pp_overview.ipynb
Last active October 8, 2017 06:00
Python notebook giving an overview of the NAND++ language
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / lambda.ipynb
Last active October 4, 2017 16:26
Notebook for the lambda calculus
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@boazbk
boazbk / NAND_pp_universal.ipynb
Created September 28, 2017 18:25
NAND pp EVAL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.