横持ちはいわゆる「普通の」データの持ちかたのこと。 例えばレコードごとにa, b, c, dの4つの属性を持つ テーブルを作る場合、次のようなテーブルが横持ちテーブルである。
This file contains 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
/** | |
* node.jsを使った対話型コマンドラインツール | |
* node.jsはイベントループなので、他の言語のようにwhileで入力待ちしたりしなくていいのがすばらしい | |
* 入出力はreadlineを使う | |
*/ | |
var rl = require('readline'); // readline | |
var utl = require('util'); |
This file contains 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
<!DOCTYPE html> | |
<!-- | |
このファイルと同一のディレクトリに | |
ガントチャート表示したいスケジュールを書いたschedule.csvを置いてブラウザで開く。 | |
表示開始日時、表示終了日時を変更したい場合は下記のstart_time, end_timeを書き換える。 | |
TODO: 月末・月初に使うことを想定していないので修正する | |
== schedule.csvの例(完了/未完了をoxで書く,開始(日+時刻),完了(日+時刻),スケジュール名 == | |
complete,start,end,title | |
x,28 17:06,,チケット#1234の消化 |
This file contains 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
<# | |
.Synopsis | |
WebページからTextを取得 | |
.DESCRIPTION | |
指定したUrlのHTMLドキュメントからTextノードのみを抽出します。 | |
.EXAMPLE | |
Get-WebText "http://example.com" | |
.EXAMPLE | |
"http://example1.com","http://example2.com","http://example3.com" | Get-WebText | |
#> |
シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ
- C製
- Doxygen, Moinmoinなどと連携可能
- ブロック図、クラス図、ネットワーク図など
この投稿では、iOSのファイルシステムについて理解し、データを永続化(iCloud含む)する方法を紹介する。尚、サンプルコードは動かない可能性もあるので参考程度にして下さい。
アプリがファイルシステムとやり取り出来る場所は、ほぼアプリのサンドボックス内のディレクトリに制限されている。新しいアプリがインストールされる際、インストーラーはサンドボックス内に複数のコンテナを作成し、図1に示す構成をとる。各コンテナには役割があり、Bundle Containerはアプリのバンドルを保持し、Data Containerはアプリとユーザ両方のデータを保持する。Data Containerは用途毎に、さらに複数のディレクトリに分けられる。アプリは、例えばiCloud Containerのように、実行時に追加のコンテナへのアクセスをリクエストすることもある。
図1. An iOS app operating within its own sandbox
This file contains 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
Const = { | |
spreadSheetId: 'xxxxxxxxxxxxxxxxxx', | |
obentColumnIdx: 6, | |
sheetStartDate: new Date(2017, 0, 19), | |
sheetTopMarginRows: 4, | |
scheduleOrderTime: new Date(2017, 0, 1), | |
scheduleRemindTime: new Date(2017, 0, 1), | |
triggers: { | |
triggerDays: [ScriptApp.WeekDay.SUNDAY, | |
ScriptApp.WeekDay.MONDAY, |
This file contains 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
<Window x:Class="aclk.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:aclk" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="100" Width="100" | |
WindowStyle="None" Background="Transparent" AllowsTransparency="True" | |
MouseLeftButtonDown="Window_MouseLeftButtonDown" ShowInTaskbar="False" |
OlderNewer