Skip to content

Instantly share code, notes, and snippets.

@JamieBradders
JamieBradders / starship.toml
Created September 5, 2021 16:41
Starship Config
# Don't print a new line at the start of the prompt
add_newline = true
# Make prompt a single line instead of two lines
[line_break]
disabled = false
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" is set to "➜" with color "bold green"

Keybase proof

I hereby claim:

  • I am jamie-endeavour on github.
  • I am bradders (https://keybase.io/bradders) on keybase.
  • I have a public key ASDBFtn0fmx7sT1qzbPQE9aWtTEEdMcsqJoxqcM3vGeIKAo

To claim this, I am signing this object:

@JamieBradders
JamieBradders / helpers.js
Last active May 25, 2019 11:41
A collection of media query helper functions that can be used with Styled Components
/**
* Configure the breakpoint object as you please.
* Edit the values or even add extra keys e.g. `xl`
*/
const breakpoints = {
sm: 768,
md: 1024,
lg: 1200,
}
/**
* Default configuration to lint
* the airbnb css style-guide.
* This file is taken from a pull request to Airbnb/css repo
* which intends to create a default preset that can be used
* in the future. Until it is merged, we will have the config here.
* https://github.com/airbnb/css/pull/23
* Add more rules: http://stylelint.io/user-guide/rules/
* Also, to understand better who the rules are named:
* http://stylelint.io/user-guide/about-rules/
@JamieBradders
JamieBradders / stateful-vs-stateless.html
Last active May 10, 2017 09:18
Interacting Stateful Components with Stateless Components
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@latest/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
@JamieBradders
JamieBradders / StickSidebar.js
Last active May 10, 2017 09:30
Sticky Sidebar
/* Use .sidebar-sticky class to turn sidebar element into a sticky sidebar.
* Following code keeps the sidebar within view and uses animate() to create
* a smooth transition
*/
const $sidebar = $(".sidebar-sticky")
const $window = $(window)
const offset = $sidebar.offset()
const topPadding = 110