This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
| // | |
| // NSString+SO.m | |
| // | |
| // Created by Ezo Saleh on 04/12/2011. | |
| // | |
| #import "NSString+SO.h" | |
| @implementation NSString (SO) |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
| var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
| // In middleware | |
| app.use(function (req, res, next) { | |
| // action after response | |
| var afterResponse = function() { | |
| logger.info({req: req}, "End request"); | |
| // any other clean ups |
| #!/usr/bin/env bash | |
| # Usage: | |
| # echo -e "... $(text-style style ...) ..." | |
| # echo -e "... $(text-reset) ..." | |
| # echo -e "... $(text-color r g b) ..." | |
| # echo -e "... $(background-color r g b) ..." | |
| # | |
| # Where: | |
| # styles: |
| # -------------------------------- | |
| # macOS temporary files | |
| # -------------------------------- | |
| .DS_Store | |
| *.lock | |
| *.swp | |
| # -------------------------------- | |
| # Xcode | |
| # -------------------------------- |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
| /** Global override to make all AJAX calls as POST type */ | |
| Backbone.ajax = function() { | |
| var args = Array.prototype.slice.call(arguments, 0); | |
| return Backbone.$.ajax.apply(Backbone.$, _.extend(args, {type: 'POST'})); | |
| }; | |
| /** Manual override per call */ | |
| Collection.fetch({data: {id: 34}, type: 'POST'}); |
| openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes |
| #!/usr/bin/env bash | |
| if [[ ! ( # any of the following are not true | |
| # 1st arg is an existing regular file | |
| -f "$1" && | |
| # ...and it has a .ipa extension | |
| "${1##*.}" == "ipa" && | |
| # 2nd arg is an existing regular file | |
| -f "$2" && | |
| # ...and it has an .mobileprovision extension |
| # -*- Conf -*- | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| showbranch = auto | |
| ui = true | |
| # color.branch | |
| # A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or |