Skip to content

Instantly share code, notes, and snippets.

View fukuball's full-sized avatar

Fukuball Lin fukuball

View GitHub Profile
@fukuball
fukuball / _Stay_standalone.md
Created January 4, 2017 07:10 — forked from irae/_Stay_standalone.md
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@fukuball
fukuball / tensorflow_cuda_osx.md
Created November 26, 2016 14:13 — forked from Mistobaan/tensorflow_cuda_osx.md
How to enable cuda support for tensor flow on Mac OS X (Updated on April:2016 Tensorflow 0.8)

These instructions will explain how to install tensorflow on mac with cuda enabled GPU suport. I assume you know what tensorflow is and why you would want to have a deep learning framework running on your computer.

Prerequisites

Make sure to update your homebrew formulas

brew update
@fukuball
fukuball / Connecting PHP 5.6 to MSSQL.md
Created May 2, 2016 16:21 — forked from joecampo/Connecting PHP 5.6 to MSSQL.md
Connecting PHP 5.6 to MSSQL - Ubuntu (Debian) w/ Apache
@fukuball
fukuball / svm.py
Created March 18, 2016 13:54 — forked from mblondel/svm.py
Support Vector Machines
# Mathieu Blondel, September 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
return np.dot(x1, x2)
@fukuball
fukuball / min-char-rnn.py
Created March 14, 2016 08: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)
@fukuball
fukuball / install.md
Last active September 24, 2016 11:44 — forked from hlb/Brewfile
clean install

System Preferences

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

# Set a blazingly fast keyboard repeat rate