Wait a second, why would you want to give out the secrets?!? Because its not a secret anymore and besides, why shouldn't everyone and their neighbors be able to create a plethora of these useless yet exciting math bits? The information in this article took me a few weeks to compile and what works for me is not guaranteed to work for you. Please use this guide as a starting point to learn a bit about C programming and compiling software.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### development tools | |
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk | |
### Python packages | |
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib | |
### pip packages | |
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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) |
Note: probably 99% of this tutorial (excluding installation and folder structure) is DOSBox- and not Mac-specific. As long as your computer can run DOSBox you should be able to convert the steps to work on Windows.
DOS apps don't run natively on OS X, so we use DOSBox to emulate DOS for us.
Navigate to the official DOSBox download page
###Step 1: Install XCode
Check if the full Xcode package is already installed:
$ xcode-select -p
If you see:
/Applications/Xcode.app/Contents/Developer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaults | |
// https://code.visualstudio.com/docs/customization/keybindings | |
[ | |
//---- 他の方のを流用 ---- | |
// http://tonbi.jp/Web/Diary/030/ | |
// ↑up | |
{ "key": "ctrl+e", "command": "cursorUp", | |
"when": "editorTextFocus" }, | |
{ "key": "shift+ctrl+e", "command": "cursorUpSelect", | |
"when": "editorTextFocus" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn f-beta | |
"F-beta score, default uses F1" | |
([precision recall] (f-beta precision recall 1)) | |
([precision recall beta] | |
(let [beta-squared (* beta beta)] | |
(* (+ 1 beta-squared) | |
(try ;; catch divide by 0 errors | |
(/ (* precision recall) | |
(+ (* beta-squared precision) recall)) | |
(catch ArithmeticException e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
var GameStatus = { | |
NOTSTARTED: 0, | |
FINISHED: 1, | |
INPROGRESS: 2 | |
} | |
var Suits = ['H', 'D', 'C', 'S']; | |
var Cards = []; |
OlderNewer