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() { | |
// Model | |
var Task = Backbone.Model.extend({ | |
defaults: { | |
title: 'do something!', | |
completed: false | |
}, | |
validate: function(attrs) { | |
if (_.isEmpty(attrs.title)) { | |
return "title must not be empty!"; |
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() { | |
// Model | |
var Task = Backbone.Model.extend({ | |
defaults: { | |
title: 'do something!', | |
completed: false | |
} | |
}); | |
var task = new Task(); |
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() { | |
// Model | |
var Task = Backbone.Model.extend({ | |
defaults: { | |
title: 'do something!', | |
completed: false | |
} | |
}); | |
var task = new Task(); |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :forwarded_port, guest: 80, host: 4567 | |
config.vm.provision :shell, :path => "bootstrap.sh" | |
end |
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 | |
function content_save_pre_func($content){ | |
global $allowedposttags; | |
$allowedposttags['iframe'] = array( | |
'class' => array () , | |
'src'= > array() , | |
'width' => array(), | |
'height' => array() , | |
'frameborder' => 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
cinst googlechrome git notepadplusplus firefox 7zip atom vlc skype putty dropbox libreoffice silverlight winscp sourcetree opera winmerge itunes quicktime evernote steam 1password clipx |
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
jQuery.noConflict(); | |
(function($) { | |
"use strict"; | |
/** | |
* レコード表示時にサムネイルを表示する | |
*/ | |
kintone.events.on('app.record.detail.show', function(event) { | |
var record = event.record; | |
var output = kintone.app.record.getSpaceElement('thumbnail'); | |
output.innerHTML = '<img src="' + record['サムネイル']['value'] + '">'; |
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
kintone.events.on('app.record.create.show', function(e) { | |
var record = e.record; | |
/* ボタンの作成 */ | |
var button = document.createElement('button'); | |
button.innerHTML = 'click me'; | |
button.addEventListener('click', function() { | |
var record = kintone.app.record.get(); | |
record['record']['xxx']['value'] = 'click the button!'; | |
kintone.app.record.set(record); |
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("API_TOKEN", ""); | |
define("SUB_DOMAIN", ""); | |
define("APP_NO", ""); | |
//サーバ送信するHTTPヘッダを設定 | |
$context = stream_context_create(array ( | |
'http'=>array( | |
'method'=>'GET', | |
'header'=> "X-Cybozu-API-Token:". API_TOKEN ."\r\n" |
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
abc |