Skip to content

Instantly share code, notes, and snippets.

@kenzauros
kenzauros / FilterableDropdown.vue
Created July 21, 2018 12:54
Filterable Dropdown with Vue.js
<template>
<div ref="wrapper" class="fd__wrapper">
<input type="hidden" :name="name" :value="value">
<input ref="textBox" type="text" class="fd__display-textbox" :disabled="disabled"
:value="displayText" :placeholder="placeholder" readonly="readonly" @click="textBoxClicked">
<div class="fd__list" v-show="showList">
<div class="fd__filter-input">
<input ref="filterTextBox" type="text" class="fd__filter-textbox" placeholder="Filter..." v-model="filterString">
</div>
<ul>
@mdlincoln
mdlincoln / rstudio-cc.yml
Last active August 9, 2022 11:46
cloud-config script to setup Rstudio server and Shiny server on Ubuntu 14.04 on Digital Ocean
#cloud-config
# In order to access RStudio server via the web interface, you must log on with
# a user account that allows password access. This script does not add that user
# by default. You may either ssh as root into the server and `adduser` as
# normal, or script a user addition here:
# users:
# - name: # username #
# lock-passwd: false # allow login with password
@zmsmith
zmsmith / jpegfield.py
Created June 20, 2011 21:54
Implementation of a Django ImageField that converts all images to JPEG
import Image
import cStringIO
from django.core.files.base import ContentFile
from django.db.models import ImageField
from django.db.models.fields.files import ImageFieldFile
class JPEGImageFieldFile(ImageFieldFile):