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
| { | |
| "sheets": [ | |
| { | |
| "title": "P&P", | |
| "queries": [ | |
| { | |
| "db_driver": "psycopg2", | |
| "db_conn_str": "dbname=curri user=curri", | |
| "title": "People", | |
| "query": "SELECT * FROM Person" |
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
| sales=sc.textFile("sales_*.txt").map(lambda x:x.split('\t')) |
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
| 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; |
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
| 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;} |
OlderNewer