Skip to content

Instantly share code, notes, and snippets.

Avatar

residential-map-machine-user residential-map-machine-user

View GitHub Profile
View seat.php
<?php
namespace App\Model\Table\Restaurant;
use Cake\ORM\Query;
use Cake\ORM\RulesChecker;
use Cake\ORM\Table;
use Cake\Validation\Validator;
use Cake\I18n\Time;
/**
View seat_chart.ctp
<script src="https://code.createjs.com/easeljs-0.7.1.min.js"></script>
<script>
var stage;
//initialize rectangle
var seatReservedBackgroundColor = 'red';
var fontReservedColor = 'white';
var seatNonReservedBackgroundColor = 'grey';
var fontNonReservedColor = 'black';
var seatList = [
{
View restaurant_admin.php
<?php
namespace App\Controller\Approval;
use App\Controller\AppController;
use Cake\ORM\TableRegistry;
use Cake\I18n\Time;
/**
* RestaurantReservationsManagesController Controller
*
View setup_rails_using_vagrant.sh
#!/bin/sh
# Ubuntu setup from vagrant
###### via https://gorails.com/setup/ubuntu/14.04
echo "Packages setting..."
sudo apt-get -y update
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
## Ruby
echo "Ruby setting..."
cd
@residential-map-machine-user
residential-map-machine-user / setup240.sh
Last active May 15, 2021
openfoam 2.4.0 setup shellscript
View setup240.sh
#!/bin/bash
#====================================================================
# aptのアップデート
#====================================================================
yes | sudo apt-get update
yes | sudo apt-get upgrade
#====================================================================
# 『デスクトップ』『音楽』などの日本語フォルダー名を英語表記にする
#====================================================================