Skip to content

Instantly share code, notes, and snippets.

View cloud-walker's full-sized avatar
🎯
Focusing

Luca Barone cloud-walker

🎯
Focusing
View GitHub Profile
<p class="isArrivedAndIsBeautifull" style="font-size: 2em;color: #333;text-align: center;">&Egrave; arrivata... ed &egrave; bellissima!</p>
@cloud-walker
cloud-walker / base
Last active May 6, 2016 06:59
editorconfig templates
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
@cloud-walker
cloud-walker / general.md
Last active May 25, 2016 22:19
Frontend references
@cloud-walker
cloud-walker / css-patterns.md
Created June 8, 2016 16:52
CSS common patterns
  • container
  • text ellipsis
  • clearfix
  • label
  • breadcrumb
  • tag
  • link
  • button
  • sequence
@cloud-walker
cloud-walker / base
Created June 10, 2016 14:05
Ligatures examples
.= .- := =:=
== != === !== =/=
<<- <-- <- <-> -> --> ->>
<=< <<= <== <=> => ==> =>> >=>
>>= >>- >- -< -<< =<<
<~~ <~ ~~~ ~~ ~> ~~>
<<< << <= <> >= >> >>>
<| <|> |>
@cloud-walker
cloud-walker / config.md
Last active February 17, 2023 13:49
Awesome GIT

Base configuration

Global for me: add them on ~/.gitconfig

[[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true
[init]
@cloud-walker
cloud-walker / useScript.js
Created July 30, 2019 10:23
useStripe React hook
import React from 'react'
let cache = []
const isCached = src => cache.includes(src)
export const useScript = src => {
const [state, setState] = React.useState({
isLoaded: isCached(src),
hasError: false,
})
@cloud-walker
cloud-walker / common.ts
Last active February 28, 2021 06:47
TypeScript utils
export type Nully = null | undefined
export type Falsy = false | 0 | '' | Nully