A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
const a = { | |
...(someCondition && {b: 5}) | |
} |
|\ git merge || pull request | |
|| | |
|| | |
|* | |
|* | |
|* | |
|/ git rebase develop | |
*| | |
*| authWorks | |
*| |
<TouchableOpacity | |
onPress={() => { | |
return this.setState({ | |
imagesLoading: true | |
},()=>{this.onClickOpenImagesModal(item); | |
}); | |
}} | |
> | |
<Image style={Styles.roomImg} uri={item.roomImage} /> | |
</TouchableOpacity> |
/node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js | |
line 42, to: if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('tvOS')) { | |
curl -H "Accept-Encoding: gzip" -I https://blababalabla.com/js/homePage.js |
# remove specific file from git cache | |
git rm --cached filename | |
# remove all files from git cache | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_fields' ); | |
function custom_remove_woo_checkout_fields( $fields ) { | |
// remove billing fields | |
unset($fields['billing']['billing_first_name']); | |
unset($fields['billing']['billing_last_name']); | |
unset($fields['billing']['billing_company']); | |
unset($fields['billing']['billing_address_1']); | |
unset($fields['billing']['billing_address_2']); |
<?php | |
// in the loop | |
$category = get_the_category(); | |
$currentcat = $category[0]->cat_ID; | |
$currentcatname = $category[0]->cat_name; | |
$currentcatslug = $category[0]->slug; | |
// outside the loop | |
global $post; | |
$categories = get_the_category($post->ID); |
git rm -r --cached . | |
git add . | |
git commit -am 'git cache cleared' | |
git push |