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
function wt_get_category_ID() { | |
$category = get_the_category(); | |
return $category[0]->cat_ID; | |
} |
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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
array = get_term_by('id', $select1, $taxonomy, 'ARRAY_A'); | |
echo $array['name']; |
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
//touchstart | |
//touchmove | |
//touchend | |
//touchcancel | |
//Example | |
document.addEventListener('touchmove', function(e) { | |
e.preventDefault(); | |
var touch = e.touches[0]; | |
alert(touch.pageX + " - " + touch.pageY); |
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
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCUALYmnkEmx8vlxIbpr2gmw&order=date&key=AIzaSyDcUHa4cb99izxHnJFe0e5SaYOlQISNYm4&callback=foobar |
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
$title = array('data', 'data', 'data'); | |
$columns = implode(", ",array_keys($title)); | |
$escaped_values = array_values($title); | |
$values = implode(", ", $escaped_values); | |
echo $values; |
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
/* | |
* If else | |
*/ | |
<xsl:choose> | |
<xsl:when test="$language"> | |
</xsl:when> | |
<xsl:otherwise> | |
</xsl:otherwise> |
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
// Page All Components | |
const components = (function(){ | |
// Menu | |
let menu = function(){ | |
} | |
// Search | |
let search = function(){ |
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
String.prototype.turkishToLower = function(){ | |
var string = this; | |
var letters = { "İ": "i", "I": "ı", "Ş": "ş", "Ğ": "ğ", "Ü": "ü", "Ö": "ö", "Ç": "ç" }; | |
string = string.replace(/(([İIŞĞÜÇÖ]))/g, function(letter){ return letters[letter]; }) | |
return string.toLowerCase(); | |
} | |
String.prototype.turkishToUpper = function(){ | |
var string = this; | |
var letters = { "i": "İ", "ş": "Ş", "ğ": "Ğ", "ü": "Ü", "ö": "Ö", "ç": "Ç", "ı": "I" }; |
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
curl 'https://api.korvo.co/v1/payments/156' \ | |
-H 'authority: api.korvo.co' \ | |
-H 'pragma: no-cache' \ | |
-H 'cache-control: no-cache' \ | |
-H 'sec-ch-ua: "Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"' \ | |
-H 'accept: application/json' \ | |
-H 'authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJoZWxsb0Brb3J2by5jbyIsInVzZXJUeXBlIjoiQlVTSU5FU1MiLCJleHAiOjE2NjEyODczNDcsInVzZXJJZCI6MTU2LCJpYXQiOjE2Mjk3NTEzNDd9.Jx1SpHSHrdO9WNdV3N_DmfO4H0cN_2CXlN7nRFcQ_68azKySDBWOZHilEckfYijm3mfiB80RN9rVymCbg3Uaxw' \ | |
-H 'sec-ch-ua-mobile: ?0' \ | |
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36' \ | |
-H 'origin: http://dashboard.korvo.co' \ |
OlderNewer