This file contains hidden or 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 | |
function wsplitAlt($value, $limit) | |
{ | |
$limited = substr($value, 0, $limit); | |
$nextSpaceValue = substr($value, 0, strpos($value, ' ', strrpos($limited, ' ') + 1)); | |
if ($limited === $nextSpaceValue) { | |
return $limited; | |
} |
This file contains hidden or 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 | |
$order_id = 1; | |
$item = array('partnumber' => 1, 'name' => 1, 'quantity' => 1, 'id' => 1); | |
$quantity = array('1' => 1); | |
function generateUrl($a, $b, $c) { | |
return "jahskdjahskjdhasjkhdkjashdjkhashdjkash"; | |
} |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="hu"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="app.css"> | |
<title>CSS-ben :target?</title> | |
</head> | |
<body> | |
<nav> | |
<a href='#a1'>Hogyan?</a> |
This file contains hidden or 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
Verifying myself: My Bitcoin username is +yitsushi. https://onename.io/yitsushi |
This file contains hidden or 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
Verifying myself: My Bitcoin username is +androgeek. https://onename.io/androgeek |
This file contains hidden or 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
var TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec accumsan mattis nibh, sit amet ultricies enim congue a. Pellentesque congue libero sit amet velit pulvinar feugiat. Etiam sagittis erat vel est lacinia, ut bibendum quam mattis. Vestibulum lacinia ante sem, sit amet convallis lorem elementum sit amet. Phasellus a fringilla orci, eget placerat sem. Curabitur tempus sed nibh a iaculis. Fusce ut sapien eu massa euismod elementum. Etiam nisi magna, tempus non dictum eu, feugiat eu lacus. Vivamus tempor lacus eget nisl vulputate dignissim. Donec ut tincidunt ipsum, ac convallis neque." | |
var soundex = function (s) { | |
var a = s.toLowerCase().split('') | |
f = a.shift(), | |
r = '', | |
codes = { | |
a: '', e: '', i: '', o: '', u: '', | |
b: 1, f: 1, p: 1, v: 1, |
This file contains hidden or 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 | |
define('DEBUG', true); | |
function debug($message) { | |
if (DEBUG) { | |
echo " -D- ", $message, "\n"; | |
} | |
} |
This file contains hidden or 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
var Int6 = (function() { | |
// Base64 ABC contains only A-Z, a-z, 0-9, + and / | |
// (and the = sign but it's just a marker) | |
var ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
return { | |
toChar: function(e) { return ABC.substr(e, 1); }, | |
fromChar: function(e) { return ABC.indexOf(e); } | |
}; | |
}()); |
This file contains hidden or 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 | |
if (isset($_GET['generate'])) { | |
file_put_contents("generatedReports/" . $_GET['generate'] . ".csv.pending", (string)date(time())); | |
echo json_encode(array('path' => "generatedReports/" . $_GET['generate'] . ".csv", 'filename' => $_GET['generate'] . ".csv")); | |
die(); | |
} | |
if (isset($_GET['check'])) { | |
$files = array(); |
This file contains hidden or 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 | |
function generateInsertSQL($table, $fields) { | |
$sql = "insert into `" . $table . "` "; | |
$sql .= "(" . implode( | |
", ", | |
array_map( | |
function($f) { return "`" . $f . "`"; }, | |
array_keys($fields[0]) |