Skip to content

Instantly share code, notes, and snippets.

View YamiOdymel's full-sized avatar
🎥
Watching VRChat Handjob V2 (Edit Audio)

Yami Odymel YamiOdymel

🎥
Watching VRChat Handjob V2 (Edit Audio)
View GitHub Profile
@cowboy
cowboy / github_post_recieve.php
Created October 11, 2010 02:04
GitHub PHP webhook to auto-pull on repo push
<?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
@aw
aw / mysqlchk_status.sh
Created July 8, 2011 04:28
Check if a MySQL server is healthy
#!/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)
@jeffhung
jeffhung / gist:1160862
Created August 21, 2011 17:12
IRC Log for #coscup in Aug, 2011.
--- 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
@necolas
necolas / README.md
Last active March 28, 2024 20:34
Experimenting with component-based HTML/CSS naming and patterns

NOTE I now use the conventions detailed in the SUIT framework

Template Components

Used to provide structural templates.

Pattern

t-template-name
@shiawuen
shiawuen / index.html
Created December 29, 2011 15:05
Sample to upload file by chunk
<!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>
@gre
gre / easing.js
Last active May 17, 2024 03:33
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* 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 = {
@jordanorelli
jordanorelli / example.go
Created April 7, 2012 19:22
a regex router in go.
package main
import (
"fmt"
"io"
"log"
"routes"
"net/http"
)
@mandel59
mandel59 / hello.go
Created October 14, 2012 07:31
Golang OpenGL Shader Example
// -*- 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"
@cespare
cespare / main.go
Created February 20, 2013 03:05
Example of testing Go HTTP servers using httptest.Server.
package main
import (
"log"
"myserver"
"net/http"
)
const addr = "localhost:12345"
@cemerson
cemerson / hold.js
Created April 15, 2013 13:50
JavaScript: Touch/Click and Hold
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];