Skip to content

Instantly share code, notes, and snippets.

View imago-storm's full-sized avatar

Polina Shubina imago-storm

  • Softesis
  • Odessa
View GitHub Profile
@imago-storm
imago-storm / min-char-rnn.py
Created July 14, 2020 19:51 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@imago-storm
imago-storm / nethttp timeout.md
Last active October 28, 2019 11:09
net/http tls handshake timeout macos golang

Weird timeout error on multiple Go utilities on Mac OS

net/http tls handshake timeout on mac os with Go-based utility: check for the self-signed certificates in the keychain. If the keychain is bloated, delete old certificates and see if the issue remains.

@imago-storm
imago-storm / recursive_list.twig
Created May 14, 2019 13:32 — forked from isthatcentered/recursive_list.twig
Recursive list template for Twig using recursive macros. Compatible Twig 2.x // for grandpas or hipsters using twig in js (hello friends :D )
{% macro list(items, class) %}
<ul class="{{class}}">
{# Iterating over each direct items #}
{% for item in items %}
<li>
<a href="">{{item.name}}</a>
{# If an item has children #}
{% if item.children %}
@imago-storm
imago-storm / increase_swap.sh
Created January 11, 2018 16:10 — forked from shovon/increase_swap.sh
Increasing swap size. Only tested on the ubuntu/trusty64 Vagrant box. CREDIT GOES TO ---> http://jeqo.github.io/blog/devops/vagrant-quickstart/
#!/bin/sh
# size of swapfile in megabytes
swapsize=8000
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then