I'm sure you know know how to install packages but here is the command for the sake of completeness
npm install sequelize async
First initilize the migrations structure
import win32com, win32com.client | |
qtp = win32com.client.Dispatch("QuickTest.Application") | |
# starts up QTP | |
qtp.Launch() | |
# make the QTP window visible | |
qtp.Visible = True |
// What does the following do ? | |
for(let i=0; i<=10; i++) { | |
fetch(`https://httpbin.org/get?someParam=${Date.now()}`) | |
.then(res => res.json()) | |
.then(({origin}) => console.log(`${i} - ${origin}`)); | |
} | |
A MultiWidget is a widget that contains more than one widget and bundles it into one. Sometimes you require two or more inputs from the user where the data is not mutually exclusive. For example the expiry date on a credit card or a phone number with the area code.
This blog post will show and explain how to create a MultiWidget for an expiry date that accepts a month and a year.
Creating a MultiWidget is similar to creating a custom Widget. Here is the code for an expiry date multiwidget that accepts two values the month and year that a credit card expires.
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/SyntaxHighlighter | |
* | |
* SyntaxHighlighter is donationware. If you are using it, please donate. | |
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html | |
* | |
* @version | |
* 3.0.83 (July 02 2010) | |
* |
var Promise = require('bluebird'); | |
var sinon = require('sinon'); | |
var User = require('./db/models').User; | |
describe('User model', function(){ | |
var userFindStub; | |
var sandbox; | |
before(function(){ | |
sandbox = sinon.sandbox.create(); |
FROM python:3.6 | |
ENV PYTHONUNBUFFERED 1 | |
RUN groupadd -g 1001 -r django && useradd -m -u 1001 -r -g django django | |
WORKDIR /opt/project | |
USER root | |
ENV FILESYSTEM_ROOT /opt/project | |
COPY ./requirements.txt /opt/project/requirements.txt | |
RUN pip install pip --upgrade |
LC_ALL=en_AU.UTF-8 | |
LANG=en_AU.UTF-8 |
const { exec } = require('child_process'); | |
const anybar = require('anybar'); | |
process.stdin.resume(); | |
function exitHandler(err) { | |
if (err) { | |
console.error(err); | |
} | |
anybar('exclamation') |
#!/bin/bash | |
cat item.json | jq 'map( { | |
amount: .amount, | |
yieldFactor: .yieldFactor, | |
servingSize: .servingSize | { gramsEntered: .gramsEntered }, | |
measures: .measures | map( { | |
amount: .amount, | |
gramsPerUnit: .gramsPerUnit | |
}), |