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 | |
// Database connection information | |
$host = 'localhost'; | |
$user = 'gnip'; | |
$pass = 'gnip'; | |
$db = 'gnip'; | |
$table = 'activity'; | |
// Read raw post data |
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 | |
// temp dir | |
$temp_dir = 'c:/windows/temp/'; | |
// construct the filename | |
$temp_file = $temp_dir."phpcs-".time().".tmp"; | |
// get the argument | |
$to_check = $argv[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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" /> | |
<title>PHP_CodeSniffer</title> | |
<style type="text/css"> | |
div { | |
font-family: arial; | |
font-size: 0.9em; |
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
// ==UserScript== | |
// @name iGoogle Lite | |
// @namespace http://userscripts.org/users/84491 | |
// @description Removes unnecessary sections from iGoogle. | |
// @include http://google.tld/ig* | |
// @include http://*.google.tld/ig* | |
// @include https://*.google.tld/ig* | |
// @include https://google.tld/ig* | |
// ==/UserScript== | |
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 | |
class GoogleAnalytics extends Plugin { | |
function info() | |
{ | |
return array( | |
'url' => 'http://iamgraham.net/plugins', | |
'name' => 'GoogleAnalytics', | |
'description' => 'Automatically adds Google Analytics code to the bottom of your webpage.', | |
'license' => 'Apache License 2.0', | |
'author' => 'Graham Christensen', |
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
// ==UserScript== | |
// @name Better Hiveminder | |
// @namespace http://gist.github.com/163081 | |
// @include http://*hiveminder.com/* | |
// ==/UserScript== | |
GM_addStyle(<><![CDATA[ | |
body { | |
font-family:"Arial",Helvetica,Helvetica Neue,Verdana,sans-serif; | |
} |
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
Stack::add('template_stylesheet', array(Site::get_url('theme').'/style.css', 'screen'), 'style'); |
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
<key>IOPCIMatch</key> | |
<string>0x71461002 0x71421002 0x71091002...</string> |
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
pear install PHP_CodeSniffer |
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
cd PROJECT_DIRECTORY | |
PATH_TO_PHP_CODESNIFFER --tab-width=4 --report=xml . > phpcs.xml |
OlderNewer