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
override func viewWillDisappear(animated: Bool) { | |
navigationController?.setNavigationBarHidden(true, animated: true) | |
} | |
override func viewWillAppear(animated: Bool) { | |
navigationController?.setNavigationBarHidden(false, animated: true) | |
} |
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
class BaseParticleWithVector implements BaseParticleWithVectorInterface { | |
PVector location; | |
PVector velocity; | |
float scalarVelocity; | |
float r; | |
BaseParticleWithVector() { | |
location = new PVector(random(width), random(height)); | |
velocity = new PVector(0, 0); |
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
let array = ["カレー","ラーメン","ハンバーグ"] | |
array.enumerate().forEach { (index, element) in | |
print("index:\(index) element:\(element)") | |
} | |
//省略記法 | |
array.enumerate().forEach { | |
print("index:\($0.0) element:\($0.1)") | |
} |
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
class BaseParticleWithVector implements BaseParticleWithVectorInterface { | |
PVector location; | |
PVector velocity; | |
float scalarVelocity; | |
float r; | |
BaseParticleWithVector() { | |
location = new PVector(random(width), random(height)); | |
velocity = new PVector(0, 0); |
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
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass') | |
notify = require("gulp-notify") | |
bower = require('gulp-bower'), | |
jade = require('gulp-jade'), | |
webserver = require('gulp-webserver'); | |
var config = { | |
sassPath: './resources/sass', | |
jadePath: './resources/jade', |
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
class BaseParticleWithVector implements BaseParticleWithVectorInterface { | |
PVector location; | |
PVector velocity; | |
float scalarVelocity; | |
float r; | |
BaseParticleWithVector() { | |
location = new PVector(random(width), random(height)); | |
velocity = new PVector(0, 0); |
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
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass') | |
notify = require("gulp-notify") | |
webserver = require('gulp-webserver'); | |
gulp.task('server', function() { | |
gulp.src('./') | |
.pipe(webserver({ |
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
# -*- coding: utf-8 -*- | |
import input_data | |
import tensorflow as tf | |
# prameters | |
learning_rate = 0.01 | |
training_epochs = 1000 | |
def main(): |
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
# -*- coding: utf-8 -*- | |
u""" | |
マルコフ連鎖を用いて適当な文章を自動生成するファイル | |
""" | |
import os.path | |
import sqlite3 | |
import random |