For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}| //THIS SMART CONTRACT IS CONSUMING A LOT OF GAS | |
| //THIS IS DEMONSTRATION OF RANDOM NUMBER GENERATOR | |
| //DO NOT USE IT FOR PRODUCTION | |
| pragma solidity ^0.4.8; | |
| contract Lottery { | |
| mapping (uint8 => address[]) playersByNumber ; | |
For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}| Full Thread | Original Author | Original document |
|---|---|---|
| @tdpauw - thread link | @nico_mommaerts - tweet link | Pastebin link |
| --- | |
| # SSH server settings, in line with https://stribika.github.io/2015/01/04/secure-secure-shell.html | |
| # Before using, change myhosts to your hosts' nickname and myuser to your username (two instances! make sure you replace both or you'll be locked out of ssh!) | |
| - hosts: myhosts | |
| become: true | |
| remote_user: myuser | |
| tasks: | |
| # Key exchange, ciphers and MACs | |
| - lineinfile: dest=/etc/ssh/sshd_config regexp='^KexAlgorithms' line='KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256' | |
| //Usage | |
| import React from 'react'; | |
| import { BrowserRouter as Router } from 'react-router-dom'; | |
| import Route from './AuthRoute'; | |
| import Login from './Login'; | |
| import Private from './Private'; | |
| export default () => | |
| <Router> |
| import express from 'express'; | |
| import path from 'path'; | |
| import isEmpty from 'lodash/isEmpty'; | |
| import mailer from 'express-mailer'; | |
| import dotenv from 'dotenv'; | |
| dotenv.load(); | |
| const app = express(); | |
| const router = express.Router(); |
| # Remove foreman | |
| yum remove remove foreman foreman-installer foreman-proxy | |
| rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs | |
| rm /etc/httpd/conf.d/foreman.conf | |
| # Remove puppet | |
| yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release | |
| rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet | |
| rm /etc/apache2/conf.d/puppet.conf |
Hopefully this will answer "How do I setup or start a Django project?" I was trying to set up my own website, and there was a lot to read, learn and digest! Therefore, I put this together which is a collection of all the guides/blog posts/articles that I found the most useful. At the end of this, you will have your barebones Django app configured and ready to start building :)
NOTE: This guide was built using Django 1.9.5, NodeJS 4+ with NPM 3+
| node1: | |
| image: hauptmedia/mariadb:10.1 | |
| hostname: node1 | |
| ports: | |
| - 13306:3306 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=test | |
| - REPLICATION_PASSWORD=test | |
| - MYSQL_DATABASE=maria | |
| - MYSQL_USER=maria |
| /** | |
| * VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
| * | |
| * To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
| * It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
| * the height of element `.foo` —which is a full width and height cover image. | |
| * | |
| * iOS Resolution Quick Reference: http://www.iosres.com/ | |
| */ | |