Ruby

書式
def メソッド名(引数名)
some code
end
使用例

#!/usr/bin/ruby# -*- coding: UTF-8 -*-#メソッドAの定義def testFuncA(c ...

Java

書式
1.public static long parseLong(String s)throws NumberFormatException
文字列の引数を符号付き10進数longとして構文解析します。
2. ...

jQuery

1.構文
$selector.prop(‘checked’,true);
$selector.prop(‘checked’,false);
2.htmlコード ...

Linux

修正ファイル:
/etc/mail.rc

追加:
set admin@arkgame.com
set smtp=smtp.arkgame.com
set smtp-auth-user=rep ...

SQL

書式
SELECT * FROM テーブル名
WHERE 項目名 NOT IN (値1,値2,XXX)
使用例

SELECT * FROM USER_TBLWHERE NAME NOT IN ('A01' ...

PHP

phpコード
function multiarray_Compare($a, $b)
{
$val_arr = array(
‘gold’=>’asc̵ ...

Python

サンプルコード:
#!/usr/bin/env python
#
urlfile = urllib2.urlopen(‘
print “ドキュメント”, urlfil ...

Python

サンプルコード:
#!/usr/bin/env python

import ftplib # FTPモジュールをインポート
session = ftplib.FTP(‘ftp.arkgame.c ...

Python

サンプルコード:
#!/usr/bin/python
# Filename: histsimilar.py
# -*- coding: utf-8 -*-

import Image

de ...

Python

1.group()
例:
>>> m=re.match(“(\w+) (\w+)”,”abcd efgh, chaj”)
>>> ...

Python

1.random()
乱数範囲: 0 <= n < 1.0
例:
>>> print random.random()
0.283212844881

2.unif ...

Python

1.pythonプロセス
os.listdir(dirname)
os.getcwd()
os.getpid()
os.chdir(dirname)
os.name
os.getenv( ...

Python

コード下記:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import ftplib
import os
import socket

HO ...

IOS

コード下記:
class Figure{
var name:String!
var nickname:String?
init(){
name = “美穂”
} ...

IOS

サンプルコード:
struct startnews24 {
let offset:Int
var textCount:Int
subscript(index:Int) -> Int{
ge ...

IOS

コード下記:
struct SomeStructure {
static var storedTypeProperty = “Some value.”
static var comput ...

IOS

サンプルコード:

func swapTwoInts(inout a: Int, inout b: Int) {
let temporaryA = a
a = b
b = temporaryA

Linux

1.操作コマンド:
# rpm -qa|grep sudo
sudo-1.6.9p17-5.el5
# visudo rootで/etc/sudoersを開く
root ALL=(ALL) ALL ...