Skip to content

Instantly share code, notes, and snippets.

View navarr's full-sized avatar
🖥️
Magento

Navarr Barnier navarr

🖥️
Magento
View GitHub Profile
<?php
require_once("inc/includeAll.php");
if (!isset($_GET['a'])) { $site->location("/");die(); }
$name = strtolower($_GET['a']);
if ($name == "navarr")
{
$user = array
(
"name" => "Navarr T. Barnier",
"email" => "[email protected]",
<?php
class WebUser extends CWebUser
{
private $model = null;
public function getModel()
{
if(!isset($this->id)) $this->model = new User;
if($this->model === null)
@navarr
navarr / UserIdentity.php
Created September 30, 2012 00:25
Yii Authenticate against BGSU LDAP
<?php
/**
* UserIdentity represents the data needed to identity a user.
* It contains the authentication method that checks if the provided
* data can identity the user.
*/
class UserIdentity extends CUserIdentity
{
/**
//------------------------------------------------------
// ItemType
// Class Implementation File
// Ch. 3, C++ Plus Data Structures, Dale 5e, p. 155
// Filename: ch03-ItemType.cpp
//------------------------------------------------------
#include <iostream>
#include <string>
#include "ch03-ItemType.h"
using namespace std;
Cannot complete the install because of a conflicting dependency.
Software being installed: LESS 1.0.10 (net.vtst.ow.eclipse.less.feature.feature.group 1.0.10)
Software currently installed: Xtext Examples 2.1.1.v201111141332 (org.eclipse.xtext.examples.feature.group 2.1.1.v201111141332)
Only one of the following can be installed at once:
Xtext 2.0.1.v201108020636 (org.eclipse.xtext 2.0.1.v201108020636)
Xtext 1.0.2.v201102150722 (org.eclipse.xtext 1.0.2.v201102150722)
Xtext 2.1.1.v201111141332 (org.eclipse.xtext 2.1.1.v201111141332)
Xtext 2.3.0.v201206120633 (org.eclipse.xtext 2.3.0.v201206120633)
Xtext 2.3.1.v201208210947 (org.eclipse.xtext 2.3.1.v201208210947)
Xtext 2.2.1.v201112130541 (org.eclipse.xtext 2.2.1.v201112130541)
document.titleBar = new titleBar();
document.messageQueue = new messageQueue(3807,"\/chat\/new");
set autoindent
set nowrap
set smooth
set smarthome
set tabsize 4
set tabstospaces
## PHP Syntax Highlighting
syntax "php" "\.php[2345s~]?$"
# color red ".*"
@navarr
navarr / gist:3212972
Created July 31, 2012 02:34
Résumé
Navarr T. Barnier
(305) 508-5676 - [email protected]
Skill Summary
-----------------------------------------
* Programming with PHP, MySQL, Android, and limited Node.JS
* Web development with HTML5, CSS3, JavaScript (inc. jQuery), JSON, XML, and RSS
* Experience working with REST APIs such as Facebook, Twitter, and TransLoc
* Expert ability with Yii Framework and working knowledge of Zend Framework
* Strong interest in database design and the NoSQL movement
<?php
return array(
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'GII_PASSWORD',
'ipFilters'=>array('127.0.0.1','::1'),
),
),
'components'=>array(
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
// Save our state (and our JSON)
savedInstanceState.putBoolean("loaded", this.loaded);
if (this.json != null)
savedInstanceState.putString("json", this.json.toString());
}