View xor_keras.py
This file contains 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
import numpy as np | |
from keras.models import Sequential | |
from keras.layers.core import Activation, Dense | |
training_data = np.array([[0,0],[0,1],[1,0],[1,1]], "float32") | |
target_data = np.array([[0],[1],[1],[0]], "float32") | |
model = Sequential() | |
model.add(Dense(32, input_dim=2, activation='relu')) | |
model.add(Dense(1, activation='sigmoid')) |
View UIViewKeyframeAnimationOptionsExtension.swift
This file contains 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
// This enables using all available UIViewAnimationOptions enum values as UIViewAnimationOptions in a Swifty way, | |
// by brute-force bridging all values with an explicit extension to UIViewKeyframeAnimationOptions. | |
// | |
// Thus, code like | |
// | |
// let o1 : UIViewKeyframeAnimationOptions = .CalculationModeLinear | |
// let o2 : UIViewAnimationOptions = .CurveLinear | |
// let os : UIViewKeyframeAnimationOptions = [o1, UIViewKeyframeAnimationOptions(o2.rawValue)] | |
// | |
// becomes: |
View Easing.pde
This file contains 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
/* | |
* Easing.pde - brings Robert Penner's easing functions into Processing | |
* (c) 2015 cocopon. | |
* | |
* See the following to learn more about these famous functions: | |
* http://www.robertpenner.com/easing/ | |
* | |
* License: | |
* http://www.robertpenner.com/easing_terms_of_use.html | |
*/ |
View AppStoreScreenShotMaker.sh
This file contains 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
#!/bin/sh | |
# settings ========== | |
# src file name | |
fileNamePrefix="ScreenShotFileNameFor5.5inch" | |
offsetFor3_5=20 | |
# dest directory name |
View mindbemding.md
MindBEMding
- MindBEMding – getting your head ’round BEM syntax – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts
- BEM
- About HTML semantics and front-end architecture – Nicolas Gallagher
BEMとは?
- block, element, modifierの頭文字
- Yandexで発案されたフロントエンドの命名手法
View inherit.md
JavaScriptの継承について
全然理解出来てなかったので調べてみた。
経緯
function f () {
// Class
}