This file contains hidden or 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 hidden or 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 hidden or 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("SEARCH_KEYWORD", '横須賀線,遅延'); // twitter検索したいキーワード | |
define("TWEET_NUM_FOR_MAIL", 10); // 何件以上ヒットしたらメールするか | |
define("SEND_MAIL_ADDRESS", '[email protected]'); // 通知して欲しいメアド | |
define("FROM_MAIL_ADDRESS", '[email protected]'); // 送信元メールアドレス(迷惑メールにならないようにする) | |
define("SINCE_HOUR", 6); // 検索開始する時刻。6なら朝6時から開始(crontabで開始させる) | |
define("UNTIL_HOUR", 7); // この時刻を超えると検索しない。7なら7:59まで | |
define("SLEEP_SECOND", 60); // twitter検索する間隔(秒) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
// カテゴリーマスタ・アプリの情報 | |
var MASTER_CATEGORY_APP_NO = 1; | |
var MASTER_CATEGORY_QUERY = ' 有効フラグ in ("ON") '; | |
var MASTER_BIG_CATEGORY_NAME = '大カテゴリ'; | |
var MASTER_MIDDLE_CATEGORY_NAME = '中カテゴリ'; | |
var MASTER_SMALL_CATEGORY_NAME = '小カテゴリ'; | |
// プルダウンの値を格納するフィールド名(このJSを読み込んでいるアプリ) | |
var BIG_CATEGORY_NAME = '大'; | |
var MIDDLE_CATEGORY_NAME = '中'; |
This file contains hidden or 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 hidden or 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 hidden or 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ファイルを入れるフォルダを生成(既にあったら削除) |