Skip to content

Instantly share code, notes, and snippets.

View jcasimir's full-sized avatar

Jeff Casimir jcasimir

View GitHub Profile
http://dl.airserver.com/mac/AirServer-5.3.2.dmg
Your Activation Code is:
4MVPDGD68GRRCC8VJ4
@jcasimir
jcasimir / .gitignore
Last active March 1, 2024 08:01
Running all MiniTest Tests with SimpleCov
test/coverage/

String

Concepts
  • Creating / Definition
  • Single vs. Double Quoted Strings
  • Combining Strings and Other Data
    • Concatenation with +
    • Wrapping in an Array and using join
  • Interpolating

How to Make a Good Project Great

Opening

  • Building projects is the best way to develop and refine your skill as a developer
  • And while you have 0 years of professional software development experience, people are going to be skeptical that you can actually do the things you say you can do.
  • Your portfolio serves as a form of proof. Your portfolio isn’t going to win you a job, but it can win you an interview.
  • And one thing I’ve been saying over and over the last few months — job applications do not reliably convert to interviews, but interviews reliably convert to jobs.
  • Typically if you get into about 5 interview processes then you’re going to get a job offer. 10 interview processes and you might see 2 or 3 job offers.
  • So you build projects to build your skill, but you might as well build projects that build your portfolio that could then make someone say “sounds interesting…bring them in for an interview.”

Tools We Have for Contact

  • LinkedIn Post Comment
  • LinkedIn Connection Request
  • Mutual-Contact LinkedIn Message
  • Mutual-Contact Email Intro
  • Phone Call
  • In-Person Office Visit
  • Cold Email #1, #2, #3
  • Twitter / X
@jcasimir
jcasimir / render_and_redirect.markdown
Created September 11, 2011 21:29
Render and Redirect in Rails 3

Render and Redirect

The normal controller/view flow is to display a view template corresponding to the current controller action, but sometimes we want to change that. We use render in a controller when we want to respond within the current request, and redirect_to when we want to spawn a new request.

Render

The render method is very overloaded in Rails. Most developers encounter it within the view template, using render :partial => 'form' or render @post.comments, but here we'll focus on usage within the controller.

:action

@jcasimir
jcasimir / tests.py
Created October 17, 2023 20:25
DSA Dojo - Linked List project hidden test
## L1. Append Multiple Nodes and Count
def test_(self):
import list
list = list.List()
self.assertEquals(list.count(), 0)
list.append("one")
list.append("two")
list.append("three")
@jcasimir
jcasimir / headless_list.py
Created October 10, 2023 23:38
(Mostly) Live-Coded Recursive Linked List in Python
# This was the first version where the list does more "head-checking"
# instead of the final version (list.py) where the head uses a null object
class RecursiveList:
def __init__(self):
self.head = None
def count(self):
if self.head:
return self.head.count()
class Node:
def __init__(self, value):
self.value = value
self.link = None
def append(self, value):
if self.link:
self.link.append(value)
else:
self.link = Node(value)
@jcasimir
jcasimir / sessions_and_conversations.markdown
Created September 11, 2011 23:07
Sessions and Conversations in Rails 3

Sessions and Conversations

HTTP is a stateless protocol. Sessions allow us to chain multiple requests together into a conversation between client and server.

Sessions should be an option of last resort. If there's no where else that the data can possibly go to achieve the desired functionality, only then should it be stored in the session. Sessions can be vulnerable to security threats from third parties, malicious users, and can cause scaling problems.

That doesn't mean we can't use sessions, but we should only use them where necessary.

Adding, Accessing, and Removing Data