Skip to content

Instantly share code, notes, and snippets.

View RudyJessop's full-sized avatar
🎯
Focusing

Rudy Jessop RudyJessop

🎯
Focusing
View GitHub Profile
@RudyJessop
RudyJessop / thumbnail-snippit.php
Last active October 28, 2015 13:39
Saving Images as thumbnails for MVC Projects
<?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 December 18, 2015 00:07
Vagrantfile (Basic setup)
# -*- 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 December 27, 2015 19:55
First Electron App 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",
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 16:19 — 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.
@RudyJessop
RudyJessop / raspberrypizero.md
Last active March 19, 2023 02:33
raspberrypi zero wifi setup

create ssh file to enable ssh

create wpa_supplicant.conf to automatically connect to wifi.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={