# Get latest from MongoDB website
$ curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.6.tgz
$ tar -zxvf mongodb-osx-x86_64-3.4.6.tgz
$ mkdir -p mongodb
$ cp -R -n mongodb-osx-x86_64-3.4.6/ mongodb
$ sudo mv mongodb /usr/local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $element | |
| .delay(1000) | |
| /* Use Velocity to animate the element's top property over a duration of 2000ms. */ | |
| .velocity({ top: "50%" }, 2000) | |
| /* Use a standard jQuery method to fade the element out once Velocity is done animating top. */ | |
| .fadeOut(1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $element | |
| /* Scroll the browser to the top of this element over a duration of 1000ms. */ | |
| .velocity("scroll", 1000) | |
| /* Then rotate the element around its Y axis by 360 degrees. */ | |
| .velocity({ rotateY: "360deg" }, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var counter = 0; | |
| var userInfo = { | |
| leadName: '', | |
| leadEmail: '', | |
| leadPhone: '', | |
| userBrowser: '', | |
| category: '', | |
| productName: '', | |
| userId: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.fontSize": 12, | |
| "editor.tabSize": 4, | |
| "editor.snippetSuggestions": "top", | |
| "workbench.iconTheme": "vscode-icons", | |
| "workbench.colorTheme": "Popping and Locking", | |
| "sync.gist": "9656ba91db41dc5fd09ce6557d20adbd", | |
| "sync.lastUpload": "2017-09-30T19:06:41.059Z", | |
| "sync.autoDownload": true, | |
| "sync.autoUpload": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const person = "Nick"; | |
| person = "John" // Will raise an error, person can't be reassigned | |
| let person = "Nick"; | |
| person = "John"; | |
| console.log(person) // "John", reassignment is allowed with let |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| The following can replace the file in the Field Arrays example | |
| (https://github.com/erikras/redux-form/tree/master/examples/fieldArrays) to demonstrate this functionality. | |
| **/ | |
| import React from 'react' | |
| import { connect } from 'react-redux' | |
| import { Field, FieldArray, reduxForm, formValueSelector } from 'redux-form' | |
| import validate from './validate' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Hello!</title> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <style type="text/css"> | |
| .hide-query-div{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Setup your MEAN.JS project | |
| GITHUB=YourGitHubAccount | |
| BITBUCKET=YouBitBucketAccount | |
| PROJECT=YourProjectName | |
| # Fork project on GitHub | |
| # Clone it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ☀ git push production master master | |
| Initializing repository, done. | |
| Counting objects: 2797, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (1390/1390), done. | |
| Writing objects: 100% (2797/2797), 1.43 MiB | 161.00 KiB/s, done. | |
| Total 2797 (delta 1313), reused 2793 (delta 1311) | |
| -----> Deleting 1 files matching .slugignore patterns. | |
| -----> Node.js app detected |