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
#include <stdio.h> | |
void kisayol(int, int); | |
int labirent[8][6] = { | |
{1, 0, 0, 0, 0, 0}, | |
{1, 1, 0, 0, 0, 0}, | |
{0, 1, 0, 0, 0, 0}, | |
{0, 1, 1, 0, 0, 0}, | |
{0, 0, 1, 1, 1, 0}, |
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
int fak(int a) | |
{ | |
int i = 1; | |
int count = 1; | |
for (i; i <= a; i++) | |
count = count * i; | |
return count; | |
} |
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
const mask = (res = "", regex) => { | |
if (res.replace(/\D+/gim, "").length == 0) return ""; | |
if (res.replace(/\D+/gim, "").length > regex.replace(/\D+/gim, "").length) | |
return res.slice(0, regex.replace(/\[|\]/gim, "").length); | |
let regexNumber = regex.match(/\d+/gim, ""), //sadece sayılar | |
totalLen = res.match(/\d+/gim, "").join("").length, //gelen değerin uzunluğu | |
number = res.match(/\d+/gim, "").join("") + new Array(regexNumber.join("").length - totalLen).fill("_").join(""), | |
len = 0, | |
rlen = 0; | |
let match = regex.replace(/\[\d+\]/gim, (m, k) => m.replace(/\[\d+\]/gim, "$" + rlen++)); |
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
export default (key = "key") => { | |
let ts = String(new Date().getTime()), | |
i = 0, | |
out = ""; | |
for (i = 0; i < ts.length; i += 2) { | |
out += Number(ts.substr(i, 2)).toString(36); | |
} | |
return key + out; | |
}; |
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
const camelize = camelize(str) => { | |
return str.replace(/\W+(.)/g, (match, chr) => | |
{ | |
return chr.toUpperCase(); | |
}); | |
}; | |
console.log(camelize("javaScript-Exercises")); | |
console.log(camelize("JavaScript exercises")); |
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 | |
$service_url = 'https://ronesis.com/API/api/v1/uye-bilgileri.php?uye_id=2087'; | |
$curl = curl_init($service_url); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
$curl_response = curl_exec($curl); | |
if ($curl_response === false) { | |
$info = curl_getinfo($curl); | |
curl_close($curl); | |
die('error occured during curl exec. Additioanl info: ' . var_export($info)); |
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
<form action="path/to/server/script" method="post" id="my_form"> | |
<label>Name</label> | |
<input type="text" name="name" /> | |
<label>Email</label> | |
<input type="email" name="email" /> | |
<label>Website</label> | |
<input type="url" name="website" /> | |
<button type="submit" class="submit_button">Submit Form <button/> | |
</form> |
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
class Basic {} // Basic Sınıfını oluşturalı... | |
const basicClass = new Basic();//Basic Sınıfını çağıralım... |
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
export default listenerFunc => { | |
Object.defineProperty(window.globalStore, "onChangeListener", { | |
value: listenerFunc | |
}); | |
}; |
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
class fetchApi { | |
// method = "GET"; | |
defaultConfig = { | |
method: "GET", // *GET, POST, PUT, DELETE, etc. | |
mode: "*same-origin", // no-cors, cors, *same-origin | |
cache: "no-cache", // *default, no-cache, reload, force-cache, only-if-cached | |
credentials: "*same-origin", // include, *same-origin, omit | |
headers: { | |
"Content-Type": "application/json", | |
Accept: "application/json" |
OlderNewer