Skip to content

Instantly share code, notes, and snippets.

RudyJessop / The Technical Interview Cheat
Created May 2, 2017 — forked from TSiege/The Technical Interview Cheat
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.
View The Technical Interview Cheat

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.
View App.js
import React from "react";
import ReactDom from "react-dom";
import AvatarCropper from "./AvatarCropper";
import $ from "jquery";
var App = React.createClass({
getInitialState: function() {
var defaultProfile = document.getElementById('user-dp').getAttribute('profileimage');
return {
cropperOpen: false,
RudyJessop / package.json
Created Dec 27, 2015
First Electron App Package.json
View package.json
"name": "electron-quick-start",
"version": "0.0.1",
"description": "My First Electron Desktop App",
"author": "Rudy Jessop",
"license": "",
"main": "main.js",
"scripts": {
"start": "electron main.js",
"test": "echo \"No unit tests and e2e tests yet\" && exit 1",
RudyJessop / Vagrantfile
Created Dec 18, 2015
Vagrantfile (Basic setup)
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "scotch/box" "private_network", ip: ""
RudyJessop / thumbnail-snippit.php
Last active Oct 28, 2015
Saving Images as thumbnails for MVC Projects
View thumbnail-snippit.php
// For thumbnails
$file = $request->file('file');
//Create thubmnail
$thmname = time().$file->getClientOriginalName(); // Thumbnail naming
$thmfilepath = $filesystem->disk('s3')->put('/tn_/'.$thmname, '');
$image = Image::make($file)->fit(115)->save($thmname); // For Thumbnail image save
You can’t perform that action at this time.