Skip to content

Instantly share code, notes, and snippets.

View MowAlon's full-sized avatar

Alon Waisman MowAlon

View GitHub Profile
@MowAlon
MowAlon / gist:912d9a53323bc6c83a2b
Last active August 29, 2015 21:12
Intro to CRISPR - a Turing School lightning talk

CRISPR - Clusters of Regularly Interspaced Short Palindromic Repeats

Video content for background during talk

  • Want a new way to fight cancer?
  • Want to guarantee your future child won't carry on that weird genetic condition you have?
  • Want to play with a live wooly mammoth or a chihuahua-sized doberman?

Japanese scientist find something funky, and other scientists figure out the mystery of the funk

  • Thirty years ago, some Japanese scientists mapped a bunch of bacterial DNA and found these strange code repetitions with weird, unexplained junk code between the repeated spots
  • Some time later, after more genomes had been mapped and modern computing made the sharing of this information easier, other scientists looked at this junk code, and searched for it in the big database o’ mapped genomes.
@MowAlon
MowAlon / new_student_machine_speedies.md
Last active June 8, 2017 21:49
Set your machine up for efficiency. Yay speed!

There are a few things you can do very easily that'll speed up your workflow. Get ready for excellent fun learn time!

Atom

  • Edit Settings
    • 'Show Invisibles'
  • Install/Enable packages
    • Autosave (Core package)
    • ruby-block
    • zentabs
  • ruby-define-method

Array Prototype Methods

I understand that functions in JavaScript can take any number of arguments. yup

I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript. yup

Where are the methods available to all arrays (e.g. forEach, map, etc.) defined? Array.prototype

I can explain the difference between function declarations and function expressions. Sort of. 2

I can explain what the value of this is in a normal function. 3

I can explain what the value of this is when called from the context of an object. 3

I can explain how to explicitly set the value of this in a function.

**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
Speed and 'stability' (relative order of sort-equivalent elements) are great, but sometimes the need for local resources (like memory) would be too great to use a sort that would be awesome if they were readily available.
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.

Step One: Watch Writing Testable JavaScript - Rebecca Murphey from Full Frontal 2012 (award for worst conference name ever?)

Step Two: Fork this gist.

Step Three: Respond to this question in your fork: Consider the four responsibilities that Rebecca lists for client side code (hint: they're color coded). Respond below with your thoughts. Did any of the responsibilities that she lists surprise you? Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?

Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.

Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)

Step Two: Fork this gist.

Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project?

Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.

@MowAlon
MowAlon / Countdown (recursive)
Last active December 15, 2015 18:25
Recursion and ES6 Generator exercises
function countDown(num) {
console.log(num)
if (num !== 0) {return countDown(--num)}
}
@MowAlon
MowAlon / react-notes.md
Created December 16, 2015 17:05 — forked from biglovisa/react-notes.md
React in theory
@MowAlon
MowAlon / dvd_cover.rb
Created January 13, 2016 01:44
Find a dvd cover for a movie
# Given the name of a movie
# Find me the cover of
# Gattaca
# Titanic
# Memento
# if you don't have this
# $ gem install rest client
require 'rest-client'
require 'nokogiri'