define('DRUPAL_ROOT', getcwd());
define('VERSION', '7.60-dev');
define('DRUPAL_CORE_COMPATIBILITY', '7.x');The value of VERSION (7.60-dev) above varies for each version.
| <html> | |
| <head> | |
| <style> | |
| .canvas-wrapper { | |
| width: 600px; | |
| margin: auto; | |
| height: 600px; | |
| } | |
| </style> | |
| </head> |
| <?php | |
| function ceil_plus(float $value, ?int $precision = null): float | |
| { | |
| if (null === $precision) { | |
| return (float) ceil($value); | |
| } | |
| if ($precision < 0) { | |
| throw new \RuntimeException('Invalid precision'); | |
| } |
| '''デプロイ関連タスクのための Fabric コマンド''' | |
| # .env ファイルの中身は次のとおり | |
| # hosts=ホスト名A|ホスト名B | |
| # shell='/usr/local/bin/bash -l -c' | |
| # project_path='/var/www/プロジェクト名' | |
| from functools import wraps | |
| from pathlib import Path |
| import unittest | |
| from unittest import mock | |
| import requests | |
| import PypiPackageInfo | |
| URL_JSON = ... |
| # coding: utf-8 | |
| '''Compresses a directory into a zip file excluding .DS_Store files in MacOS. | |
| ''' | |
| import argparse | |
| import zipfile | |
| from pathlib import Path | |
| from typing import Iterable, List |
| # coding: utf-8 | |
| """Provides functions to add file permissions. | |
| read: | |
| stat.S_IRUSR | |
| stat.S_IRGRP | |
| stat.S_IROTH | |
| write: |
| # coding: utf-8 | |
| """Gets Fibonacci numbers with a linear Order. | |
| """ | |
| def get_fibonacci(n): | |
| a = 0 | |
| b = 1 | |
| for i in range(0, n): |
| # coding: utf-8 | |
| """Get a Fibonacci number with O(log(n)). | |
| 1, 1, 2, 3, 5, 8, 13, 21, ... | |
| The logic to get a Figonacci number with O(log(n)) is explained at https://kukuruku.co/post/the-nth-fibonacci-number-in-olog-n . | |
| """ | |
| from functools import lru_cache, reduce |
| # coding: utf-8 | |
| """Tower of Hanoi. | |
| """ | |
| TOTAL_DISK = 3 | |
| def main(): | |
| print('started.') |