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
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} |
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/sh | |
# Take REACT_APP_* env vars and make them available at runtime | |
# Simplified version of https://www.freecodecamp.org/news/how-to-implement-runtime-environment-variables-with-create-react-app-docker-and-nginx-7f9d42a91d70/ | |
set -euo pipefail | |
# Recreate config file | |
rm -rf ./env-config.js | |
touch ./env-config.js |
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
*[_type == 'parentType'] { | |
..., | |
arrayFieldName[] { | |
_type == 'type1' => { | |
..., | |
'linkedResource': resource.asset-> | |
}, | |
_type == 'type2' => { // could also use rest `...` before special case | |
... | |
} |
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
# remove old local branches last updated > 2 months ago | |
for k in $(git branch | sed /\*/d); do | |
if [ -n "$(git log -1 --before='2 months ago' -s $k)" ]; then | |
git branch -D $k | |
fi | |
done | |
# list branches merged to master | |
git branch --merged master | grep -v "\* master" |
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
LogicBlox | |
filter call_regexp_common C++ | |
filter remove_inline //.*$ | |
extension logic | |
3rd_gen_scale 1.25 |
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
Ext.util.Observable.capture(component, function() { | |
console.log(arguments) | |
}); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Test test test test. |