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
FROM public.ecr.aws/sam/build-ruby3.2:latest-x86_64 | |
RUN yum install -y amazon-linux-extras && amazon-linux-extras enable postgresql14 | |
RUN yum install -y postgresql postgresql-devel build-essential | |
ADD Gemfile /var/task/Gemfile | |
ADD Gemfile.lock /var/task/Gemfile.lock | |
RUN bundle config set --local deployment true | |
RUN bundle install |
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 DependentField{ | |
constructor(dep, config){ | |
this.options = config; | |
this.target = dep; | |
this.target.dataset.dependent = true; | |
const props = this.target.dataset.depends.toString(); | |
const [input, value] = props.split('->'); | |
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 LayoutHelper | |
## | |
# Render flash messages | |
# | |
# @param [String] attrs Attributes to add to the surrounding <div> | |
# | |
def flash_messages(attrs = {}) | |
return if flash.nil? or flash.empty? | |
closer = "<span class='close'>×</span>" |
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 Fixnum | |
def to_bool | |
self == 1 | |
end | |
end | |
def Float | |
def to_bool | |
self.to_i.to_bool | |
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
#----------------------------------------------------------- | |
# If using a proxy server | |
upstream app{ | |
#server unix:///app_path/shared/sockets/app.sock fail_timeout=0; | |
server unix:///app_path/shared/sockets/app.sock; | |
} | |
#------------------------------------------------------------ |
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 RTable | |
orig: null | |
wrap: null | |
pinned: null | |
constructor:(table)-> | |
@orig = $(table) | |
@orig.addClass('modified') | |
.wrap("<div class='table-wrapper'></div>") | |
@wrap = @orig.parent('div.table-wrapper') | |
@split() |
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 id='grid'><div id='baseline_grid'></div></div> |
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
/* | |
* Make sure coffeescript.js, jasmine, and all other dependencies are loaded, | |
* then assign a global "specs" variable which is an array of file names in | |
* your spec/ folder. | |
* | |
* window.specs = ['index']; | |
* | |
*/ | |
(function() { |
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
// optional, i like the light black better | |
$grid-background-column-color:rgba(black, 0.075); | |
@mixin debug-susy-grid($points){ | |
#grid{ position:absolute; top:0px; right:$grid-padding; left:$grid-padding; bottom:0px; display:none; | |
@include susy-grid-background; z-index:10000; | |
@for $i from 1 to length($points){ | |
@include at-breakpoint(nth($points, $i)){ | |
@include susy-grid-background; |
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
--- | |
:verbose: true | |
:bulk_threshold: 1000 | |
install: --no-ri --no-rdoc --env-shebang | |
:sources: | |
- http://gems.rubyforge.org/ | |
- http://gemcutter.org | |
:benchmark: false | |
:backtrace: false | |
update: --no-ri --no-rdoc --env-shebang |
NewerOlder