NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |
#!/bin/bash | |
# | |
# This script checks if a mysql server is healthy running on localhost. It will | |
# return: | |
# | |
# "HTTP/1.x 200 OK\r" (if mysql is running smoothly) | |
# | |
# - OR - | |
# | |
# "HTTP/1.x 500 Internal Server Error\r" (else) |
--- Log opened Mon Aug 01 00:00:23 2011 | |
--- Day changed Wed Aug 03 2011 | |
[20110803T091729+0800]< sanyuan> w | |
--- Log closed Thu Aug 04 07:52:01 2011 | |
--- Log opened Thu Aug 04 07:52:07 2011 | |
[20110804T075207+0800]-!- Irssi: #coscup: Total of 27 nicks [3 ops, 0 halfops, 0 voices, 24 normal] | |
[20110804T075320+0800]-!- Irssi: Join to #coscup was synced in 77 secs | |
--- Day changed Mon Aug 08 2011 | |
[20110808T130743+0800]-!- kyu is now known as kengyu | |
--- Day changed Tue Aug 09 2011 |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>test upload by chunk</title> | |
</head> | |
<body> | |
<input type="file" id="f" /> | |
<script src="script.js"></script> |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"routes" | |
"net/http" | |
) |
// -*- coding: utf-8 -*- | |
// 参考: 床井研究室 - (4) シェーダの追加 | |
// http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20120909 | |
package main | |
import ( | |
gl "github.com/chsc/gogl/gl33" | |
"github.com/jteeuwen/glfw" | |
"log" | |
"unsafe" |
package main | |
import ( | |
"log" | |
"myserver" | |
"net/http" | |
) | |
const addr = "localhost:12345" |
var element; | |
document.addEventListener('touchstart', function(event) { | |
event.preventDefault(); | |
var touch = event.touches[0]; | |
element = document.elementFromPoint(touch.pageX,touch.pageY); | |
}, false); | |
document.addEventListener('touchmove', function(event) { | |
event.preventDefault(); | |
var touch = event.touches[0]; |