Quick references to items used all the time
ABOUT DEV DOCS
go wiki: dev docs wiki
In the process of migrating to this vuepress site
https://github.com/h5bp/html5-boilerplate/blob/master/README.md
npm install html5-boilerplate
https://gist.github.com/CliffCrerar/1541e9ddc266361cbe3fa14ec76ea80c
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
https://gist.githubusercontent.com/CliffCrerar/3cbd53c4085400cf43e75cc7ad446d8e/raw/72c8d59a4b32988104f64e966e4fd76c09283264/css-rad-utils.css
Site | Link |
---|---|
https://www.facebook.com/cliff.crerar | |
LinkedId | https://www.linkedin.com/in/cliff-crerar/ |
https://twitter.com/Cliffenator | |
https://www.instagram.com/cliffenator/ | |
Stack Overflow | https://stackoverflow.com/users/5599914/cliff-crerar?tab=profile |
Github | https://github.com/CliffCrerar |
Dribble | https://dribbble.com/cliffenator# |
Behance | https://www.behance.net/cliff-crerar |
Mastodon | https://mastodon.social/@cliffcrerar |
Hashnode | https://hashnode.com/@Cliff |
Medium | Closed account |
Quora | https://www.quora.com/profile/Cliff-Crerar |
google cliff crerar | |
youyube | https://www.youtube.com/user/MrBeamerguy |
Telegram | https://t.me/cliffcrerar |
Gitfolio | https://cliffcrerar.github.io/gitfolio/ |
StackShare | https://stackshare.io/CliffCrerar |
Site | Link |
---|---|
Portal | www.cliff-crerar.tech |
GitFolio | https://cliffcrerar.github.io/gitfolio/ |
Resume | resume.cliff-crerar.tech |
Privacy | https://policies.cliff-crerar.tech/portal-privacy |
Terms of Use | https://policies.cliff-crerar.tech/portal-terms |
!TODO
Project Name | Project Status |
---|---|
- Demo phonebook application | released/ongoing |
- learn transact sql and database fundamentals | released/ongoing |
- next-app-starter-preconfigured | failed/archived |
- Dev Docs | migrating to vuepress |
https://docs.microsoft.com/en-us/learn/browse/?products=azure-functions
Other
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference#folder-structure https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
Create HTTP errors for Express, Koa, Connect, etc. with ease.
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install http-errors
var createError = require('http-errors')
var express = require('express')
var app = express()
app.use(function (req, res, next) {
if (!req.user) return next(createError(401, 'Please login to view this page.'))
next()
})
This is the current API, currently extracted from Koa and subject to change.
expose
- can be used to signal if message
should be sent to the client,
defaulting to false
when status
>= 500headers
- can be an object of header names to values to be sent to the
client, defaulting to undefined
. When defined, the key names should all
be lower-casedmessage
- the traditional error message, which should be kept short and all
single linestatus
- the status code of the error, mirroring statusCode
for general
compatibilitystatusCode
- the status code of the error, defaulting to 500
Create a new error object with the given message msg
.
The error object inherits from createError.HttpError
.
var err = createError(404, 'This video does not exist!')
status: 500
- the status code as a numbermessage
- the message of the error, defaulting to node’s text for that status code.properties
- custom properties to attach to the objectExtend the given error
object with createError.HttpError
properties. This will not alter the inheritance of the given
error
object, and the modified error
object is the
return value.
fs.readFile('foo.txt', function (err, buf) {
if (err) {
if (err.code === 'ENOENT') {
var httpError = createError(404, err, { expose: false })
} else {
var httpError = createError(500, err)
}
}
})
status
- the status code as a numbererror
- the error object to extendproperties
- custom properties to attach to the objectCreate a new error object with the given message msg
.
The error object inherits from createError.HttpError
.
var err = new createError.NotFound()
code
- the status code as a numbername
- the name of the error as a “bumpy case”, i.e. NotFound
or InternalServerError
.Status Code | Constructor Name |
---|---|
400 | BadRequest |
401 | Unauthorized |
402 | PaymentRequired |
403 | Forbidden |
404 | NotFound |
405 | MethodNotAllowed |
406 | NotAcceptable |
407 | ProxyAuthenticationRequired |
408 | RequestTimeout |
409 | Conflict |
410 | Gone |
411 | LengthRequired |
412 | PreconditionFailed |
413 | PayloadTooLarge |
414 | URITooLong |
415 | UnsupportedMediaType |
416 | RangeNotSatisfiable |
417 | ExpectationFailed |
418 | ImATeapot |
421 | MisdirectedRequest |
422 | UnprocessableEntity |
423 | Locked |
424 | FailedDependency |
425 | UnorderedCollection |
426 | UpgradeRequired |
428 | PreconditionRequired |
429 | TooManyRequests |
431 | RequestHeaderFieldsTooLarge |
451 | UnavailableForLegalReasons |
500 | InternalServerError |
501 | NotImplemented |
502 | BadGateway |
503 | ServiceUnavailable |
504 | GatewayTimeout |
505 | HTTPVersionNotSupported |
506 | VariantAlsoNegotiates |
507 | InsufficientStorage |
508 | LoopDetected |
509 | BandwidthLimitExceeded |
510 | NotExtended |
511 | NetworkAuthenticationRequired |
https://docs.microsoft.com/en-us/azure/javascript/
PouchDB
https://github.com/jo/pouch-box
https://github.com/dahjelle/pouch-datalog
https://github.com/pouchdb-community/pouchdb-dump-cli
https://github.com/pouchdb-community/pouchdb-load
https://github.com/redgeoff/delta-pouch
https://github.com/pouchdb-community/pouchdb-full-sync
https://github.com/jo/pouch-resolve-conflicts
https://github.com/pouchdb-community/relational-pouch
https://github.com/pouchdb/upsert
https://github.com/pouchdb-community/worker-pouch
https://github.com/jrhicks/ngPouch
https://github.com/nolanlawson/blob-util
http://cdaringe.github.io/pouchy/
http://docs.couchdb.org/en/latest/api/database/security.html
http://docs.couchdb.org/en/latest/intro/overview.html#security-and-validation
http://docs.couchdb.org/en/latest/intro/security.html
https://github.com/pouchdb/pouchdb-search
https://github.com/pouchdb/pouchdb-fauxton
git config --global alias.update '!git pull && git submodule update --init --recursive'
https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/getting-started https://docs.microsoft.com/en-us/samples/browse/?redirectedfrom=MSDN-samples https://dotnet.microsoft.com/apps/aspnet/apis https://dotnet.microsoft.com/platform/community/standup https://dotnet.microsoft.com/apps/aspnet/mvc
https://en.wikipedia.org/wiki/Test-driven_development
https://en.wikipedia.org/wiki/SOLID
https://en.wikipedia.org/wiki/GRASP_(object-oriented_design)
https://en.wikipedia.org/wiki/KISS_principle
https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it
https://en.wikipedia.org/wiki/Package_principles
https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/november/data-points-backing-field-and-owned-entity-changes-in-ef-core-3-0
https://rupl.github.io/unfold/
https://www.freecodecamp.org/news/developing-and-deploying-micro-frontends-with-single-spa/
https://bruno-simon.com/
https://www.serverless.com/blog/category/guides-and-tutorials
https://serverless-stack.com/
https://neumorphism.io/#ffffff
https://shadows.brumm.af/ https://larsenwork.com/easing-gradients/ https://getcssscan.com/css-box-shadow-examples
https://reactstrap.github.io/?path=/story/home-installation–page