Skip to content

Instantly share code, notes, and snippets.

View griffgruff's full-sized avatar
💭
rocking

Anthony Griffiths griffgruff

💭
rocking
View GitHub Profile
@griffgruff
griffgruff / git-dark.css
Last active November 15, 2017 15:12
css
/**
* 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;
> 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.
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 .. "()"