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 book | |
| type Book struct ( | |
| id int | |
| title string | |
| prices map[string] string | |
| ) | |
| func getBook() Book { | |
| var prices = map[string] string { |
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 hello | |
| import "fmt" | |
| func (name string) { | |
| fmt.Println("Hello " + 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
| var x = 3; | |
| y = 3; | |
| var f = function () { | |
| var z = 2; | |
| console.log(z); | |
| console.log(x); | |
| } | |
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
| object BookShout { | |
| def main(args: Array[String]) { | |
| bookshout_start(); | |
| } | |
| def bookshout_start { "start bookshout" } | |
| } |
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
| circlesForRender: function(circles) { | |
| // Only return the first suggestion in the collection | |
| var suggestion = suggestions.at(this.current_position); | |
| this.current_position++; | |
| return suggestion.toJSON(); | |
| } | |
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
| class A | |
| attr_accessor :name | |
| def initialize(name) | |
| self.name = name | |
| B.new.say_hello(self.name) | |
| end | |
| end | |
| class B |
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
| sudo ln -sf /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2 |
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
| // A.cs | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using ExtensionMethods; | |
| namespace App { | |
| class 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
| class Array | |
| def foo | |
| puts "Hello" | |
| end | |
| end | |
| class SpecialArray < Array | |
| end | |
| sa = SpecialArray.new |