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
| fart |
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
| diff --git a/ru/deploy/README.md b/ru/deploy/README.md | |
| index e77647e..1ed041c 100755 | |
| --- a/ru/deploy/README.md | |
| +++ b/ru/deploy/README.md | |
| @@ -262,19 +262,20 @@ Django использует протокол WSGI, стандартный про | |
| Удали все содержимое и замени их с чем-то вроде этого: | |
| - python | |
| - import os |
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
| scraps: | |
| 2,3 Mirana Mirana 8 days ago 54 61.11% 4.03 | |
| 4 Rubick Rubick a day ago 39 35.90% 2.26 | |
| 2,3 Puck Puck about a month ago 37 45.95% 2.55 | |
| 2 Templar Assassin Templar Assassin about a month ago 36 52.78% 2.67 | |
| 3 Windranger Windranger 2 months ago 27 37.04% 2.10 | |
| 5 Disruptor Disruptor 23 days ago 22 54.55% 3.30 | |
| 2 Leshrac Leshrac 7 days ago 20 70.00% 3.54 | |
| 3,4 Venomancer Venomancer 2 months ago 20 70.00% 4.08 |
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
| begin | |
| response = call_api # this might throw X | |
| response.save_to_db # this might throw Y | |
| rescue X | |
| # handle the error with calling the api | |
| rescue Y | |
| # handle the error with saving to the database | |
| rescue Exception => e | |
| # handles *any* exception; maybe you got the exception type wrong? | |
| end |
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
| diff --git a/lib/lex.go b/lib/lex.go | |
| index 885ec08..8242d5a 100644 | |
| --- a/lib/lex.go | |
| +++ b/lib/lex.go | |
| @@ -404,7 +404,8 @@ func lexNumber(l *lexer) stateFn { | |
| imaginary := l.accept("i") | |
| r := l.next() | |
| if isAlphaNumeric(r) { | |
| - return lexErrorf("unexpected alphanum in lexNumber: %c", r) | |
| + l.keep(r) |
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 main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "net/http/httputil" | |
| "os" | |
| "strings" | |
| "unicode" |
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 main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "net/http/httputil" | |
| "os" | |
| "strings" | |
| "unicode" |
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
| jorelli@ETSYNY-L645[0] /projects/moon: cat ex.moon | |
| # ------------------------------------------------------------------------------ | |
| # example config format | |
| # | |
| # this is a working draft of things that are valid in a new config language to | |
| # replace json as a config language for Go projects. | |
| # | |
| # comments are a thing now! | |
| # ------------------------------------------------------------------------------ |
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
| [ | |
| { | |
| "create_date": 1429079065, | |
| "dataset_name": "ShopHome_RecentFavorites", | |
| "hostname": "datasets01.ny5.etsy.com", | |
| "load_id": 23278596676, | |
| "replicant": 0, | |
| "shard": 0, | |
| "status": "ready-to-load", | |
| "update_date": 1429079065, |