constraints: BoxConstraints.expand() so the child a column can have expanded
TextField(
controller: _usernameController,
decoration: InputDecoration(
// 1 | |
import { peopleReducer as peopleState } from './reducers/peopleReducer.ts'; | |
import { combineReducers } from 'redux'; | |
export const rootReducer = combineReducers({ | |
peopleState, | |
}); | |
export type AppState = ReturnType<typeof rootReducer>; |
import * as React from 'react' | |
import * as Redux from 'redux' | |
import { MyReduxState } from './my-root-reducer.ts' | |
export interface OwnProps { | |
propFromParent: number | |
} | |
interface StateProps { |
<html> | |
<body> | |
<h2>Privacy Policy</h2> | |
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended | |
for use as is.</p> | |
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use [my|our] Service.</p> | |
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in | |
relation with this policy. The Personal Information that [I|we] collect are used for providing and | |
improving the Service. [I|We] will not use or share your information with anyone except as described |
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# https://docs.docker.com/compose/install/ |
// getComponent is a function that returns a promise for a component | |
// It will not be called until the first mount | |
function asyncComponent(getComponent) { | |
return class AsyncComponent extends React.Component { | |
static Component = null; | |
state = { Component: AsyncComponent.Component }; | |
componentWillMount() { | |
if (!this.state.Component) { | |
getComponent().then(Component => { |
map $http_accept_language $index_redirect_uri { | |
default "/en/"; | |
"~(^|,)en.+,ru" "/en/"; | |
"~(^|,)ru.+,en" "/ru/"; | |
"~(^|,)en" "/en/"; | |
"~(^|,)ru" "/ru/"; | |
} | |
location = / { | |
return 302 $index_redirect_uri; |
/* SINPPET FOR DELETED & DELETED AT SUPPORT IN KNEX.JS | |
inspired from Sequlize.js 'paranoid' schema option, | |
don't delete rows from database, ever. | |
*/ | |
/* In Table Definition */ | |
knex.schema.createTable('TABLE_NAME', function(table) { | |
table.boolean('deleted').defaultsTo(false).notNullable(); | |
table.dateTime('deleted_at'); |
<nav className='navbar'> | |
{ | |
userRole === 'admin' && ( | |
<AdminPanel /> | |
) || userRole === 'user' && ( | |
<UserPanel /> | |
) || ( | |
<StatusPanel /> | |
) | |
} |
'use strict'; | |
const authentication = require('feathers-authentication'); | |
const jwt = require('feathers-authentication-jwt'); | |
const local = require('feathers-authentication-local'); | |
const oauth2 = require('feathers-authentication-oauth2'); | |
const GithubStrategy = require('passport-github'); | |
// Bring in the oauth-handler | |
const makeHandler = require('./oauth-handler'); |