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
/* | |
chart.jsを使ったkintoneレコードのグラフ化 | |
http://www.messiahworks.com/archives/9005 | |
kintoneデフォルトのグラフ化機能に比べて、これを使うメリット | |
メリットその1、過去の年月と比較できる(デフォルトだと日付順にしかグラフ化できない) | |
メリットその2、データのない月(月単位はともかく、売上等など日単位だとレコードが生成されない)でも、初期値の0で表示される | |
公式サンプル(レーダーチャート) | |
https://cybozudev.zendesk.com/hc/ja/articles/202982064-Cybozu-CDN%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%83%AC%E3%83%BC%E3%83%80%E3%83%BC%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B |
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> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>c3.jsのテスト</title> | |
<!-- グラフのライブラリをインポート --> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<!-- https://github.com/masayuki0812/c3 からダウンロードする --> | |
<script src="c3.min.js"></script> |
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
<?php | |
// アプリケーション設定 | |
define('CONSUMER_KEY', 'xxxx.apps.googleusercontent.com'); //クライアント ID | |
define('CONSUMER_SECRET', 'password mitaina'); // パスワードみたいなもの | |
define('CALLBACK_URL', 'http://xxx.com/contacts/callback.php'); | |
// URL | |
define('TOKEN_URL', 'https://accounts.google.com/o/oauth2/token'); // アクセストークンを取得するURL | |
define('INFO_URL', 'https://www.google.com/m8/feeds/contacts/default/full'); // Contacts(アドレス帳の)API | |
//-------------------------------------- |
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
<?php | |
// アプリケーション設定 | |
define('CONSUMER_KEY', 'xxxx.apps.googleusercontent.com'); // クライアント ID | |
define('CALLBACK_URL', 'http://xxx.com/contacts/callback.php'); //認証が終ったら戻ってくる自分のページ | |
define('AUTH_URL', 'https://accounts.google.com/o/oauth2/auth'); // Goole側で認証してくれる | |
//-------------------------------------- | |
// 認証ページにリダイレクト | |
//-------------------------------------- | |
$params = array( |
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
#include <stdio.h> | |
#include <stdlib.h> | |
//降順ソート関数 | |
int compare_int(const void *b, const void *a) | |
{ | |
return *(int*)a - *(int*)b; | |
} | |
int main(void) |
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 FILE_FIELD_CODE = "VideoFile"; // 添付ファイルのフィールドコード名(1つ目のファイルだけ) | |
const PLAY_FIELD_CODE = "video_area"; // 動画再生するスペースのフィールドコード名 | |
(function(){ | |
"use strict"; | |
// 詳細画面を表示する時 | |
kintone.events.on('app.record.detail.show', function(event){ | |
// 添付ファイルのファイルキーを取得(一番最初のファイルのみ) |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/kintone/plugin-sdk/master/stylesheet/51-jp-default.css"> | |
</head> | |
<body> | |
<div class="kintoneplugin-alert"> | |
<p>このメッセージは注意書きです。</p> | |
</div> | |
<div class="kintoneplugin-row">設定項目の行</div> |
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
// | |
// ViewController.h | |
// 寄生獣 | |
// | |
// Created by fddcddhdd on 2014/12/11. | |
// Copyright (c) 2014年 fddcddhdd. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import <CoreLocation/CoreLocation.h> |
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
(function() { | |
"use strict"; | |
// 関連レコードのフィールド名から、参照先アプリIDを取得する事も出来る。アプリテンプレート化するならコチラの関数を使う。 | |
var related = 18; //kintone.app.getRelatedRecordsTargetAppId('関連レコード一覧'); | |
// 「商品種別」と集計結果を出力するスペースの「要素ID名」を連想配列でセットする | |
var arrSumRelatedRecords = { | |
"商品種別A":"ItemKindA_sum", | |
"商品種別B":"ItemKindB_sum", |
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
#!/bin/sh | |
# 定数(全曲が入ったm3uファイル名・フォルダ毎のm3uを入れるフォルダのパス) | |
all_m3u_text_filepath=$(dirname $0)/all_m3u.txt | |
m3u_folder_fullpath=$(dirname $0)/m3u_list/ | |
# このシェルスクリプトのサブディレクトリ以下にある音楽ファイル(mp3, wma)のリストファイルを生成。 | |
find $(dirname $0) -name "*.mp3" -o -name "*.wma" | sort > "${all_m3u_text_filepath}" | |
# m3uファイルを入れるフォルダを生成(既にあったら削除) |