This file contains hidden or 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
class Person | |
def initialize(first_name, last_name) | |
@first_name = first_name | |
@last_name = last_name | |
end | |
# access method | |
def full_name | |
"%s %s" % [@first_name, @last_name] | |
end | |
end |
This file contains hidden or 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
class Person(object): | |
def __init__(self, first_name, last_name): | |
self.first_name = first_name | |
self.last_name = last_name | |
# property decorator | |
@property | |
def full_name(self): | |
return "%s %s" % (self.first_name, self.last_name) | |
me = Person("Simeon", "Willbanks") |
This file contains hidden or 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 Person { | |
public $first_name; | |
public $last_name; | |
public function __construct($first_name, $last_name) | |
{ | |
$this->first_name = $first_name; | |
$this->last_name = $last_name; |
This file contains hidden or 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 Person { | |
public $first_name; | |
public $last_name; | |
public function __construct($first_name, $last_name) | |
{ | |
$this->first_name = $first_name; | |
$this->last_name = $last_name; |
This file contains hidden or 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 Person { | |
public $first_name; | |
public $last_name; | |
public $address; | |
public $city; | |
public $state; | |
public $zip; |
This file contains hidden or 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
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) | |
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> def mogrify(li): | |
... for i, v in enumerate(li): | |
... li[i] = v * 2 | |
... | |
>>> x = [1,2,3] | |
>>> id(x) | |
445976 |
This file contains hidden or 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
<!-- LinkedIn Profile Position Template --> | |
<ul> | |
<li></li> | |
<li></li> | |
</ul> | |
<!-- Director of Product Development, Publish2 --> | |
<ul> | |
<li>Launched News Exchange web and print content sharing product, garnering a Knight-Batten Special Distinction Award and a <em>TechCrunch</em> Disrupt Cup finalist place </li> | |
<li>Improved Link Journalism product by simplifying JavaScript bookmarklet user experience, refactoring PHP web application, and normalizing MySQL database </li> |
This file contains hidden or 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
http://www.junauza.com/2010/12/top-50-programming-quotes-of-all-time.html | |
50. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." | |
- Rick Cook | |
49. "Lisp isn't a language, it's a building material." | |
- Alan Kay. | |
48. "Walking on water and developing software from a specification are easy if both are frozen." | |
- Edward V Berard |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
require_once('../src/Sag.php'); |
This file contains hidden or 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 | |
/* | |
Copyright 2010 Sam Bisbee | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
OlderNewer