Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Dudu Lasry david1542

🎯
Focusing
Block or report user

Report or block david1542

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dropdown.js
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'reactstrap';
import styled from 'styled-components';
import cloneDeep from 'lodash.clonedeep'
import { withBus } from 'react-bus';
import { extractDeepValue } from '../../utils';
import {
FETCH_COLLECTION
} from '../../actions';
View jsftp example
function fetchFiles(path) {
return new Promise(function(resolve, reject) {
// Fetch started. Listing all files from the user specific directory.
ftp.ls(path, function(err, res) {
if(err || res.length === 0) return reject();
// Close the ftp connection
ftp.destroy();
// Iterating files list
async.mapSeries(res, function(file, callback) {
let buffer = false;
View gist:6f783795ed9b9fa43bfc0177c7ab5504
from djongo import models
from django import forms
userStatusEnum = (
('pending', 'pending'),
('active', 'active'),
('removed', 'removed'),
)
userTypeEnum = (
('buyer', 'buyer'),
You can’t perform that action at this time.