This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:ttdium: | |
:ruby_version: ruby-2.0.0-p353 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tddium.yml | |
--- | |
:ttdium: | |
:ruby_version: ruby-2.0.0-p353 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tddium.yml | |
--- | |
:tddium: | |
:ruby_version: ruby-2.0.0-p353 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.0.0p353 :001 > require 'yaml' | |
true | |
2.0.0p353 :002 > blah = YAML.load_file('tddium.yml') | |
{ | |
:tddium => { | |
:ruby_version => "ruby-2.0.0-p353" | |
} | |
} | |
2.0.0p353 :003 > puts blah.inspect | |
{:tddium=>{:ruby_version=>"ruby-2.0.0-p353"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android.sunshine.app; | |
import android.support.v7.app.ActionBarActivity; | |
import android.support.v7.app.ActionBar; | |
import android.support.v4.app.Fragment; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 1; | |
var d = 2; | |
function b() { | |
a = 5; | |
d = 23; | |
return; | |
function a() {} | |
} | |
b(); | |
console.log(a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(name) { | |
this.name = name; | |
} | |
Person.prototype = { | |
constructor: Person, // does not doing this line have any consequences? | |
sayName: function() { | |
console.log(this.name); }, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Hello { | |
public static void main(String [] args) { | |
System.out.println("Hello world!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Graph actualGraph = new SingleGraph("actualFlight"); | |
for(Airport airport: allAirports) { | |
actualGraph.addNode(airport.getCode()); | |
actualGraph.getNode(airport.getCode()).setAttribute("ui.label", airport.getCode()); | |
} | |
for(Flight flight: allFlights) { | |
String edgeCode = flight.getDepartureAirport().getCode() + "-" + flight.getArrivalAirport().getCode(); |
OlderNewer