rsync --partial --progress dump.tar.gz wkalt:wkdump
The distinction between aggregation and composition goes to old times for language like C++ where there is manual memory management. For languages with dynamic memory management everything is compositon.
Association: Multiple objects have their own life cycle and there is no owner. Ex teacher and student, independent life cycle.
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
Subprocess: | |
One class Popen and others are wrapper over it. | |
shell=True: This argument spawns a new intermediate process and run the command. If False, the command run in current process. | |
Popen: non blocking | |
subprcess call vs Popen: | |
call: is a wrapper over Popen and takes all the pamaters of popen. It is blocking and does not return until process has finished. |
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
{"https://www.linkedin.com/recruiter/profile/2291218,Hkon,CAP": true, "https://www.linkedin.com/recruiter/profile/32583970,L0al,CAP": true, "https://www.linkedin.com/recruiter/profile/39316040,PljB,CAP": true, "https://www.linkedin.com/recruiter/profile/82771017,5uDZ,CAP": true, "https://www.linkedin.com/recruiter/profile/72503542,sLJm,CAP": true, "https://www.linkedin.com/recruiter/profile/92016330,j3jR,CAP": true, "https://www.linkedin.com/recruiter/profile/171554188,LLgJ,CAP": true, "https://www.linkedin.com/recruiter/profile/22262123,gJtD,CAP": true, "https://www.linkedin.com/recruiter/profile/192153896,e8oI,CAP": true, "https://www.linkedin.com/recruiter/profile/227383658,Ym3m,CAP": true, "https://www.linkedin.com/recruiter/profile/53537751,ewVD,CAP": true, "https://www.linkedin.com/recruiter/profile/21566375,DGEM,CAP": true, "https://www.linkedin.com/recruiter/profile/25650551,vdzk,CAP": true, "https://www.linkedin.com/recruiter/profile/96609874,0-3T,CAP": true, "https://www.linkedin.com/recruiter/profi |
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
/* | |
STRING OPERATIONS | |
package strings | |
*/ | |
exStr := "Hello World" | |
strings.Contains(exStr, "lo") //returns true/false | |
strings.Index(exStr, "lo") //returns 3 | |
strings.Count(exStr, "o") //returns 2 | |
strings.Replace(exStr, "l", "_", 3) //here first 3 l's is replaced with _ | |
strings.Fields(exStr) //splits on space |
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
{"size": null, | |
"topchart_rank": [1, 9, 1], | |
"reviewers": [28360326, 28393897, 28412320], | |
"istop_developer": true, | |
"app_update_date": {"$date": 1436918400000}, | |
"screenshots": ["https://lh3.googleusercontent.com/MMue08byixTw74ST_VkNQDUUJBgVEbjNHDYLhIuHmYhMIMJIp3KjVlnhhqZQOZUtNt8=h310"], | |
"app_name": "WhatsApp Messenger", | |
"category": ["Communication"], | |
"ratings": [4.4, 4.4, 4.4, 4.4], | |
"min_osversion": "2.1 and up", |
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
All the sentiment analysis data is present in the folder named "senti" | |
Directory structure: | |
senti | |
├── Trainingset_creator | |
│ ├── README.rst | |
│ ├── appsid | |
│ ├── reviews_crawler.py | |
│ └── settings.py | |
├── config.py |