# init dict
stuff = {
'name': 'Zed',
'age': 39
}
stuff['city'] = "San Francisco" # inserts are constant time
git clone $myrepo.git | |
# bring repo up to date | |
git checkout master | |
git pull | |
# change to PR branch | |
git checkout reorg_issues_dir | |
# move test out of the "new folder" created in PR |
#!/usr/bin/env ruby | |
class Ghost | |
attr_accessor :haunted | |
def initialize (loc = "house") | |
@locations = loc | |
@haunted = 1 | |
end | |
Here's the order that I'd suggest (feel free to jump around as best for you)
- A local script can leverage the ThreatConnect API to make changes on behalf of a user's
API key
- Code written in Java or Python can be deployed as an App to a ThreatConnect instance (useful for recurring server-side jobs)
- Code written in JavaScript can be deployed as a Spaces App ThreatConnect instance and (useful for client-side GUI tools)
Python library - Available in pip as ‘threatconnect’ - Can be used to build server-side apps for the platform
Java - Available in maven as `threatconnect-sdk. Can be used to build server-side apps for the platform
I like working with grownups.
Here's an example:
When I was a wee little New Hire at my current employer, one of the things that came up a lot was the "15 minute rule." That is, if you're stuck on a problem, take a solid 15 minutes to bash your brain against it in whatever manner you see fit. However, if you still don't have an answer after 15 minutes, you must ask someone. I shorten this down to "You must try, and then you must ask." It's a simply-worded rule, which works something like this:
If you've hit the point of giving up, you have to push yourself for another 15 minutes. The pressure is now off. You know that in 15 minutes, you'll be able to take what you found and talk to another person about it and get their help. For right now, all you have to do is step back and look at the whole problem from the top. Maybe you'll find the solution that was sitting there all along. Maybe you'll convince yourself it's completely unsolvable. Whatever you end up doing, tho