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 of the CSS variables are copied in from the built ui.css but many are unchanged. | |
| * Variables that categorically shouldn't be overridden are commented out. | |
| */ | |
| :root { | |
| /* these should probably stay the same | |
| --color-new: #28a745; | |
| --color-deleted: #d73a49; | 
  
    
      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
    
  
  
    
  | > doc = {"name" : "smith", "age", 30 , "profession" : "hacker"} | |
| > db.people.insert(doc) <-- insert is a method | |
| WriteResult({"nInserted" : 1}) | |
| > db.people.find() <-- all documents in collection | |
| // _id is the document id and it can't be changed primary key | |
| // ObjectId it's a type, time the machine process id and a counter global. | 
  
    
      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
    
  
  
    
  | test | 
  
    
      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
    
  
  
    
  | function split(str, delim, maxNb) | |
| -- Eliminate bad cases... | |
| if string.find(str, delim) == nil then | |
| return { str } | |
| end | |
| if maxNb == nil or maxNb < 1 then | |
| maxNb = 0 -- No limit | |
| end | |
| local result = {} | |
| local pat = "(.-)" .. delim .. "()" | 
NewerOlder