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
.spreadsheet--search.grid.grid-flow-col.grid-cols-auto.gap-0.auto-cols-fr.pl-1.pr-8.hidden{ data: { controller: "spreadsheet--search", action: "toggle-search@window->spreadsheet--search#toggleSearch" }} | |
.input.col-span-9.p-2 | |
%sl-input.w-full(placeholder="Search" size="small" clearable pill){ data: { target: "spreadsheet--search.input"}} | |
%sl-icon(name="search" slot="prefix") | |
%sl-dropdown(slot="suffix" placement="bottom-end" hoist){ data: { target: "spreadsheet--search.dropdown"}} | |
%sl-button(slot="trigger" caret type="text" size="small"){ data: { target: "spreadsheet--search.trigger"}} Highlight | |
%sl-menu | |
%sl-menu-item{ data: { target: "spreadsheet--search.higlight"}, checked: true} Highlight | |
%sl-menu-item{ data: { target: "spreadsheet--search.filter"}} Filter |
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
%sl-alert.popup-toast{id: id, type: type, open: false, duration: duration, closable: true} | |
%sl-icon{slot: "icon", name: icon} | |
- if title.present? | |
%strong= title | |
%br | |
= text |
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 ApplicationController < ActionController::Base | |
after_action :clear_view_component_cache, if: -> { Rails.env.development? } | |
def clear_view_component_cache | |
ViewComponent::CompileCache.cache = Set.new | |
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
div { | |
font-family: Georgia; | |
font-size: 10pt; | |
} | |
h1 { | |
font-family: Helvetica; | |
} | |
img { | |
padding: 2em; | |
} |
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="question"> | |
<div class="q-no">42. </div> | |
<div class="q-text">When the charge is reversed in a neuron during an action potential it is called</div> | |
<div class="answers"> | |
<div class="answer"> | |
<span class="answer-hole"></span> | |
<div class="opt">a)</div> | |
<div class="option">Polarization</div> | |
</div> | |
<div class="answer"> |
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="question"> | |
<div class="q-no">42. </div> | |
<div class="q-text">When the charge is reversed in a neuron during an action potential it is called</div> | |
<div class="answers"> | |
<div class="answer"> | |
<span class="answer-hole"></span> | |
<div class="opt">a)</div> | |
<div class="option">Polarization</div> | |
</div> | |
<div class="answer"> |
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
console.log('Loading function'); | |
var doc = require('dynamodb-doc'); | |
var dynamo = new doc.DynamoDB(); | |
/** | |
* Provide an event that contains the following keys: | |
* | |
* - operation: one of the operations in the switch statement below | |
* - tableName: required for operations that interact with DynamoDB |
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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
if Rails.env.development? | |
module CoffeeScript | |
class SourceMapError < StandardError; end; | |
class << self | |
def compile script, options | |
script = script.read if script.respond_to?(:read) | |
if options.key?(:no_wrap) and !options.key?(:bare) |
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
# See http://blog.obiefernandez.com/content/2012/02/metaprogramming-your-activerecord-objects-at-runtime.html for an explanation | |
require 'spec_helper' | |
describe Nomination do | |
let(:user1) { FactoryGirl.create(:user) } | |
let(:user2) { FactoryGirl.create(:user_with_nominations_received) } | |
let(:user3) { FactoryGirl.create(:user_with_nominations_received) } | |
let(:user4) { FactoryGirl.create(:user) } | |
let(:user5) { FactoryGirl.create(:user) } |
NewerOlder