Skip to content

Instantly share code, notes, and snippets.

Luca Barone cloud-walker

Block or report user

Report or block cloud-walker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cloud-walker
cloud-walker / useScript.js
Created Jul 30, 2019
useStripe React hook
View useScript.js
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,
})
View react-ecosystem.md
View aliases.md

Base configuration

Global for me: add them on ~/.gitconfig

[alias]
  s = status -s
  unstage = reset HEAD --
  last = log -l HEAD
  lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
  branch-name = rev-parse --abbrev-ref HEAD
@cloud-walker
cloud-walker / base
Created Jun 10, 2016
Ligatures examples
View base
.= .- := =:=
== != === !== =/=
<<- <-- <- <-> -> --> ->>
<=< <<= <== <=> => ==> =>> >=>
>>= >>- >- -< -<< =<<
<~~ <~ ~~~ ~~ ~> ~~>
<<< << <= <> >= >> >>>
<| <|> |>
View css-patterns.md
  • container
  • text ellipsis
  • clearfix
  • label
  • breadcrumb
  • tag
  • link
  • button
  • sequence
@cloud-walker
cloud-walker / base
Last active May 6, 2016
editorconfig templates
View base
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
View claimFighissimo.phtml
<p class="isArrivedAndIsBeautifull" style="font-size: 2em;color: #333;text-align: center;">&Egrave; arrivata... ed &egrave; bellissima!</p>
You can’t perform that action at this time.