Skip to content

Instantly share code, notes, and snippets.

View ngpestelos's full-sized avatar

Nestor G Pestelos Jr ngpestelos

View GitHub Profile
@ngpestelos
ngpestelos / gist:905275
Created April 6, 2011 07:35
install phpunit osx
Problem: no phpunit in console
PHPUnit requires PEAR >= 1.9.2
$ sudo pear channel-discover pear.symfony-project.com
$ sudo pear channel-discover components.ez.no
$ sudo pear upgrade
Install phpunit
$ sudo pear channel-discover pear.phpunit.de
$ sudo pear install phpunit/PHPUnit
@ngpestelos
ngpestelos / gist:907097
Created April 7, 2011 05:35
yii web app permissions
Change ownership to web server process
protected/models
protected/views
protected/controllers
chmod 777
protected/runtime
@ngpestelos
ngpestelos / about.md
Created August 16, 2011 01:03 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@ngpestelos
ngpestelos / jquery.evently.js.md
Created September 25, 2011 00:21
My notes on jquery.evently.js

Utilities

$$

  • a shorthand to jQuery's data(...)
  • using an element to store/fetch data

$.forIn(obj, fun)

  • invoke fun on obj's properties
@ngpestelos
ngpestelos / larry.md
Created October 3, 2011 00:46
Larry on Loafing (from the Razor's Edge)

When Larry was asked what he's been doing in Paris...

I've been reading a good deal. Eight or ten hours a day.

I want to make up my mind whether God is or God is not. I want to find out why evil exists. I want to know whether when I die it's the end.

Am I really a traitor to my country because I want to spend a few years educating myself? It may be that when I'm through I shall have something to give that people will be glad to take.

I wish I could make you see how much fuller the life I offer you is than anything you have a conception of. I wish I could make you see how exciting the life of the spirit is and how rich in experience.

@ngpestelos
ngpestelos / zamm_grades.md
Last active September 27, 2015 10:57
Degreeless and Gradeless School

from Zen and the Art of Motorcycle Maintenance:

Occasionally some students do arrive for an education but rote and the mechanical nature of the institution soon converts them to a less idealistic attitude.

So he would come back to our degreeless and gradeless school, but with a difference. He'd no longer be a grade-motivated person. He'd be a knowledge-motivated person. He would need no external pushing to learn. His push would come from the inside. He'd a free man. He wouldn't need a lot of discipline to shape him up. In fact, if the instructors assigned him were slacking on the job he would be likely to shape them up by asking rude questions. He'd be there to learn something, would be paying to learn something and they'd better come up with it.

Motivation of this sort, once it catches hold, is a ferocious force, and in the gradeless, degreeless institution where our student would find himself, he wouldn't stop with rote engi

@ngpestelos
ngpestelos / install_couchdb_ubuntu_10_4.md
Created October 21, 2011 11:36
Installing CouchDB 1.1 from Source on Ubuntu 10.4

Fresh installation of Linux Mint 10. Most of the steps work except for linking with the JS libs in xulrunner.

My initial attempt to use build-couchdb failed; I decided to compile CouchDB 1.1 from source.

Install Erlang dependencies

  • $ sudo apt-get install build-essential
  • $ sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev

Build Erlang OTP R14B04

  • Go to otp source tree.
@ngpestelos
ngpestelos / about.md
Created January 1, 2012 06:12 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@ngpestelos
ngpestelos / gist:3102841
Created July 13, 2012 05:07 — forked from paulirish/gist:3098860
Open Conference Expectations

Open Conference Expectations

For conferences, it's extremely important that attendees get top-quality content from industry experts. As a highly compelling format of educating others based on experience and research, conferences stand to be one the best sources of refined knowledge available. Still, it's important for a successful event to have a few guidelines to ensure quality content from the best and most appropriate speakers. Below is a set of guidelines for conference organizers that ensure quality content for attendees and the community.

What We, As Speakers, Expect from Conferences

  1. Video recordings: Organizers should prioritize recording all talks and sessions. A conference that only teaches the ~300 people in the room has constrained value and is not worthwhile to a speaker who wants to benefit the community. When recorded, video will be available online under a permissive license (CC-BY-*) within six months of the event.

  2. Travel reimbursement: Conferences will reimburse travel

@ngpestelos
ngpestelos / jasmine+scenario.md
Created October 19, 2012 10:34
Outline for Jasmine + Scenar.io talk at Aelogica (October 18, 2012)

3 Common Tasks Using Jasmine.js

We want to share what we've learned using Jasmine to test Scenar.io's JavaScript code. Scenar.io is a collaborative story carding app built on backbone.js, CoffeeScript, Rails 3.2, and MongoDB. Also, I felt that I was unable to give a proper retrospective while I was actively working on the project.

We used Jasmine to write specs for Scenar.io's backbone.js objects (e.g. StoryView, StoryModel, ProjectView, ProjectModel, StoriesCollection, etc.). Here are some of our common tasks:

1. Test backbone.js Views and Models

View: Trigger a jQuery Event and verify the view properties (using its $el property) has changed.