I hereby claim:
- I am tokifujp on github.
- I am tokifujp (https://keybase.io/tokifujp) on keybase.
- I have a public key ASC_u44y6A4E3l006Jk47Ld7pjyFeIlblO2BTTW5SnZW4wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* You often need to get the content or title from a specific post. | |
* Sometimes, using a custom loop is the better option, but when you only need | |
* to get information from a specific post, there’s a better option | |
*/ | |
echo do_shortcode(get_post_field('post_content', $post_id)); |
tokifujp:~ tokifujp$ ll / | |
: | |
drwxrwxr-x+ 49 tokifujp admin 1666 Jan 21 13:58 Applications | |
: |
#!/bin/bash | |
if [ $# -ne 0 ]; then | |
echo "willbe api を /var/www/html/v$1 にdeployします。" | |
sudo mkdir /var/www/html/v$1 | |
sudo ln -s /var/www/v$1/application/ /var/www/html/v$1/application | |
sudo ln -s /var/www/v$1/index.php /var/www/html/v$1/index.php | |
sudo ln -s /var/www/v$1/license.txt /var/www/html/v$1/license.txt | |
sudo ln -s /var/www/v$1/system/ /var/www/html/v$1/system |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title><?= title ?></title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> |
function doGet(e){ | |
var thisData = getSummaryData(); | |
// 図形描画処理 | |
var data = Charts.newDataTable() | |
.addColumn(Charts.ColumnType.STRING, '日') | |
.addColumn(Charts.ColumnType.NUMBER, '排尿') | |
.addColumn(Charts.ColumnType.NUMBER, '排便') | |
.addColumn(Charts.ColumnType.NUMBER, '導尿') |
function reportExcretion() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); | |
var values = rows.getValues(); | |
var urination = 0; // 排尿回数 | |
var defecation = 0; // 排便回数 | |
var catheterization = 0; // 導尿回数 | |
var postUrl = "https://hooks.slack.com/services/*********/*********/*********************"; // incomng webhookのPost ID | |
var postChannel = '#toki3_memo'; // Slack Channel | |
var username = 'ときさんメモBot'; | |
var feedURL = ''; // RSSフィードのURL | |
var hashtag = '#toki3_memo'; // 抽出条件ハッシュタグ | |
var hours = 1; // 何時間前までの記事を読み込むか | |
function parseXml() { | |
var xml = UrlFetchApp.fetch(feedURL).getContentText(); | |
var items = getElements(xml,'item'); |
var postUrl = "https://hooks.slack.com/services/*********/*********/*********************"; // incomng webhookのPost ID | |
var postChannel = "#channel"; // Channel | |
var username = 'リマインダー嬢'; // ユーザー名(表示名) | |
/*************************************** | |
* Slackに投稿させる内容を作る | |
***************************************/ | |
function postToSlack() { | |
var message = 'こんちゃす!'; // Post内容 | |
sendHttpPost(message, username); // Post |
<?php | |
require 'vendor/autoload.php'; | |
use Aws\S3\S3Client; | |
$s3 = S3Client::factory(); | |
$bucket = 'aws-php-test'; | |
$result = $s3->deleteBucket(array( | |
'Bucket' => $bucket | |
)); |