$ uname -r
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
require 'ruby-fann' | |
inputs = 0.step(Math::PI * 2, 0.01).map { |x| [x] } | |
desired_outputs = inputs.map { |i| [Math.sin(i.first)] } | |
train = RubyFann::TrainData.new(inputs: inputs, desired_outputs: desired_outputs) | |
fann = RubyFann::Standard.new(:num_inputs=>1, :hidden_neurons=>[10, 20], :num_outputs=>1) | |
fann.set_activation_function_hidden(:sigmoid_symmetric) | |
fann.set_activation_function_output(:sigmoid_symmetric) | |
fann.train_on_data(train, 2000, 20, 0.001) |
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
# See: https://medium.com/@hugooodias/deploying-a-rails-app-to-amazon-elasticbeanstalk-in-2016-c4e833c687c0 | |
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq": | |
mode: "000755" | |
content: | | |
#!/bin/bash | |
EB_CONFIG_DEPLOY=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir) | |
EB_CONFIG_APP_LOG=$(/opt/elasticbeanstalk/bin/get-config container -k app_log_dir) | |
initctl stop sidekiq |
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
#!/bin/bash | |
set -x | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb | |
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-connector-python select none | sudo debconf-set-selections |
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
ππππππ πππππππππππππππππππππππππππ π‘π’π£π€π₯π¦π§π¨π©πͺπ« | |
ο½·οΎβ(οΎβοΎ)βπππππππ π π ππππβπβ(οΎβοΎ)β!!!! |
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
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Usage: recoru punchType" 1>&2 | |
echo " punchType: 1 εΊε€ 2 ιε€" 1>&2 | |
echo "ENVIRONMENT_VARIABLES:" 1>&2 | |
echo " RECORU_WORK_PLACE_ID: δΌζ₯ID" | |
echo " RECORU_AUTH_ID: εδΊΊID" | |
echo " RECORU_PASSWORD: γγΉγ―γΌγ" | |
exit 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
<?php | |
class Email_Driver_File extends \Email_Driver | |
{ | |
/** | |
* File send: Save email to file | |
* | |
* @return bool Success boolean. | |
*/ | |
protected function _send() |
OlderNewer