Skip to content

Instantly share code, notes, and snippets.

@natema
natema / encrypted-git-repo.md
Last active December 31, 2020 20:44 — forked from polonskiy/encrypted-git-repo.md
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.

Description

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

@natema
natema / yiyu-resnet.jl
Created August 20, 2020 10:32
Resnet18 on CIFAR10 in Julia
using Flux
using Flux: @functor
function conv3x3(in_planes, out_planes; stride=1)
Conv((3,3), in_planes => out_planes; pad=1, stride=stride)
end
function conv1x1(in_planes, out_planes; stride=1)
Conv((1,1), in_planes => out_planes; pad=0, stride=stride)
end
@natema
natema / imgnet_labels.jl
Created June 29, 2020 16:46
ImageNet Labels as a Julia Dictionary
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
natema / .XCompose
Created March 30, 2020 11:15
Unicode emoticons for Compose key
include "%L"
# Emoji
# http://unicode.org/emoji/charts/full-emoji-list.html
<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> : "😃"