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
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
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,
Last active Aug 30, 2019
[四川电信ITV 190个频道的组播表] 四川电信IPTV 190个频道的组播表,截取于2017年8月 #scitv #iptv #sichuan
#EXTM3U name="四川电信IPTV"
royshil /
Last active Sep 6, 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;
shingchi / Unicode中文和特殊字符的编码范围
Created Jan 6, 2015
View Unicode中文和特殊字符的编码范围
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
edokeh / index.js
Last active Nov 9, 2019
佛祖保佑,永无 BUG
View index.js
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
aras-p / preprocessor_fun.h
Last active Nov 12, 2019
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,
karpathy /
Last active Nov 13, 2019
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)
You can’t perform that action at this time.