sudo apt-get update
sudo apt-get install git dkms
git clone https://github.com/smlinux/rtl8723de.git
sudo dkms add ./rtl8723de
| 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; |
| function connect(mapStateToProps){ | |
| const state = { | |
| currentGuess: 0, | |
| response: '', | |
| guesses: [] | |
| }; | |
| return function(component){ | |
| newProps = Object.assign( | |
| {}, | |
| component.props, |
| 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 |
| /*============== | |
| * Constructor | |
| ===============*/ | |
| /* function Kitty: | |
| * prototype: Function | |
| * __proto__: Object | |
| */ | |
| function Kitty(){ | |
| this.legs = 4; |
| function Robot(){ | |
| this.parts = []; | |
| } | |
| Robot.prototype.legs = 2; | |
| Robot.prototype.changeLegs = function(num){ | |
| this.__proto__.legs = num; | |
| } | |
| robby = new Robot(); |
| /* | |
| * reducers/user.js | |
| */ | |
| const userInitialState = { | |
| authToken: null, | |
| userId: null | |
| } | |
| const userReducer = (state = userInitialState, action)=>{ | |
| return state; | |
| } |
| 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){ |
| /* ============================================ | |
| * index.js | |
| * ============================================*/ | |
| import sumOperation from './operations' | |
| /* ============================================ | |
| * operations.js | |
| * ============================================*/ | |
| export default sum = (a,b) => a+b; |
| Qué es una variable? | |
| Qué es una variable global? | |
| Qué es una variable local? | |
| Qué es una función? | |
| A qué nos referimos con declarar una función? | |
| A qué nos referimos con invocar una función? | |
| Qué es un argumento? | |
| Para qué sirve una declaración if? | |
| En qué situaciones usamos un ciclo for? | |
| En qué situaciones usamos un ciclo while? |