Skip to content

Instantly share code, notes, and snippets.

View ilhantekir's full-sized avatar
🏠
Working from home

ilhan Tekir ilhantekir

🏠
Working from home
  • Erka Grup
  • istanbul
View GitHub Profile
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"
@ilhantekir
ilhantekir / remove_checkout_fields.php
Created February 6, 2019 07:19 — forked from cryptexvinci/remove_checkout_fields.php
Remove fields from WooCommerce checkout page.
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']);
@ilhantekir
ilhantekir / get-first-category.php
Created February 3, 2019 10:17 — forked from hslaszlo/get-first-category.php
Get first category name or id from wordpress post
<?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
@ilhantekir
ilhantekir / README.md
Created December 31, 2018 08:48 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

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