This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# removes rounded corners | |
grep -v "radius" bootstrap.css > bootstrap-no-radius.css | |
# removes gradient | |
grep -v "gradient" bootstrap.css > bootstrap-no-gradient.css | |
# removes both gradient and rounded corners | |
grep -v "radius" bootstrap.css | grep -v "gradient" > bootstrap-no-radius-gradient.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GJSON='/tmp/gradients.json' | |
GPNG='/tmp/gradient.png' | |
# Avoid to download file if already exists | |
if [ ! -f $GJSON ]; then | |
echo 'Fetching gradients from GitHub ...' | |
curl -o $GJSON https://raw.githubusercontent.com/ghosh/uiGradients/master/gradients.json 2>/dev/null | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { datadogLogs as datadog } from '@datadog/browser-logs'; | |
if (environment.production) { | |
enableProdMode(); | |
datadog.init({ | |
clientToken: environment.datadog.clientToken, | |
site: environment.datadog.site, | |
service: environment.datadog.service, | |
forwardErrorsToLogs: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ensures that we have a valid token before any request. | |
* | |
* To use this, you need to edit the Collection | |
* 1) select "Bearer Token" and provide `{{accessToken}}` as the Token, under Authorisation tab. | |
* 2) copy this script into "Pre-request scripts" | |
* | |
* Last, you need to define the following variables under the Environment | |
* baseUrl : API URL ie https://example.com/ | |
* username: The username to connect with |