Skip to content

Instantly share code, notes, and snippets.

View bhollan's full-sized avatar

Brian Holland bhollan

  • Washington, DC
View GitHub Profile
doing doing
in the beginning!
@bhollan
bhollan / cirtus_byte.rb
Created August 17, 2016 17:30
Flattens array of integers without using Array.flatten
# require 'pry'
# puddle = [5, [3, [2]]]
# deep = [5, [4, 3, [2, 2, 2, [1, [1], 0, 0]],4, 2, [1], [4]], [0]]
def make_flat(ary)
out = []
ary.each do |el|
if el.kind_of?(Array)
out.concat(make_flat(el))
else
Overview.
[The way the IDE works]("How the IDE works" article), when a student saves changes to a file in the IDE, those changes are uploaded to the Learn IDE Server. This process is known as "Syncing". This can happen for a number of reasons, and can also manifest itself as many different symptoms. The fixes for these different symptoms vary a little bit, but are essentially the same thing: repairing the synchronization between the IDE and the IDE Server.
Lab Folder With Wrong Contents
Sometimes when a lab repo is cloned to the IDE Server (and the to your computer), the contents of the folder on your computer will not match the contents of that same folder on the IDE Server as it should. This can look like an empty folder in the file tree. This can look like having only a few files instead of all the files. In this case, you should be able to right-cick on the lab's folder and choose `ReSync with Learn IDE Server` (screenshot?).
Lab Folder Completely Missing
Sometimes when the cloning or a repo to the

Keybase proof

I hereby claim:

  • I am bhollan on github.
  • I am bhollan (https://keybase.io/bhollan) on keybase.
  • I have a public key whose fingerprint is 263F BC85 9C77 5AD1 9E0B 1778 1F68 184B 5BAF EC8B

To claim this, I am signing this object:

[Enter steps to reproduce below:]
1. ...
2. ...
**Atom Version**: 2.2.0
**Electron Version**: 1.3.6
**System**: Microsoft Windows 7 Professional
**Thrown From**: [learn-ide](https://github.com/learn-co/learn-ide) package, v2.2.0
Installing “learn-ide-tree@1.0.17” failed.Hide output…
INFO: Could not find files for the given pattern(s).
The system cannot find the file specified.
> runas@3.1.1 install C:\Users\SWAKE\AppData\Local\Temp\apm-install-dir-116117-4136-wo3ojp\node_modules\learn-ide-tree\node_modules\runas
> node-gyp rebuild
  • How often do you notice it disconnecting? Once a day? Once a week? 3 times an hour?

  • Packet loss summary

    Mac/Linux: Open up terminal and run ping google.com -c 25 and get the response

    Windows: Go to the start menu and search for CMD to open up the command prompt. Have them run ping google.com -n 25 and get the response.

    We only need that last part:

25 packets transmitted, 25 packets received, 0.0% packet loss

@bhollan
bhollan / index_card.txt
Created August 11, 2017 13:58
Personal Finance Index Card
Index card financial rules:
1) Strive to save 10-20% of your income
2) Pay your credit card bill in full at the end of every month
3) Max out 401k and/or other tax advantaged investments
4) Never buy or sell individual stocks/bonds/securities
5) Buy cheap index/mutual/ETF funds
6) Make any financial advisor commit in writing to the fiduciary standard
7) Buy a home when you're financially ready
8) Insurance. Make sure you're protected
9) Do what you can towards the social safety nets
@bhollan
bhollan / techcoach.txt
Created February 26, 2018 19:48
Agenda for Tech Coach AMA
TOPICS (IN NO PARTICULAR ORDER OR CERTAINTY):
Chrome Extensions
Podcasts
Online Tools
Best Practices
Debugging techniques
Career Paths