Skip to content

Instantly share code, notes, and snippets.

View nook-scheel's full-sized avatar

Nook Scheel nook-scheel

View GitHub Profile
<?php
/**
* Project: Admin
* Copyright: ©2006-2011 Pumpkin Inc. and contributors.
* Portions ©2007-2011 Pumpkin Inc. All rights reserved.
* @package Users
*/
class User_Model extends CI_Model
Index: sapi/cli/config.w32
===================================================================
--- sapi/cli/config.w32 (revision 308839)
+++ sapi/cli/config.w32 (working copy)
@@ -6,7 +6,8 @@
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no');
if (PHP_CLI == "yes") {
- SAPI('cli', 'php_cli.c', 'php.exe');
+ SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe');
<?php
class ShortsTable extends Doctrine_Table
{
public static function getInstance()
{
return Doctrine_Core::getTable('Shorts');
}
<?php // --------------------------------------------------------------------
/**
* Load class
*
* This function loads the requested class.
*
* @param string the item that is being loaded
* @param mixed any additional parameters
* @param string an optional object name
// ==========================================================================
// Project: Exapp - mainPage
// Copyright: @2011 My Company, Inc.
// ==========================================================================
/*globals Exapp */
// This page describes the main user interface for your application.
Exapp.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
Exapp.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
// Add childViews to this pane for views to display immediately on page
// load.
mainPane: SC.MainPane.design({
childViews: 'toolbarView leftView labelView okButtonView cancelButtonView'.w(),
toolbarView: SC.ToolbarView.design({
anchorLocation: SC.ANCHOR_TOP,
// ==========================================================================
// Project: Exapp - mainPage
// Copyright: @2011 My Company, Inc.
// ==========================================================================
/*globals Exapp */
// This page describes the main user interface for your application.
Exapp.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
@nook-scheel
nook-scheel / short.php
Created October 18, 2011 17:17
Short Controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Short extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('form');
$this->load->helper('url');
$this->load->model('Short_Model');
@nook-scheel
nook-scheel / clean-use.php
Created December 12, 2011 07:24 — forked from ezzatron/clean-use.php
Script to clean unnecessary PHP use statements
#!/usr/bin/env php
<?php
$paths = array();
if (isset($_SERVER['argv']))
{
$paths = $_SERVER['argv'];
array_shift($paths);
if (!$paths)
@nook-scheel
nook-scheel / example.conf
Created April 2, 2012 08:43 — forked from cobbweb/example.conf
Nginx and PHP-FPM
server {
listen 8080;
server_name example.dev www.example.dev;
location / {
root /Users/Cobby/Sites/Example;
if ($host = 'www.example.dev' ) {
rewrite ^/(.*)$ http://example.dev:8080/$1 permanent;
}