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
<template> | |
<v-container> | |
<v-layout> | |
<v-flex xs3 v-for="customer in customers" :key="customer.id"> | |
<v-card> | |
<v-card-media src="../static/male.png" height="200px"> | |
</v-card-media> | |
<v-card-title primary-title> | |
<div> | |
<h3 class="headline mb-0"> |
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
class Organization < ApplicationRecord | |
validates :name, presence: true, uniqueness: true | |
validates :description, presence: true | |
has_many :organization_categories | |
has_many :categories, through: :organization_categories | |
has_many :locations | |
def self.categories_query(category_ids) | |
if category_ids.count == 1 |
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
{ | |
"workbench.colorTheme": "Dracula", | |
"editor.fontSize": 18, | |
"editor.fontFamily": "Operator Mono", | |
"editor.fontLigatures": true, | |
// "vscode_custom_css.imports": ["file://Users/evansparkman/Development/vs_code_styles.css"], | |
"editor.tabSize": 2, | |
"editor.tabCompletion": true, | |
"editor.rulers": [80], | |
"editor.renderIndentGuides": true, |
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
extends layout | |
block content | |
.inner | |
h2 #{tag || 'Tags'} | |
ul.tags | |
each tag in tags | |
li.tag | |
a.tag__link( | |
href=`/tags/${tag._id}` |
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
module ArticlesHelper | |
def markdownify(content) | |
pipeline_content = { gfm: true } | |
pipeline = HTML::Pipeline.new [ | |
HTML::Pipeline::MarkdownFilter, | |
], pipeline_content | |
pipeline.call(content)[:output].to_s | |
end | |
end |
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
require 'json' | |
json = { :array => [1, 2, 3, { :sample => "hash"} ], :foo => "bar" } | |
puts JSON.pretty_generate(json) |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Styles Conference </title> | |
<link rel="stylesheet" href="assets/stylesheet/main.css"> | |
</head> | |
<body> |
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
@cache = [0,1] | |
def fib(number) | |
return @cache[number] if @cache[number] | |
@cache[number] = fib(number-1) + fib(number-2) | |
end | |
(1..50).each { |n| puts fib(n) } |
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> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" /> | |
<meta charset="UTF-8"> | |
<title>Untitled Document</title> | |
<link href='bootstrap/css/bootstrap.min.css' rel='stylesheet' /> | |
<style type='text/css'> | |
#carousel-custom { | |
margin: 20px auto; |
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
module Admin | |
class VehiclesController < Admin::ApplicationController | |
# To customize the behavior of this controller, | |
# simply overwrite any of the RESTful actions. For example: | |
# | |
# def index | |
# super | |
# @resources = Vehicle.all.paginate(10, params[:page]) | |
# end |