Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| function autotab(orig,dest){ | |
| if (orig.getAttribute&&orig.value.length==orig.getAttribute("maxlength")) | |
| dest.focus(); | |
| } | |
| 74 console.debug('before autotab'); | |
| 75 $(document).ready(function() { | |
| 76 $('.at1').autotab(); | |
| 77 $('.at2').autotab(); | |
| 78 }); |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| # This tells kubecfg to read its config from the local directory | |
| export KUBECONFIG=./kubeconfig | |
| # Looking at the cluster | |
| kubectl get nodes | |
| kubectl get pods --namespace=kube-system | |
| # Running a single pod | |
| kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard | |
| kubectl get pods |
| /** | |
| * This gist was inspired from https://gist.github.com/homam/8646090 which I wanted to work when uploading an image from | |
| * a base64 string. | |
| * This code is used in my startup, Zired. | |
| * Web: http://zired.io | |
| */ | |
| // You can either "yarn add aws-sdk" or "npm i aws-sdk" | |
| const AWS = require('aws-sdk') |
| { | |
| "name": "application", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "server.js", | |
| "scripts": { | |
| "dev": "nodemon server.js", | |
| "build": "webpack", | |
| "start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --port 8000", | |
| "test": "jest", |
| //require("babel-register"); | |
| //module.exports = require("./webpack.config.babel"); | |
| import webpack from "webpack"; | |
| import path from 'path'; | |
| import CleanWebpackPlugin from 'clean-webpack-plugin'; | |
| import HtmlWebpackPlugin from "html-webpack-plugin"; | |
| { | |
| "root": true, | |
| "extends": [ | |
| "eslint:recommended", | |
| "plugin:import/errors", | |
| "plugin:import/warnings" | |
| ], | |
| "parserOptions": { | |
| "ecmaVersion": 7, | |
| "sourceType": "module" |
| import React, { Component } from 'react'; | |
| import { reduxForm, Field } from 'redux-form'; | |
| class Signin extends Component { | |
| onSubmit({ email, password }) { | |
| console.log(email); | |
| console.log(password); | |
| } | |
| renderField(field) { |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Example of `adapter' design pattern | |
| # Copyright (C) 2011 Radek Pazdera | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |
| #!/bin/bash | |
| git pull | |
| for app in $(ls apps); do | |
| echo $app | |
| cd apps/$app | |
| branch=$(git symbolic-ref --short -q HEAD) | |
| if [ $branch = "master" ] ; then |