This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Paperclip convert id => id_partition | |
# | |
require 'ftools' #FileUtils | |
class PaperclipExtend | |
def self.obtain_class | |
class_name = ENV['CLASS'] || ENV['class'] | |
uploads_path = ENV['UPLOADS_PATH'] || ENV['uploads_path'] | |
raise "Must specify CLASS" unless class_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongo_template.rb | |
# MongoDB FTW! | |
db_name = ask('What should I call the database? ') | |
initializer 'database.rb', <<-CODE | |
MongoMapper.database = "#{db_name}-\#{Rails.env}" | |
CODE | |
file 'config/database.yml', <<-CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if IE 9 ]> <html class="ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title>Custom select</title> | |
<style type="text/css"> | |
.cs { | |
height: 28px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="members"> | |
<div class="avatar"> | |
<div class="initials">JD</div> | |
<p>Jane Doe</p> | |
<small>30</small> | |
</div> | |
<div class="avatar"> | |
<div class="initials">JD</div> | |
<p>Jane Doe</p> | |
<small>30</small> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApplicationElement, html } from '@effectivastudio/lit-components'; | |
import translations from './translations.js'; | |
import style from './style.lit.css'; | |
/** | |
* TODO: Description | |
* | |
* @prop exampleProp - TODO: description | |
* |