Skip to content

Instantly share code, notes, and snippets.

View LuisHCK's full-sized avatar
🏠
Working from home

Luis J. Centeno LuisHCK

🏠
Working from home
View GitHub Profile
@LuisHCK
LuisHCK / simple_form_mdl_wrappers.rb
Created January 15, 2017 21:28 — forked from anonymous/simple_form_mdl_wrappers.rb
Material Design Lite wrappers for Simple Form
# Simple wrappers for Material Design Lite text fields to use with SimpleForm (Rails)
SimpleForm.setup do |config|
config.wrappers :mdl_field, tag: 'div', class: 'mdl-textfield mdl-js-textfield', error_class: 'mdl-textfield__error' do |b|
b.use :html5
b.use :input, class: 'mdl-textfield__input'
b.use :label, class: 'mdl-textfield__label'
end
<!-- facebook Open Graph Metadatas -->
<meta content="your_facebook_app_id" property="fb:app_id">
<meta content="{{ site.title }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
@LuisHCK
LuisHCK / select-file.vue
Created February 19, 2018 17:27 — forked from ecmel/select-file.vue
Vuetify Multiple File Select and Preview
<script>
export default {
name: 'VSelectFile',
model: {
prop: 'value',
event: 'change'
},
props: {
label: {
type: String,
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@LuisHCK
LuisHCK / material-colors.json
Created September 21, 2018 01:59 — forked from kawanet/material-colors.json
Material Design Style Color Palette as JSON
{
"red": {
"50": "#ffebee",
"100": "#ffcdd2",
"200": "#ef9a9a",
"300": "#e57373",
"400": "#ef5350",
"500": "#f44336",
"600": "#e53935",
"700": "#d32f2f",
@LuisHCK
LuisHCK / django-ModelMultipleChoiceField-crispy.md
Created October 17, 2018 17:55 — forked from s-boardman/django-ModelMultipleChoiceField-crispy.py
Django 1.11 Using ModelMultipleChoiceField outside Admin interface with Crispy-Forms

How to use the ModelMultipleChoiceField widget outside the Django admin interface

when processing forms with Crispy-forms

Prerequisites

django-crispy-forms installed and included in settings (as per crispy docs)

Edited files:

urls.py (root, not app/urls.py)