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
<?php | |
$form = ""; | |
function write ($temp) { | |
$path = "temp.txt"; | |
$fp = fopen($path, "a"); | |
if ($fp) { | |
$time = time(); | |
fwrite($fp, "$time\t$temp\n"); | |
fclose($fp); |
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
メモ書き | |
---------- | |
Xdebug: | |
------ | |
Xdebug 2012.06.13 Changelog | |
=========================== |
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
/** | |
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0225 | |
* | |
* 回文問題 | |
* | |
* #scala_kansai_beginners | |
*/ | |
var buff = List( | |
"apple", |
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-option default-shell /bin/zsh | |
# Prefix | |
set-option -g prefix C-z | |
# 日本語環境なら必須?? | |
setw -g utf8 on | |
set -g status-utf8 on | |
# status |
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
<?php | |
/** 兎に角ループさせる */ | |
while (true) { | |
echo " [x] If you wanna stop, you push Ctrl-C","\n"; | |
require("reader.php"); | |
sleep(1); | |
} |
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/Cellar/php53/5.3.27/bin/php switch_or_array.php | |
start arr ... Finish: 10.038110971451 | |
start sw ... Finish: 6.0564711093903 |
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/Cellar/etc/apache2/httpd.conf | |
ServerRoot "/usr/local/Cellar/httpd/2.2.25" | |
Listen 8888 | |
LoadModule authn_file_module libexec/mod_authn_file.so | |
LoadModule authn_dbm_module libexec/mod_authn_dbm.so | |
LoadModule authn_anon_module libexec/mod_authn_anon.so | |
LoadModule authn_dbd_module libexec/mod_authn_dbd.so | |
LoadModule authn_default_module libexec/mod_authn_default.so | |
LoadModule authz_host_module libexec/mod_authz_host.so | |
LoadModule authz_groupfile_module libexec/mod_authz_groupfile.so |
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 | |
ps uax | awk 'BEGIN{FS=" ";OFS="\t";}{print $1,$2,$3,$4,$5,$6/1024 " MB",$7,$8,$9,$10,$11;}' |
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/bin/env python | |
import logging | |
from logging import getLogger, StreamHandler, DEBUG | |
logging.basicConfig( | |
level=logging.INFO, | |
format="%(asctime)s (%(threadName)-10s) %(levelname)s %(message)s") | |
logger = getLogger(__name__) | |
handler = StreamHandler() |
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
class ViewController: NSViewController | |
{ | |
func load(){ | |
let attributeText = NSMutableAttributedString(string: "テスト") | |
let field = NSTextField(frame: NSRect(x: 0, y: 0, width: 30, height: 30)) | |
let attr = [ | |
NSLinkAttributeName: "https://google.com/", | |
] as [String : Any] | |