Skip to content

Instantly share code, notes, and snippets.

View mushfiqweb's full-sized avatar

Mushfiqur Rahman mushfiqweb

View GitHub Profile
$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);
$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);
@mushfiqweb
mushfiqweb / install-mongodb-on-OS-X.md
Last active August 7, 2017 12:35 — forked from Sydney-o9/install-mongodb-mac-os-x.md
Install MongoDB on Mac OS X without brew

1. Download latest source

# 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
var counter = 0;
var userInfo = {
leadName: '',
leadEmail: '',
leadPhone: '',
userBrowser: '',
category: '',
productName: '',
userId: '',
{
"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,
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
@mushfiqweb
mushfiqweb / FieldArraysForm.js
Created November 9, 2017 23:40 — forked from erikras/FieldArraysForm.js
Example showing how to use a formValueSelector on an individual array item
/**
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'
<!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{
@mushfiqweb
mushfiqweb / setup.sh
Created December 7, 2017 12:37
Setup your MEAN.JS project
#!/bin/bash
## Setup your MEAN.JS project
GITHUB=YourGitHubAccount
BITBUCKET=YouBitBucketAccount
PROJECT=YourProjectName
# Fork project on GitHub
# Clone it
☀ 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