Skip to content

Instantly share code, notes, and snippets.

@yosukehasumi
yosukehasumi / assignment.markdown
Last active February 6, 2019 01:07
img240 Week 5 Assignment

Assignment 5

This week we will be adding some power and beauty to our "mint" application through database relations and a nice frontend cleanup with validations and flash messages

Setup

If you've messed up your mint application you can download and replace your entire application with the one in class repo https://gitlab.com/img240/mint just find the download button (the icon is in the right hand side and looks like a little cloud with a down arrow).

Unzip the package and it should create a directory called mint-master, copy/replace all the directory contents into your mint directory (Important! omit the .git directory though since that will have a reference to the class repo and won't allow you to push properly) Also (Important! this will replace your database.yml so if you aren't using Docker you might want to omit the config/database.yml file as well)

@yosukehasumi
yosukehasumi / midterm.markdown
Created February 5, 2019 03:15
Midterm Exam

Midterm

This is your take-home midterm exam, you'll be required to build a Ruby on Rails application using the knowledge you've gained so far. This time I won't be giving you explicit instructions. You'll be expected to figure out the solution to the problem(s) on your own by doing research.

Setup

Git setup

  1. create a repo project in gitlab called 'midterm', this should be in your "student" repo!

Project Initialization

@yosukehasumi
yosukehasumi / proposal.markdown
Created January 29, 2019 18:17
img240 Week 5 Proposal

Project Name

Summary

Briefly provide an overview of the project. The aim is to offer a compelling pitch so that sponsors are already convinced the project is a good idea after reading the summary. The rest of the proposal offers greater detail about the key points in the executive summary.

Background

Use background information to provide context, including history, details about the problem or opportunity the project addresses, and the proposed solution.

@yosukehasumi
yosukehasumi / assignment.markdown
Last active February 5, 2019 03:36
img240 Week 4 Assignment

Assignment 4

This week we'll be creating a "Personal Finance" web app, where you can keep track of your budget and spending

The app will just have one controller that will list your spending and budget. It will allow you to add, modify and delete spending from the database.

Setup

Git setup

@yosukehasumi
yosukehasumi / setup.md
Last active May 4, 2022 16:54
My OSX setup from clean install
  • Enabled Tap to Click
  • Enable Trackpad Dragging (found in accessibility settings)
  • Add my .bash_profile https://gist.github.com/yosukehasumi/fb5c97f661ee3d4e1b41049707606fb5
  • Add item word jump hotkeys for iTerm (Preferences > Profiles > Keys > Presets: 'Natural Text Editing')
  • Hide Dock (defaults write com.apple.Dock autohide-delay -float 5 && killall Dock)
  • Hide icons on Desktop (defaults write com.apple.finder CreateDesktop false; killall Finder;)
  • Generate SSH keys `ssh-keygen -t rsa -b 4096 -C "[email protected]"

Install

  • Chrome
@yosukehasumi
yosukehasumi / proxy.rb
Created August 22, 2018 18:01
Digital Ocean Proxy server generation for ngrok
#!/usr/bin/env ruby
require 'awesome_print'
require 'json'
PROXY_NAME = 'proxy'
ACCESS_TOKEN = 'XXXXXXXX'
# DESTROY
def destroy_all_servers
@yosukehasumi
yosukehasumi / .bash_profile
Last active November 24, 2022 03:41
my_bash
#!/usr/bin/env bash
export CLICOLOR=1
export TERM=xterm-256color
export BASH_SILENCE_DEPRECATION_WARNING=1
# PS1
export PS1="________________________________________________________________________________\n| \w \n| => "
export PS2="| => "
# Set default editor
@yosukehasumi
yosukehasumi / propone-server.md
Created November 28, 2017 18:32
Setting up Propeller One Digital Ocean droplet
@yosukehasumi
yosukehasumi / Commands
Created August 22, 2017 17:18
Creating a Rails Applications - Full Stack
rails new ProjectName -d mysql
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'uri'
require 'net/http'
require 'rainbow'
require 'awesome_print'
class Crawl