Skip to content

Instantly share code, notes, and snippets.

kevan

Block or report user

Report or block kevan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4275398
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = /tmp
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
View gist:4275358
<?php
class Comment
{
public static function gets($node_id)
{
$comments = Db::select()
->from('comments')
->where('node_id', '=', $node_id)
->and_where('status', '=', 1)
->order_by(Db::expr('SUBSTRING(thread, 1, (LENGTH(thread) - 1))'), 'asc')
@kevan
kevan / hideaddrbar.js
Created Jul 30, 2012 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android
View hideaddrbar.js
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){
@kevan
kevan / gist:2848867
Created Jun 1, 2012 — forked from raptium/gist:2848464
敏感词列表
View gist:2848867
You can’t perform that action at this time.