Skip to content

Instantly share code, notes, and snippets.


hongbomin xylcbd

Block or report user

Report or block xylcbd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eiiches / bk-tree.hpp
Created Mar 11, 2012
BK-tree implementation in C++
View bk-tree.hpp
* BK-tree implementation in C++
* Copyright (C) 2012 Eiichi Sato
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
aras-p / preprocessor_fun.h
Last active Jan 17, 2020
Things to commit just before leaving your job
View preprocessor_fun.h
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
edokeh / index.js
Last active Jan 21, 2020
佛祖保佑,永无 BUG
View index.js
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
neubig /
Last active Aug 23, 2017
This is a minimal implementation of training for a language model using long short-term memory (LSTM) neural networks
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is a simplified implementation of the LSTM language model (by Graham Neubig)
# LSTM Neural Networks for Language Modeling
# Martin Sundermeyer, Ralf Schlüter, Hermann Ney
# InterSpeech 2012
# The structure of the model is extremely simple. At every time step we
shingchi / Unicode中文和特殊字符的编码范围
Created Jan 6, 2015
View Unicode中文和特殊字符的编码范围
karpathy /
Last active Jan 20, 2020
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)
CHEF-KOCH / Changelog
Created Mar 30, 2016
Visual Studio 2015 Update 2
View Changelog
Visual Studio:
Visual Studio Tools for Apache Cordova
Visual Studio Tools for Universal Windows App Development
Visual C++
C# and Visual Basic
.NET Framework 4.6.1
Visual Studio IDE
royshil /
Last active Dec 16, 2019
How to implement Touch-to-Focus in Android using Camera2 APIs
//Override in your touch-enabled view (this can be differen than the view you use for displaying the cam preview)
public boolean onTouch(View view, MotionEvent motionEvent) {
final int actionMasked = motionEvent.getActionMasked();
if (actionMasked != MotionEvent.ACTION_DOWN) {
return false;
if (mManualFocusEngaged) {
Log.d(TAG, "Manual focus already engaged");
return true;
Last active Aug 30, 2019
[四川电信ITV 190个频道的组播表] 四川电信IPTV 190个频道的组播表,截取于2017年8月 #scitv #iptv #sichuan
#EXTM3U name="四川电信IPTV"
You can’t perform that action at this time.