Skip to content

Instantly share code, notes, and snippets.

View okaram's full-sized avatar

Orlando Karam okaram

View GitHub Profile
{
"sheets": [
{
"title": "P&P",
"queries": [
{
"db_driver": "psycopg2",
"db_conn_str": "dbname=curri user=curri",
"title": "People",
"query": "SELECT * FROM Person"
sales=sc.textFile("sales_*.txt").map(lambda x:x.split('\t'))
public class Puppy {
// instance variables; private
private String _name;
private int _age;
// constructor
public Puppy (String name, int age)
{
// constructor is called on a specific instance; let's modify that instance's variables
_name=name;
void Main()
{
Person p=new Person(){Name="Orlando",Age=10};
Console.WriteLine(p.GetType().GetProperties());
Console.WriteLine(p.GetType().GetProperties().Select(x=>x.GetMethod.Invoke(p,null)));
}
// Define other methods and classes here
class Person {
public string Name {get; set;}