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 --platform=linux/amd64 node:20.6.1-alpine3.18 AS base | |
RUN apk update | |
RUN apk add --no-cache dumb-init bash wget curl nginx | |
RUN mkdir -p /workspace | |
WORKDIR /workspace | |
FROM base AS dependencies |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug Goflux Product Order", | |
"runtimeExecutable": "npm", | |
"envFile": "${workspaceFolder}/.env.development.local", | |
"runtimeArgs": [ |
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
def palindrome?(word) | |
initial_word = word.downcase.gsub(/[^a-z0-9]/, '') | |
reversed_word = initial_word.reverse | |
initial_word == reversed_word | |
end | |
puts 'Typing a word:' | |
input = gets.chomp | |
if palindrome?(input) |
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:hover { | |
-webkit-box-shadow: rgba(39,44,49,.07) 8px 28px 50px, rgba(39,44,49,.04) 1px 6px 12px; | |
box-shadow: 8px 28px 50px rgba(39,44,49,.07), 1px 6px 12px rgba(39,44,49,.04); | |
-webkit-transition: all .4s ease; | |
transition: all .4s ease; | |
-webkit-transform: translate3D(0,-1px,0) scale(1.02); | |
transform: translate3D(0,-1px,0) scale(1.02); | |
} |
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
<select class="form-control" name="state" ng-model="vm.state"> | |
<option ng-value="null" disabled>—Select a state—</option> | |
<option ng-value="'AC'">Acre</option> | |
<option ng-value="'AC'">Acre</option> | |
<option ng-value="'AL'">Alagoas</option> | |
<option ng-value="'AP'">Amapá</option> | |
<option ng-value="'AM'">Amazonas</option> | |
<option ng-value="'BA'">Bahia</option> | |
<option ng-value="'CE'">Ceará</option> | |
<option ng-value="'DF'">Distrito Federal</option> |
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
def read_file | |
## ActionDispatch::Http::UploadedFile | |
uploaded_file = params[:file] | |
File.open(uploaded_file.path, "r") do |f| | |
words = [] | |
f.each_line do |line| | |
words << line.split | |
end | |
words | |
end |