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
FROM php:5-apache | |
RUN apt update | |
RUN apt-get install -y apt-file vim mysql-client && apt-file update && apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:ondrej/php && \ | |
docker-php-ext-install pdo_mysql mbstring mysql | |
RUN curl -o eccube-2_13.tar.gz https://codeload.github.com/EC-CUBE/eccube-2_13/tar.gz/eccube-2.13.5 && tar xvzf eccube-2_13.tar.gz | |
RUN echo 'date.timezone = Asia/Tokyo' >> /usr/local/etc/php/conf.d/99_myconf.ini | |
RUN cp -r eccube-2_13-eccube-2.13.5/* ./ && rm -rf eccube-2_13-eccube-2.13.5/ | |
RUN sh setup.sh | |
RUN sed -i -e 's|DocumentRoot /var/www/html|DocumentRoot /var/www/html/html|' /etc/apache2/sites-available/000-default.conf |
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 React from "react"; | |
import { render } from "react-dom"; | |
import { connect } from "react-redux"; | |
// 単純に props の value を表示するプレゼンテーションコンポーネントと、 | |
// Reduxの管理するストアからステートを受け取り、コンポーネントの props にマッピングするコンテナコンポーネント | |
const ValueComponent = props => <>value = {props.value}</>; | |
export const Value = connect(state => ({ | |
value: state.value | |
}))(ValueComponent); |
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 processing.core.PApplet | |
import processing.core.PConstants._ | |
class App extends PApplet { | |
private[this] val CELL_SIZE = 10 | |
private[this] val W = 102 | |
private[this] val H = 76 | |
private[this] val arr = new Array[Boolean](W * H) | |
private[this] val tmp_arr = new Array[Boolean](W * H) |
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 processing.core.PConstants._ | |
import processing.core.{PApplet, PFont, PGraphics, PVector} | |
import scala.collection.mutable.ArrayBuffer | |
// Original is : https://www.openprocessing.org/sketch/149337 by Jerome Herr | |
// | |
class App extends PApplet { | |
lazy val letterGraphic: PGraphics = { | |
createGraphics(width, height) |
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 processing.core.PConstants._ | |
import processing.core.{PApplet, PVector} | |
import scala.collection.mutable.ListBuffer | |
class Boid(x: Float,y: Float, private[this] val pApplet: PApplet) { | |
private[this] val R = 2.0f | |
private[this] val MAX_FORCE = 0.03f | |
private[this] val MAX_SPEED = 2.0f | |
private[this] val NEIGHBORHOOD_DIST = 50f |