About Me

Hey, my name is Sean and I'm a software developer based in New York City. Currently, I'm helping build real estate products at Nestio.

The primary technologies I'm familiar with are Python/Django and JavaScript/React/Redux with ancillary technologies sprinkled in there. For the near future, my career aspirations as a dev are to acquire a skillset that will allow me to take an idea, design and build the frontend, structure a clean and easily extensible API, and learn enough sysadmin/DevOps to scale it (should I ever be fortunate to have that problem).

If you would like to contact me, send an email to me at sean@drivelous.com

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@bookmarks.route('/add', methods=('GET', 'POST'))
@login_required
def add():
    form = BookmarkForm()
    if form.validate_on_submit():
        url = form.url.data
        description = form.description.data
        tags = form.tags.data
        bm = Bookmark(user=current_user, url=url, description=description, tags=tags)
        db.session.add(bm)
        db.session.commit()
        flash("Stored bookmark '{}'".format(description))
        return redirect(url_for('main.index'))
    return render_template('bookmark_form.html', form=form, title='Add a bookmark')


@bookmarks.route('/edit/<int:bookmark_id>', methods=('GET', 'POST'))
@login_required
def edit_bookmark(bookmark_id):
    bookmark = Bookmark.query.get_or_404(bookmark_id)
    if current_user != bookmark.user:
        abort(403)
    form = BookmarkForm(obj=bookmark)
    if form.validate_on_submit():
        form.populate_obj(bookmark)
        db.session.commit()
        flash("Stored '{}'".format(bookmark.description))
        return redirect(url_for('bookmarks.user', username=current_user.username))
    return render_template('bookmark_form.html', form=form, title='Edit bookmark')


@bookmarks.route('/user/<username>')
def user(username):
    user = User.query.filter_by(username=username).first_or_404()
    return render_template('user.html', user=user)