Skip to content

Instantly share code, notes, and snippets.

View agustinl's full-sized avatar

Agustín agustinl

View GitHub Profile
npx browser-sync start --server --files "./*.html" --no-open --no-notify --directory
@agustinl
agustinl / css-selector-background.css
Created October 2, 2019 22:18
CSS Selector Background
a[href$=".pdf"] {
background: url('https://i.imgur.com/n8EHrrI.png')
0 50% no-repeat;
padding-left: 20px;
}
Control+F
Toggle "Replace mode"
Toggle "Use Regular Expression" (the icon with the .* symbol)
In the search field, type ^(.*)(\n\1)+$
In the "replace with" field, type $1
<FileViewer
fileType='docx'
filePath={data.file}
errorComponent={CustomErrorComponent}
onError={this.onError}/>
{data.fileType == '.docx' &&