Skip to content

Instantly share code, notes, and snippets.

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
<?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 July 30, 2012 01:47 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android
/*
* 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 June 1, 2012 04:47 — forked from raptium/gist:2848464
敏感词列表