Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| You can disable bin-links in the npm config: npm config set bin-links false |
| Converting md files to html w/highlighting | |
| 0a) Create a root directory to pull in all the repos | |
| 0b) Recursively clone or pull each repo | |
| $> git clone <repo_url> | git pull on the existing repos | |
| 0c) Create a TOC index.html file for the root folder | |
| $> echo '<head>' >> index.html | |
| $> echo '' >> index.html | |
| $> echo '</head>' >> index.html | |
| $> echo '<body>' >> index.html | |
| $> ls >> temp.html |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/ is intended for code that can run as-issrc/ is intended for code that needs to be manipulated before it can be used| /** | |
| * Developer: Minhas Kamal (BSSE-0509, IIT, DU) | |
| * Date: 15.Aug.2014 | |
| * Comment: I spent a whole day doing this little code! But it was really fun! | |
| **/ | |
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <time.h> |
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |
| // there are many json-schema validators available, I prefer ajv | |
| let Ajv = require('ajv') | |
| let ajv = Ajv({ allErrors:true }) | |
| let swagger = require('./docs/my-swagger-definition') | |
| // validation middleware | |
| let validateSchema = (parameters) => { | |
| return (req, res, next) => { | |
| let errors = [] | |
| parameters.map(param => { |
| #!/bin/bash | |
| # wrapper around "aws cloudformation" CLI to ignore certain pseudo-errors | |
| # aws cloudformation deploy exits with 255 for "No changes to deploy" see: https://github.com/awslabs/serverless-application-model/issues/71 | |
| # this script exits with 0 for that case | |
| STDERR=$(( aws cloudformation "$@" ) 2>&1) | |
| ERROR_CODE=$? | |
| echo ${STDERR} 1>&2 |