Skip to content

Instantly share code, notes, and snippets.

AddHandler cgi-script .cgi
Options +ExecCGI
build
lib
#compdef ditz dit
_ditz () {
compadd `ditz help | grep --color=no -o " \([a-z-]*\):" | grep -o --color=no "[^:]*" | xargs`
}
compdef _ditz ditz
<html>
<head>
<title>もぐらたたき</title>
<script type="text/javascript">
n=0;
score=0;
timeout=30000; //ゲーム時間は30秒
t=1000; //1000ms毎に表示

TDDBC 1回目のペア. @PAPAMITRA さん

#!/usr/bin/env php
<?php
$stdout = fopen('php://stdout', 'w');
$stderr = fopen('php://stderr', 'w');
fwrite($stdout, "Hello stdout\n");
fwrite($stderr, "Hello stderr\n");
sleep(100);
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#!/usr/bin/env php
<?php
$fp = fopen('php://stdin', 'r');
if (! $fp) {
exit('cannot open stdin');
}
while (! feof($fp)) {
#!/bin/sh
root=<path to binary>
exec $root/`basename $0` "$@"
#!/bin/sh
base=`basename $PWD`
Base=`echo $base | cut -c 1 | tr '[a-z]' '[A-Z]' | awk '{printf $1}'; echo $base | sed -e 's/.//'`
android create project --target 10 --path . --activity ${Base} --package cla.irvy.${base}
cat <<EOL > .gitignore
bin
gen
EOL