Skip to content

Instantly share code, notes, and snippets.

View dansdantas's full-sized avatar

Daniel Santos Dantas dansdantas

View GitHub Profile
@dansdantas
dansdantas / Dockerfile
Created August 20, 2023 20:52 — forked from siklodi-mariusz/Dockerfile
Dockerfile example for Ruby on Rails running on Alpine Linux
FROM ruby:2.4-alpine3.7
# Install dependencies:
# - build-base: To ensure certain gems can be compiled
# - nodejs: Compile assets
# - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem
# - libxslt-dev libxml2-dev: Nokogiri native dependencies
# - imagemagick: for image processing
RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick
@dansdantas
dansdantas / simple_paperclip.rb
Created March 23, 2018 21:05 — forked from basgys/simple_paperclip.rb
Use Paperclip without ActiveRecord
# == Paperclip without ActiveRecord
#
# Simple and lightweight object that can use Paperclip
#
#
# Customized part can be extracted in another class which
# would inherit from SimplePaperclip.
#
# class MyClass < SimplePaperclip
# attr_accessor :image_file_name # :<atached_file_name>_file_name
// Login component
<template>
<div id="login">
<span>Dead Seeds</span>
</div>
</template>
<script>
export default {
name: 'login'
modalComponent = (function(){
self = this
self.display = false
self.header = ''
self.content = ''
self.domElement;
function _buildComponent() {
return [
'<div class="alg-modal-overlay" data-modal-component>',