Skip to content

Instantly share code, notes, and snippets.

View SoxFace's full-sized avatar

Sonya SoxFace

View GitHub Profile
@SoxFace
SoxFace / readme.md
Last active August 29, 2015 14:16 — forked from ga-wolf/readme.md

Nucleotide Count

DNA is represented by an alphabet of the following symbols: 'A', 'C', 'G', and 'T'.

Each symbol represents a nucleotide, which is a fancy name for the particular molecules that happen to make up a large part of DNA.

Shortest intro to biochemistry EVAR:

  • twigs are to birds nests as
  • nucleotides are to DNA and RNA as
@SoxFace
SoxFace / readme.md
Last active August 29, 2015 14:16 — forked from taryneast/readme.md

Burning Airlines

#####Prerequisites:

  • Ruby
  • Rails
  • HTML
  • CSS
  • git
  • pivotal tracker
v = Vimeo::Advanced::Video.new("api_key", "secret_key")
response = v.get_list_by_tag("dog")
# returns:
# {
# "rsp"=> {
# "videos" => {
# "perpage"=>"25", "on_this_page"=>"25", "page"=>"1",
# "video"=>
# [{"title"=>"Arduino Web Controlled Dog Waterer", "id"=>"4620716", "owner"=>"76289", "privacy"=>"anybody", "is_hd"=>"1"},

#A team

##What is Rails?

Rails is an open source web application framework written in Ruby. It is a full-stack framework that has been optimised for programmer happiness and sustainable productivity. It emphasises the use of well-known software engineering patterns and paradigms, including convention over configuration (CoC), don't repeat yourself (DRY), the active record pattern, and model–view–controller (MVC).

Extra: David Heinemeier Hansson (DHH) is the creator of Rails, having extracted it from his work on Basecamp. He first released Rails as open source in July 2004.

Useful Links:

@SoxFace
SoxFace / GIF-Screencast-OSX.md
Last active August 29, 2015 14:26 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@SoxFace
SoxFace / js_questions.js
Last active October 23, 2015 22:18 — forked from chuyik/js_questions.js
Interesting Quirkly Javascript Questions Collection (Planed to be used for interview)
/* ================== */
/**
* Concepts:
* Global Context
* Chained Assignment
*/
var x = 1;
var y = 2;
var z = 3;
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>
@SoxFace
SoxFace / JSStructure.md
Created November 13, 2015 01:58 — forked from robinsonlam/JSStructure.md
Structuring your code in Javascript - Notes for WDI students to help with syntax

Code Structure

Here are some notes I've made to help you guys with your syntax. Think of it like a "cheatsheet". Some tips to remember:

  • Keep an eye on semicolons, usually control flow blocks (if blocks, for, while loops etc.) do not need a semicolon.
  • Keep an eye on your opening and closing brackets ( { & } ).
  • Be careful when using assignment operators ( = ) and equality operators ( == and === ). Assignment is for setting, equality is for comparing.
  • Keep an eye on quotation marks. Match doubles with doubles ( " ), singles with singles ( ' ).
    • Also: Watch when you're using apostrophes inside strings: var sentence = "You're weird";.
      Make sure you don't do this: var sentence = 'You're weird'; This will give you errors.
  • When checking conditions with logical operators ( &&, ||, ! ), you cannot combine your conditions.
  • Incorrect: if ( chicken === yummy &amp;&amp; tasty )