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
| ################ | |
| ### macOS ### | |
| ################ | |
| brew install python3 | |
| brew install python | |
| brew unlink python && brew link --overwrite python # make sure python links to python2 | |
| pip2 install --upgrade pip setuptools # upgrade to latest pip2 | |
| pip3 install --upgrade pip setuptools # upgrade to latest pip3 |
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
| awk 'BEGIN{ | |
| s="/\\/\\/\\/\\/\\"; s=s s s s s s s s; | |
| for (colnum = 0; colnum<77; colnum++) { | |
| r = 255-(colnum*255/76); | |
| g = (colnum*510/76); | |
| b = (colnum*255/76); | |
| if (g>255) g = 510-g; | |
| printf "\033[48;2;%d;%d;%dm", r,g,b; | |
| printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b; | |
| printf "%s\033[0m", substr(s,colnum+1,1); |
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
| ( ͡° ͜ʖ ͡°) | |
| ¯\_(ツ)_/¯ | |
| (▀ ͜͞ʖ▀) | |
| ʕ•ᴥ•ʔ | |
| (▀̿Ĺ̯▀̿ ̿) | |
| (ง ͠° ͟ل͜ ͡°)ง | |
| ༼ つ ◕_◕ ༽つ | |
| ಠ_ಠ | |
| (づ。◕‿‿◕。)づ | |
| ( ͠° ͟ʖ ͡°) |
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
| alias ll='CLICOLOR_FORCE=1 ls -la -G | less -SEX' |
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
| import UIKit | |
| import XCTest | |
| // experimenting with strings | |
| // remove string at given indexes | |
| extension String { | |
| // just a convenience method to visualize indexes | |
| func printIndexes() { |
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
| import UIKit | |
| import XCTest | |
| // experimenting with strings | |
| // remove string at given indexes | |
| extension String { | |
| // just a convenience method to visualize indexes | |
| func printIndexes() { |
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
| { | |
| "above": [ | |
| "\u030d", | |
| "\u030e", | |
| "\u0304", | |
| "\u0305", | |
| "\u033f", | |
| "\u0311", | |
| "\u0306", | |
| "\u0310", |
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
| { | |
| "above": [ | |
| "\u030d", | |
| "\u030e", | |
| "\u0304", | |
| "\u0305", | |
| "\u033f", | |
| "\u0311", | |
| "\u0306", | |
| "\u0310", |
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 tiny network, where a generic Resource can be used to load any type from the internet, as long it provides a parse for it.` | |
| import UIKit | |
| import PlaygroundSupport | |
| PlaygroundPage.current.needsIndefiniteExecution = true | |
| struct Resource<T> { | |
| var request: URLRequest | |
| var parse: (Data) -> T? |
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
| { | |
| "code": 4001, | |
| "message": "Campos inválidos", | |
| "invalid_fields": [ | |
| { "field_name": "address_name", "message": "O nome do endereço é obrigatório"}, | |
| { "field_name": "phone_number", "message": "O campo Telefone deve possuir no máximo 15 caracteres"} | |
| ], | |
| "response": [] | |
| } |