Skip to content

Instantly share code, notes, and snippets.

View agentbond007's full-sized avatar
💭
Building Amazing Experiences

Ben Morris agentbond007

💭
Building Amazing Experiences
View GitHub Profile
@agentbond007
agentbond007 / The Technical Interview Cheat Sheet.md
Created October 11, 2017 16:58 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
1 contract TokenContractFragment {
2
3 // Balances for each account
4 mapping(address => uint256) balances;
5
6 // Owner of account approves the transfer of an amount to another account
7 mapping(address => mapping (address => uint256)) allowed;
8
9 // What is the balance of a particular account?
10 function balanceOf(address _owner) constant returns (uint256 balance) {
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
@agentbond007
agentbond007 / 0_reuse_code.js
Created June 25, 2017 18:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@agentbond007
agentbond007 / cloudformation.JSON
Created February 3, 2017 05:37
AWS Cloudformation - EC2 instance with Ephemeral Drives
"Ec2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"ImageId" : { "Fn::FindInMap" : [ "AWSRegionArch2AMI", { "Ref" : "AWS::Region" }, "PV64" ]},
"KeyName" : { "Ref" : "KeyName" },
"InstanceType" : "m1.small",
"SecurityGroups" : [{ "Ref" : "Ec2SecurityGroup" }],
"BlockDeviceMappings" : [
{
"DeviceName" : "/dev/sdc",
Verifying that "bmorris.id" is my Blockstack ID. https://onename.com/bmorris
@agentbond007
agentbond007 / Keybase.md
Created January 25, 2017 01:57
keybase.md

Keybase proof

I hereby claim:

  • I am agentbond007 on github.
  • I am agentbond007 (https://keybase.io/agentbond007) on keybase.
  • I have a public key ASDzXG8lFgquDRpM85Gc0M3ctRx_YP5wlHGMePhXHmHRrgo

To claim this, I am signing this object:

@agentbond007
agentbond007 / docker-compose-coreos.sh
Created July 7, 2016 18:27 — forked from sourcec0de/docker-compose-coreos.sh
Install docker compose on coreos
sudo su -
mkdir -p /opt/bin
curl -L https://github.com/docker/compose/releases/download/1.5.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
Verifying that +agentbond007 is my blockchain ID. https://onename.com/agentbond007