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
{ | |
"openapi": "3.0.0", | |
"servers": [ | |
{ | |
"url": "http://petstore.swagger.io/v2" | |
} | |
], | |
"x-origin": [ | |
{ | |
"url": "http://petstore.swagger.io/v2/swagger.json", |
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
{ | |
"username": "testuser", | |
"password": "bXlwYXNzd29yZA==" | |
} |
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
# Probably not the ideal way to handle this, but it should output the changes made to a model after it's been updated. | |
# If you want to grab the changes before the model is saved, change '.previous_changes' to '.changes' | |
# Hash contains a hash of changes in this following format: | |
# {attribute_name_1 => [old_value, new_value], attribute_name_2 => [old_value, new_value]} | |
change_hash = your_changed_object.previous_changes | |
# If we don't want to include the "updated_at" (or some other attributes), delete their keys from the hash | |
change_hash.delete("updated_at") |
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
Open Xcode > Preferences > Downloads, click Command Line Tools, then click Install. | |
Run ```$ sudo vim /etc/paths``` and move ```/usr/local/bin``` to the top line. | |
```bash | |
$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
$ brew install git | |
$ brew install mysql | |
$ sudo mysql_install_db --verbose --user=root --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.select-list { | |
width:130px; | |
} | |
.select-list > option { | |
font-size:large; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |