add new field
db.getCollection('collectionname').update({},{$set:{fieldname:"value"}},false,true)
remove field
db.getCollection('collectionname').update({}, {$unset: {fieldname:1}}, false, true);
| constructor(){this.state = {isLoading: true} } | |
| componentDidMount() { this.setState ({isLoading: false})} | |
| render(){ | |
| return( | |
| this.state.isLoading? *showLoadingScreen* : *yourPage()*) | |
| } |
| // var webpack = require("webpack"); | |
| const path = require('path'); | |
| module.exports ={ | |
| entry: "./src/client.js", | |
| output:{ | |
| path: path.resolve(__dirname, 'dist/assets/js'), | |
| filename: "bundle.js", | |
| publicPath: "assets/js" | |
| }, |
add new field
db.getCollection('collectionname').update({},{$set:{fieldname:"value"}},false,true)
remove field
db.getCollection('collectionname').update({}, {$unset: {fieldname:1}}, false, true);
| // Defining colors =========================================== | |
| $color-names : ''; | |
| $light-colors : ''; | |
| $dark-colors : ''; | |
| @mixin define-theme-color( $color-name, $light-color, $dark-color ) { | |
| @if ($color-names != "") and (index($color-names, $color-name) != false) { | |
| @warn "Theme color $color-name is already defined"; |
| module.exports = function(grunt){ | |
| grunt.initConfig({ | |
| copy:{ | |
| css:{ | |
| files:[ | |
| { | |
| cwd: 'folder/source/file', | |
| src: '**/*.css', | |
| dest: 'folder/target/', | |
| expand: true |
http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/bk-frontend-dev-guide.html
https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-1
https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-2
http://alanstorm.com/category/magento-2/Please try running following command.
| ::selection { | |
| background: #eac06e; /* Safari */ | |
| color: white; | |
| } | |
| ::-moz-selection { | |
| background: #eac06e; /* Firefox */ | |
| color: white; | |
| } |
| <?php | |
| // Send a Tweet to your Twitter account. | |
| tweetThis('my_user_name', 'my_password', 'my_tweet_message'); | |
| ?> |
| @mixin border-radius($radius) { | |
| -webkit-border-radius: $radius; | |
| -moz-border-radius: $radius; | |
| -ms-border-radius: $radius; | |
| border-radius: $radius; | |
| } | |
| @mixin animate-time($time){ | |
| -webkit-animation-duration: $time; | |
| -mos-animation-duration: $time; |
| function titleCase(str) { | |
| var words = str.split(" "); | |
| var newArray = []; | |
| for(var i=0; i < words.length; i++){ | |
| newArray.push(words[i].slice(0,1).toUpperCase() + words[i].slice(1).toLowerCase()); | |
| } | |
| return newArray.join(" "); | |