Skip to content

Instantly share code, notes, and snippets.

View soorajbhskrn's full-sized avatar
🏠
Working from home

Sooraj Bhaskaran soorajbhskrn

🏠
Working from home
View GitHub Profile
@soorajbhskrn
soorajbhskrn / FeatureWithRightImage.jsx
Last active April 28, 2023 19:01
Feature with right image after introducing styled-components
View FeatureWithRightImage.jsx
import React from "react";
import classnames from "classnames";
import { mergeLeft } from "ramda";
import { Button, Typography } from "Commons";
import { getUniqueKey } from "Commons/utils";
import { StyledImage, StyledWrapper } from "utils";
import { POSITIONS } from "./constants";
@soorajbhskrn
soorajbhskrn / FeatureWithRightImage.jsx
Last active April 28, 2023 19:02
FeatureWithRightImage before introducing styled-components
View FeatureWithRightImage.jsx
import React, { useEffect } from "react";
import classnames from "classnames";
import { Button, Typography } from "Commons";
import { POSITIONS } from "./constants";
const FeatureWithRightImage = ({
configurations,
View gist:fe5a8ef1cee69fafaeb2ba2e9c9d91c2
##Error stack
/Users/admin/Documents/Training/scribble-by-sooraj-bhaskaran/config/storage.yml:11:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/3.0.0/erb.rb:905:in `eval'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/3.0.0/erb.rb:905:in `result'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7/lib/active_support/configuration_file.rb:48:in `render'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7/lib/active_support/configuration_file.rb:22:in `parse'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7/lib/active_support/configuration_file.rb:18:in `parse'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-6.1.7/lib/active_storage/engine.rb:139:in `block (2 levels) in <class:Engine>'
from /Users/admin/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7/lib/active_support/lazy_load_hooks
View gist:7c30e7295c4ebaa760edb9d377068aa7
********************************************************************************
WARNING: POSTGRES_HOST_AUTH_METHOD has been set to "trust". This will allow
anyone with access to the Postgres port to access your database without
a password, even if POSTGRES_PASSWORD is set. See PostgreSQL
documentation about "trust":
https://www.postgresql.org/docs/current/auth-trust.html
In Docker's default configuration, this is effectively any other
container on the same system.
It is not recommended to use POSTGRES_HOST_AUTH_METHOD=trust. Replace