When you cannot use 'sudo' command because you use 'usermod- G' instead of 'gpasswd -a' on Ubuntu...
$ lsb_release -a
...
Description: Ubuntu 14.04 LTS
...
/** | |
* Getting started kintone JavaScript customization . | |
* | |
* @author rkaneko | |
* @createdAt 2014/06/23 | |
*/ | |
(function () { | |
"use strict"; | |
kintone.events.on('app.record.index.show', function(event) { |
(function () { | |
"use strict"; | |
kintone.events.on('app.record.edit.show', function(event) { | |
var record = event.record; | |
record['here_is_field_id']['disabled'] = true; | |
return event; | |
}); | |
})(); |
(function () { | |
"use strict"; | |
kintone.events.on('app.record.index.show', function(event) { | |
var fields = ['レコード番号', '作成者', 'Some_field_id']; | |
var query = "some_query"; | |
var params = { | |
fields: fields, | |
app: event.appId |
#!/bin/bash | |
cat <<_EOT_ | |
# executing script name. Naming starting point is directory which call this scrip. | |
$0: $0 | |
# parent directory of executing script. | |
`dirname $0`: `dirname $0` | |
# name of executing script. |
#!/bin/bash | |
### Shell script for https://github.com/rkaneko/cpp-template . | |
### | |
### @author rkaneko | |
### @createAt 2014/07/12 | |
# see if arg exists or not. | |
# arg0: some arg | |
existArg1() |
// TODO refactor ここが原因で落ちる | |
std::string Handler::receive(const int &client_sd) { | |
char buf[RCV_BUF_SIZE]; | |
// readで落ちる? | |
if (read(client_sd, buf, RCV_BUF_SIZE) < 0) { | |
Logger::error() << "read()"; | |
} | |
std::string str(buf); |
package controllers; | |
import play.mvc.BodyParser; | |
import play.mvc.Controller; | |
import play.mvc.Result; | |
import play.data.Form; | |
import forms.CreateAccountForm; | |
public class Application extends Controller { | |