Skip to content

Instantly share code, notes, and snippets.

View natema's full-sized avatar

Emanuele Natale natema

View GitHub Profile
natema /
Last active December 31, 2020 20:44 — forked from polonskiy/
Transparent Git Encryption

Transparent Git Encryption

This is my revision of Polonskiy's Gist. It's basically a condensed version of the latter. Please refer to his version for further details, such as references which inspired the method proposed here.


When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

natema / yiyu-resnet.jl
Created August 20, 2020 10:32
Resnet18 on CIFAR10 in Julia
View yiyu-resnet.jl
using Flux
using Flux: @functor
function conv3x3(in_planes, out_planes; stride=1)
Conv((3,3), in_planes => out_planes; pad=1, stride=stride)
function conv1x1(in_planes, out_planes; stride=1)
Conv((1,1), in_planes => out_planes; pad=0, stride=stride)
natema / imgnet_labels.jl
Created June 29, 2020 16:46
ImageNet Labels as a Julia Dictionary
View imgnet_labels.jl
Dict(0 => "tench, Tinca tinca",
1 => "goldfish, Carassius auratus",
2 => "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
3 => "tiger shark, Galeocerdo cuvieri",
4 => "hammerhead, hammerhead shark",
5 => "electric ray, crampfish, numbfish, torpedo",
6 => "stingray",
7 => "cock",
8 => "hen",
9 => "ostrich, Struthio camelus",
natema / .XCompose
Created March 30, 2020 11:15
Unicode emoticons for Compose key
View .XCompose
include "%L"
# Emoji
<Multi_key> <colon> <colon> <D> : "😀"
<Multi_key> <colon> <x> <D> : "😁"
<Multi_key> <colon> <l> <o> <l> : "😂"
<Multi_key> <colon> <r> <o> <f> : "🤣"
<Multi_key> <colon> <colon> <d> : "😃"