This file contains 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
skic |
This file contains 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
ttt |
This file contains 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
czy dziala |
This file contains 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
ddd |
This file contains 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
hamburger |
This file contains 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
May already |
This file contains 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 main | |
import "golang.org/x/tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
ret := make([][]uint8, dy) | |
for y := 0; y < dy; y++ { | |
row := make([]uint8, dx) | |
for x := 0; x < dx; x++ { | |
row[x] = uint8(y) |
This file contains 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
Started GET "/auth/twitter" for ::1 at 2016-06-29 16:26:19 +0100 | |
I, [2016-06-29T16:26:19.128118 #15891] INFO -- omniauth: (twitter) Request phase initiated. | |
OAuth::Unauthorized - 400 Bad Request: | |
oauth (0.5.1) lib/oauth/consumer.rb:217:in `token_request' | |
oauth (0.5.1) lib/oauth/consumer.rb:136:in `get_request_token' | |
omniauth-oauth (1.1.0) lib/omniauth/strategies/oauth.rb:28:in `request_phase' | |
omniauth-twitter (1.2.1) lib/omniauth/strategies/twitter.rb:61:in `request_phase' | |
omniauth (1.3.1) lib/omniauth/strategy.rb:215:in `request_call' | |
omniauth (1.3.1) lib/omniauth/strategy.rb:183:in `call!' |
This file contains 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,age) { | |
this.name = name; | |
this.age = age; | |
} | |
// Let's make bob and susan again, using our constructor | |
var bob = Person("Bob Smith", 30); | |
var susan = new Person("Susan Jordan", 25); | |
console.log(bob) | |
console.log(this.name) |
This file contains 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
array = [['Number', 'Name'], [1, 'Foo'], [2, 'Bar'], [3, 'Baz']] | |
def pretty_table(array) | |
new_array = array.collect {|elem| | |
elem.collect! {|el| el.to_s} | |
elem.max_by {|el| el.length} | |
} | |
m = new_array.max_by {|elem| elem.length} |
NewerOlder