sudo apt-get update
sudo apt-get install git dkms
git clone https://github.com/smlinux/rtl8723de.git
sudo dkms add ./rtl8723de
/* ============================================ | |
* index.js | |
* ============================================*/ | |
import sumOperation from './operations' | |
/* ============================================ | |
* operations.js | |
* ============================================*/ | |
export default sum = (a,b) => a+b; |
function match(str){ | |
var temp = []; | |
for(var i = 0; i < str.length; i++){ | |
var current = str[i]; | |
var lastChild = temp[temp.length - 1]; | |
console.log(current, lastChild); | |
if(current === '(' || current === '{' || current === '['){ | |
temp.push(current); | |
} | |
if(temp.length > 0){ |
/* | |
* reducers/user.js | |
*/ | |
const userInitialState = { | |
authToken: null, | |
userId: null | |
} | |
const userReducer = (state = userInitialState, action)=>{ | |
return state; | |
} |
function Robot(){ | |
this.parts = []; | |
} | |
Robot.prototype.legs = 2; | |
Robot.prototype.changeLegs = function(num){ | |
this.__proto__.legs = num; | |
} | |
robby = new Robot(); |
/*============== | |
* Constructor | |
===============*/ | |
/* function Kitty: | |
* prototype: Function | |
* __proto__: Object | |
*/ | |
function Kitty(){ | |
this.legs = 4; |
Docs: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
/search | |
const pageLimit; | |
[.limit(pageLimit)] | |
book: 1,2,3,4,5, | |
limit: pageLimit, | |
total: Book.find().count() | |
/search?page=1 |
function connect(mapStateToProps){ | |
const state = { | |
currentGuess: 0, | |
response: '', | |
guesses: [] | |
}; | |
return function(component){ | |
newProps = Object.assign( | |
{}, | |
component.props, |
import aws from 'aws-sdk'; | |
// ======================================== | |
// ! Sign | |
/* | |
* AWS connection to get the signed url | |
*/ | |
// ======================================== | |
const sign = (req, res) => { | |
const { AWS_KEY_ID, AWS_SECRET_ID, AWS_REGION, AWS_BUCKET, AWS_EXPIRY_TIME } = process.env; |
// Import | |
import React, { Component } from 'react'; | |
import {connect} from 'react-redux'; | |
import * as actions from '../actions'; | |
import Dialog from 'material-ui/Dialog' | |
import FlatButton from 'material-ui/FlatButton'; | |
import IconButton from 'material-ui/IconButton'; | |
import LinearProgress from 'material-ui/LinearProgress'; | |
import ActionBackup from 'material-ui/svg-icons/action/backup'; | |
import * as Styles from '../constants/Styles'; |