Skip to content

Instantly share code, notes, and snippets.

@RudyJessop
RudyJessop / thumbnail-snippit.php
Last active Oct 28, 2015
Saving Images as thumbnails for MVC Projects
View thumbnail-snippit.php
<?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
@RudyJessop
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!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.20.20"
@RudyJessop
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",
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
RudyJessop / The Technical Interview Cheat Sheet.md
Created May 2, 2017 — 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.
View The Technical Interview Cheat Sheet.md

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.
You can’t perform that action at this time.