Skip to content

Instantly share code, notes, and snippets.

@rsstdd
rsstdd / psql.md
Created October 7, 2022 15:48
Linux PSQL

Installing PSQL on PopOs!:

sudo apt-get update
sudo apt-get install apt-utils
sudo apt-get install -y postgresql postgresql-contrib

psql --verison

sudo service postgresql # status for checking the status of your database.
301 results - 33 files
static/css/login_overlay.scss:
14 margin-left: -157px;
15: background-color: #ffffff;
16 padding: 20px 40px;
23 #login-box h1 {
24: color: #FF6300;
25 font: 26px 'UbuntuBold',Arial,Helvetica,serif;
@rsstdd
rsstdd / .editorconfig
Created September 1, 2021 22:23
2021 TS + Webpack + Eslint + Prettier
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
quote_type = single
max_line_length = 80
@rsstdd
rsstdd / mac-keycodes
Created November 18, 2020 15:09 — forked from eegrok/mac-keycodes
Mac virtual keycodes
from: http://www.meandmark.com/keycodes.html
Virtual Keycodes for the Mac QWERTY Layout
Keycodes are in hexadecimal. A blank entry means either there is no key assigned to that keycode or I was unable to find the assigned key.
Keycode Key
0x00 A
0x01 S
0x02 D
0x03 F
@rsstdd
rsstdd / new-mocks-pattern-rfc.md
Created August 21, 2020 14:40 — forked from MrJadaml/new-mocks-pattern-rfc.md
RFC to change the mocks module convention.

Summary

Mocks are designated by a .mocks.js extensions and would be co-located with their corresponding module.

Basic example

├── SomeComponent
  ├── __snapshots__/
 ├── SomeComponent.scss
@rsstdd
rsstdd / zindex.scss
Created July 30, 2020 18:37 — forked from toadkicker/zindex.scss
medium's z-index scale
// Copyright 2014 A Medium Corporation
//
// z-index.less
// Medium.com's z-index scale. Z-index values should always be defined in z-index.less. This
// allows us to at a glance determine relative layers of our application and prevents bugs
// arrising from arbitrary z-index values. Do not edit the z-index scale! Only add application
// scoped z-index values.
//This is the SASS version modified by @toadkicker.
@rsstdd
rsstdd / curl.md
Created August 15, 2019 16:35 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@rsstdd
rsstdd / font_variables.scss
Created May 29, 2018 18:45 — forked from jacrook/font_variables.scss
Sass Css Font Stack Variables
//////////////////////////////////////////////////////////////
// Font Variables (http://cssfontstack.com/)
//////////////////////////////////////////////////////////////
//
// Serif font-stacks
//
$baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default;
@rsstdd
rsstdd / getUserCity.js
Created February 14, 2018 22:19
Get City from Google Maps API Reverse Geocode
// File Name: getUserCity.js
// Description: Uses Geolocation to determine User City
// Used by:
// Dependencies:
// ------------------------------------------------------
import axios from 'axios';
function reverseGeocode(lat, lng) {
const API_KEY = 'YOUR API KEY'
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')