-
公式ドキュメント(日本語訳版) -- http://www.playframework-ja.org/documentation/2.1.5/Home --- 「はじめに」 --- 「Java 開発者のための Play」
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 <string.h> | |
#include <stdlib.h> | |
int main() { | |
char buf[15], *token1; | |
int i, count, n, sum; | |
sum = 0; | |
fgets(buf, sizeof(buf), stdin); |
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
#!/usr/local/bin/python | |
import socket | |
import os | |
from subprocess import Popen, PIPE | |
PORT_NO = 8080 | |
HOSTNAME = '' | |
SCRIPT = "listen" | |
def main(): |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="lhaplus" /> | |
<package id="windowslivemail" /> | |
<package id="adobereader" /> | |
<package id="googlejapaneseinput" /> | |
<package id="git" /> | |
<package id="google-chrome-x64 " /> | |
<package id="firefox" /> |
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
for /f "usebackq tokens=1,2" %a in (`"for /L %n in (1,1,100) do @set /a (10-%n%3)/10 && set/a (10-%n%5)/10 && echo %n && echo."`) do @(if %a==11 (echo FizzBuzz) else if %a==10 (echo Fizz) else if %a==01 (echo Buzz) else (echo %b)) |
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
@echo off | |
REM dels | |
del Seq.txt Fizz.txt Buzz.txt FizzBuzz.txt | |
del merge.txt merge.pass.txt merge.pass.sort.txt | |
del out.txt | |
REM sequences | |
for /L %%i in (1,1,100) do @echo %%i 4 %%i>>Seq.txt | |
for /L %%i in (3,3,100) do @echo %%i 3 Fizz>>Fizz.txt |
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
Set SHELL = WScript.CreateObject("WScript.Shell") | |
Set Excel = WScript.CreateObject("Excel.Application") | |
'KEY CODE | |
Const VK_SNAPSHOT = &H2C | |
Const VK_MENU = &H12 | |
Sub PrintScreen | |
'PrintScreen On | |
Call API_keybd_event(VK_SNAPSHOT,0,1,0) |
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/bash | |
soniq(){ | |
sort | uniq $* | |
} | |
concat_commands() { | |
# $1 … method ( and | or | xor ) | |
# $2 … command | |
# $3 … command | |
local _arg="" | |
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 | |
Usage(){ | |
cat << __EOT__ >&2 | |
ファイルのステータスを確認します。 | |
Usage:`basename $0` ファイル名 | |
【使用例】 | |
$ `basename $0` file.txt |
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 JSArray2VBArray(arr) { | |
var vbs = new ActiveXObject("ScriptControl"); | |
vbs.Language = "VBScript"; | |
vbs.AddCode( | |
"Function makeArray\n" | |
+ "makeArray = Array(" + arr + ")\n" | |
+ "End Function\n"); | |
var ret = vbs.Run("makeArray"); | |
return ret; | |
} |