Skip to content

Instantly share code, notes, and snippets.

View C-Lion's full-sized avatar

C-Lion C-Lion

View GitHub Profile
@itzsaga
itzsaga / 1ruby.md
Last active November 11, 2017 23:28
Example code for my Good Code vs. Bad Code Flatiron School study group.

Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 integers. No floats or empty arrays will be passed.

For example, when an array is passed like [19, 5, 42, 2, 77], the output should be 7.

[10, 343445353, 3453445, 3453545353453] should return 3453455.

Hint: Do not modify the original array.

Seeking a member of an underrepresented community in tech to mentor

One of my goals in 2016 is to develop a mentorship with a person from an underrepresented community in tech. To that end, I’m opening up office hours. Here’s what that will look like.

I’m looking for someone who could use a mentor in programming or software engineering. Ideally, this person would be looking to get into web development (or related technologies) or just starting their career. This relationship would ideally last from the end of January 2016 for a 4-6 month period. To this bourgeoning developer, I’ll be available – completely free of cost – for a 1-1.5 hour period each week to look over code samples, pair program, give practical programming advice, do mock interviews, or whatever they believe they need the most help with. (Ideally, this schedule would be somewhat flexible, given that I have a 10-month-old at home.)

Here are a list of ideas to get you thinking, separated by topic. This list is by no means exhaustive. If you’

anonymous
anonymous / sample
Created May 20, 2015 20:53
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active March 15, 2025 22:30
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.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@trey
trey / dropbox_git.md
Created May 18, 2012 03:12
Using Dropbox to Share Git Repositories

Using Dropbox to Share Git Repositories

First, create a Git subfolder inside your Dropbox folder. Then you can share the individual projects inside that folder with whomever you want (or just use it for instant offsite backups).

From inside a Git project:

git clone --bare . ~/Dropbox/Git/gitproject.git
git remote add dropbox ~/Dropbox/Git/gitproject.git

When you're ready to push:

@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream