New ES6 Features
React
MongoDB
Meteor
This will take 5 weeks ⇒ 1month + 1 week
New ES6 Features
- Re-Introduction to Programming Languages
- What is ES6 Classes
| #!/bin/bash | |
| # Script adb+ | |
| # Usage | |
| # You can run any command adb provides on all your currently connected devices | |
| # ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
| # | |
| # Examples | |
| # ./adb+ version | |
| # ./adb+ install apidemo.apk | |
| # ./adb+ uninstall com.example.android.apis |
| #!/bin/bash | |
| DB=$1 | |
| COLLECTIONS=$(mongo localhost:27017/$DB --quiet --eval "db.getCollectionNames()" | sed 's/,/ /g') | |
| for collection in $COLLECTIONS; do | |
| echo "Exporting $DB/$collection ..." | |
| mongoexport -d newtickettoolDB -c $collection -o $collection.json | |
| done |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Form Recipe: Conditionally disabling the button</title> | |
| <style id="jsbin-css"> | |
| * { | |
| box-sizing: border-box; | |
| } |
New ES6 Features
React
MongoDB
Meteor
This will take 5 weeks ⇒ 1month + 1 week
New ES6 Features
New ES6 Features
React
MongoDB
Meteor
This will take 5 weeks ⇒ 1month + 1 week
New ES6 Features (Half a week)
| var filenameFull = "tm_icons.png"; | |
| //Regex to remove | |
| var filenameText = filenameFull.replace(/\.[^/.]+$/, ""); |
| /* HOC fundamentally is just a function that accepts a Component and returns a Component: | |
| (component) => {return componentOnSteroids; } or just component => componentOnSteroids; | |
| Let's assume we want to wrap our components in another component that is used for debugging purposes, | |
| it just wraps them in a DIV with "debug class on it". | |
| Below ComponentToDebug is a React component. | |
| */ | |
| //HOC using Class | |
| //it's a function that accepts ComponentToDebug and implicitly returns a Class | |
| let DebugComponent = ComponentToDebug => class extends Component { |
| const items = [1, 2, 3, 4, 5 ]; | |
| if(items.includes(5)){ | |
| console.log(true) // true | |
| } | |
| if(items.indexOf(5) > -1){ | |
| console.log(true); // true ; | |
| } |
| const person = { | |
| name: "Johnaas", | |
| job:"dev", | |
| siblings: 2, | |
| friends: "loading ..", | |
| }; | |
| const { name, ...obj } = person; | |
| console.log(name); // Johnaas | |
| console.log(obj); | |
| /* |
| const name = "Johnaas" | |
| const age = 35; | |
| const city = "lusaka"; | |
| const message = "my name is "+ name + ", am " + age + "years old and I live in " + city; | |
| console.log(message); // "my name is Johnaas, am 35years old and I live in lusaka" |