Skip to content

Instantly share code, notes, and snippets.

@tecking
tecking / duplicateJamboard.js
Last active September 8, 2022 00:53
Google Jamboard を複製して URL 一覧を作成するだけの Google Apps Script (GAS)
/*
* Google Jamboard を複製して URL 一覧を作成するだけの Google Apps Script (GAS)
* 2つの学級 A, B に、それぞれ10個の Jamboard を設ける例
* Jamboard のファイル名と URL をペアにした一覧表をスプレッドシートで出力
*/
const folderId = 'TARGET_FOLDER_ID';
const templateFileId = 'TEMPLATE_JAMBOARD_FILE_ID';
const className = [
'A', 'B'
@tecking
tecking / tips.md
Last active October 9, 2019 13:05
Local by Flywheelのサイトフォルダを復活させる場合にエラーが出るときの対策

How can I restore a site from a Local site folder?に沿って復活させようとすると myloader コマンドをたたいたときに

** (myloader:828): CRITICAL **: Error restoring local.wp_posts from file local.wp_posts.sql: Table 'local.wp_posts' doesn't exist

というようなエラーが出てDBを復帰できない。

そこで、次のようなコマンドをたたいて *.sql ファイルの先頭に1行挿入する。

@tecking
tecking / force-https-htaccess.txt
Created November 28, 2018 08:45 — forked from fillipetech/force-https-htaccess.txt
Force https #https #security
RewriteEngine On
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@tecking
tecking / 高志高校40回卒同窓会『ドキッ! みどり葉の集いが迫ってきちゃったYO!』.md
Last active August 10, 2017 08:38
高志高校40回卒同窓会『ドキッ! みどり葉の集いが迫ってきちゃったYO!』

イメージ画像

残暑お見舞い申し上げます! てっきんです!

さて、2010年の『ドキッ! 真夏の大同窓会』から早7年。そろそろ久しぶりにちょっとした集まりをやってみようじゃないですかということで、40回卒の同窓会イベントを企画しました。

ん? なんで「7年」という中途半端な時期に?

そう感じたそこのあなた! 鋭い! 実に鋭い!

@tecking
tecking / SDHelper.php
Last active August 29, 2015 14:20
パンくずリストに構造化データを追記する baserCMS 用独自ヘルパー
<?php
/**
* SDHelper パンくずリストに構造化データを追記するヘルパー
* テーマファイル内で $this->SD->foo() の記述で呼び出す
*/
class SDHelper extends AppHelper {
/**
* ヘルパー

これは何

Adobe Kuler からいい感じの色の組み合わせを抜いてくるスクリプト です。 Kuler API というのがあったらしいけど今見たら提供されてなかったので書いた。 自己責任で使ってください。

getHexBackgroundColor

http://stackoverflow.com/questions/3048838/jquery-css-color-value-returns-rgb をそのままコピーしてます。

@tecking
tecking / gist:7764551
Last active December 30, 2015 02:39
Google の検索結果にて author 画像を非表示にするスタイル
/*
* Google の検索結果にて author 画像を非表示にするスタイル
* 検証環境: Google Chrome (Windows) + Stylish
* 適用先: ドメイン上の URL として google.com と google.co.jp を指定
*/
.rc .s .th {
display: none !important;
}
@tecking
tecking / genpost.sh
Last active December 28, 2015 05:49
genpost.sh
#!/bin/sh
#
# Configuration files.
# "post_content.txt" is based on "Ryoko No Konjaku"(KODA Rohan).
# http://www.aozora.gr.jp/cards/000051/files/1444_47834.html
# "post_thumbnail.txt" is based on "PAKUTASO".
# http://www.pakutaso.com/
#
@tecking
tecking / setup.sh
Last active December 27, 2015 16:49
WordPress installation script using WP-CLI (require: Vagrant and VVV (Varying Vagrant Vagrants) ).
#!/bin/sh
#
# Enter arguments.
#
echo "Enter some arguments for installation."
while true; do
echo -n "Target directory? (e.g., /vagrant/www/foo) : "
@tecking
tecking / 『あまちゃん』最終回をみんなで視よう \('j')/ じぇ! の会.md
Last active December 24, 2015 02:19
『あまちゃん』最終回をみんなで視よう \('j')/ じぇ! の会

イメージ画像

Twitterでの「あま絵祭り」や怒濤のグッズリリースなど、近年の朝ドラの中でも異例の盛り上がりを見せている『あまちゃん』。北三陸編から東京編、再びの北三陸編……ときて、半年間ファンを楽しませてくれたこのドラマもいよいよ最終回を迎えることとなりました。

ということで、「あまファン」のみなさんと一緒に最終回を見届けてあげようではありませんか!と

  • 早あま(NHK BS3 7:30~)
  • 朝あま(NHK G 8:00~)
  • 土あま(NHK BS3 9:30~)
  • 昼あま(NHK G 12:45~)