Skip to content

Instantly share code, notes, and snippets.

View lumpidu's full-sized avatar

Daniel lumpidu

View GitHub Profile
import argparse
import hashlib
import os
import urllib
import warnings
from collections import OrderedDict
import torch
from torch import nn
from tqdm import tqdm
@lumpidu
lumpidu / android_ares_config.patch
Created February 25, 2019 11:55
Build gRPC for Android
46c46
< #define GETSERVBYPORT_R_ARGS 6
---
> #define GETSERVBYPORT_R_ARGS
131c131
< #define HAVE_GETSERVBYPORT_R
---
> /* #undef HAVE_GETSERVBYPORT_R */
46c46
< #define GETSERVBYPORT_R_ARGS 6
@lumpidu
lumpidu / gcc 5 on ubuntu 14.04
Created April 29, 2016 14:19 — forked from beci/gcc 5 on ubuntu 14.04
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
@lumpidu
lumpidu / user.rb
Created January 6, 2012 21:44 — forked from namelessjon/user.rb
Example user with a BCrypt password
require 'bcrypt'
class User
include DataMapper::Resource
attr_accessor :password, :password_confirmation
timestamps :at
property :id, Serial