- Chrome ($Free) - Because Safari sucks
- VLC Media Player ($Free) - Because QuickTime blows
- Acorn ($30) - Photoshop for humans
- Airmail ($10) - An excellent email client, supports Gmail, Yahoo, Hotmail, Exchange, etc.
- Twitter ($Free) - Twitter's official Mac client. It's pretty great.
swagger: "2.0" | |
info: | |
version: "1.0.0" | |
title: CORS demo | |
description: Demonstrating reusing an operation definition for multiple paths | |
definitions: | |
CORS: | |
summary: CORS Preflight request | |
tags: [CORS] | |
responses: |
/** | |
* An asynchronous for-each loop | |
* | |
* @param {array} array The array to loop through | |
* | |
* @param {function} done Callback function (when the loop is finished or an error occurs) | |
* | |
* @param {function} iterator | |
* The logic for each iteration. Signature is `function(item, index, next)`. | |
* Call `next()` to continue to the next item. Call `next(Error)` to throw an error and cancel the loop. |
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
// Open (or create) the database | |
var open = indexedDB.open("MyDatabase", 1); | |
// Create the schema | |
open.onupgradeneeded = function() { | |
var db = open.result; | |
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
{ | |
"definitions": { | |
"thing": { | |
"$ref": "#/definitions/thing" // circular reference to self | |
}, | |
"person": { | |
"properties": { | |
"name": { | |
"type": "string" | |
}, |
swagger: "2.0" | |
info: | |
version: "1.0.0" | |
title: minimal | |
description: News Articles ftw | |
paths: | |
/users: | |
get: | |
responses: | |
"200": |
This is just a list of changes that I would like to see in SailsJS v1.0. Many of these are breaking changes, but this is a major version bump, so now is the time to make these changes. It’s worth the upgrade pain to make some much-needed improvements to the framework and remove some legacy bloat and code smell.
- Or Express 5.0, if it’s at least in beta by then
- Remove Grunt, EJS, and LESS from SailsJS Core
This CSS stylesheet allows you to preview markdown files in VSCode using GitHub's mardown theme. This CSS was taken directly from the official GitHub Markdown repo. I replaced their top-level .markdown-body
class with the body
tag so it would work in VSCode, and added styling for the html
tag to match GitHub's fixed-width container.
-
Copy the CSS file to your computer
Copy thegithub-markdown.css
file below to your computer. You can put it anywhere you want, but I chose to put it in the same folder as my VSCode settings file. -
Edit your VSCode settings
If you want to use this theme for all of your projects, then edit your User Settings file. If you just want to use this them
swagger: "2.0" | |
info: | |
version: 1.0.0 | |
title: Example | |
paths: | |
"/foo": | |
get: | |
responses: | |
200: |
swagger: "2.0" | |
info: | |
version: 1.0.0 | |
title: Blog | |
paths: | |
"/blogs/{id}/posts": | |
parameters: | |
- name: "id" | |
in: "path" | |
type: "integer" |