Skip to content

Instantly share code, notes, and snippets.

clock
*.o
temp1.ps
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
use POSIX ();
sub main {
#!/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
#!/bin/sh
root=<path to binary>
exec $root/`basename $0` "$@"
#!/usr/bin/env php
<?php
$fp = fopen('php://stdin', 'r');
if (! $fp) {
exit('cannot open stdin');
}
while (! feof($fp)) {
#!/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
$stdout = fopen('php://stdout', 'w');
$stderr = fopen('php://stderr', 'w');
fwrite($stdout, "Hello stdout\n");
fwrite($stderr, "Hello stderr\n");
sleep(100);

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

<html>
<head>
<title>もぐらたたき</title>
<script type="text/javascript">
n=0;
score=0;
timeout=30000; //ゲーム時間は30秒
t=1000; //1000ms毎に表示