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
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World!"); | |
private static final String JAPANESE = "事報ハヤ久送とゅ歳用ト候新放すルドう二5春園ユヲロ然納レ部悲と被状クヘ芸一ーあぽだ野健い産隊ず"; | |
private static final String CRYLLIC = "Лорем ипсум долор сит амет, легере елояуентиам хис ид. Елигенди нолуиссе вих ут. Нихил"; | |
private static final String ARABIC = "تجهيز والمانيا تم قام. وحتّى المتاخمة ما وقد. أسر أمدها تكبّد عل. فقد بسبب ترتيب استدعى أم, مما مع غرّة، لأداء. الشتاء، عسكرياً"; | |
System.out.println(ARABIC); |
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 | |
//application/libraries/Session/MY_Session.php | |
function redisNoticeFunction($errno, $errstr, $errfile, $errline, array $errcontext) | |
{ | |
// is the error E_NOTICE? | |
if ($errno === E_NOTICE) | |
{ | |
// if error was suppressed with the @-operator | |
if (0 === error_reporting()) |
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
+---------------------------------------------------------------------+---------------------+ | |
| name | rel | | |
+---------------------------------------------------------------------+---------------------+ | |
| iPhone 5C Used Verizon 8GB 58165 White | 5.121899604797363 | | |
| iPhone 5C Used Verizon 8GB 45693 White | 5.121899604797363 | | |
| iPhone 7 Used Verizon 32GB 855415 Gold | 5.121899604797363 | | |
| iPhone X 80941 TESTER | 5.121899604797363 | | |
| iPhone 6 Used Verizon 128GB 85047 Black | 5.121899604797363 | | |
| iPhone 6 Used Unlocked 64GB 894146 Gold | 5.121899604797363 | | |
| iPhone 6 Plus Used Verizon 16GB 86578 Black | 5.121899604797363 | |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApIAAAX+CAYAAADbGcrJAAAAAXNSR0IArs4c6QAAQABJREFUeAHsvdmXZNl13nczY8g5a67q6rkbBAhAlAkOov3kJb1ba1nLlr38b/rJbxLlJZmibA4ASYAgAfRQPVZVVuWcGVP6++19dtwbkZFZmdXV3RHd+2Tfe+Z99vlOAPerfaalM7kqXSKQCCQCiUAikAgkAolAInBNBJavWT6LJwKJQCKQCCQCiUAikAgkAoZAEsn8ISQCiUAikAgkAolAIpAIvBQCSSRfCraslAgkAolAIpAIJAKJQCKQRDJ/A4lAIpAIJAKJQCKQCCQCL4VAEsmXgi0rJQKJQCKQCCQCiUAikAgkkczfQCKQCCQCiUAikAgkAonASyGQRPKlYMtKiUAikAgkAolAIpAIJAJJJPM3kAgkAolAIpAIJAKJQCLwUggkkXwp2LJSIpAIJAKJQCKQCCQCiUA7IUgEEoHFQCAuoQr/VWq9tLT0KsXNlPUivV+UP0vodfS+TtlZbV0l7WX6cBW5lJkYoZccryYGF+l6UfpFel61fLPti2RR5irlLqqf6YlAIvDNI5BE8pvHPFtMBK6NAB/r+GAPh8NqNBqZjEi7TOBFH+ZIDx8ZzXBTZjO9GW6WCV3CJ68Zbsab6RG+yG+2EW3jR3nCkU7ZWeFm2lXLRLvRDvFmWLEoovRxcFxmsuz5/DplMtTUtRmm1Cwy2SzTDFv5QjgjHZ0I48dDuebvKfJJb/ZhOky8KbeZT91wUSbkTseXl5crHlyEo0zISD8RSATmF4EkkvM7NqlZImAIxAcanw/+8fFxdXJyYh/50agmmKPRcIxYfJjjgxx+M70Zjnz8SMeP9OVlpzDEl5bqdHQK/dAt4kFM8JvhZn7UgxjjiDfDIS98yqBT6OW6uF6tVtt0lXbVcou30vVfa7ll/nS/mn0MecvqF46y6pWFQ9/QNfri6U7mGYNIh1zWZT18kQwaiLKEW6 |
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
mysql> show variables; | |
+--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Variable_name | Value |
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
mysql> select * from phppos_sales_items procedure analyse(); | |
+----------------------------------------------------------------+-------------------------+----------------------------+------------+------------+------------------+--------+-------------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
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 | |
//This function will take a given $file and execute it directly in php. | |
//This code is for use within a codeigntier framework application | |
//It tries three methods so it should almost allways work. | |
//method 1: Directly via cli using mysql CLI interface. (Best choice) | |
//method 2: use mysqli_multi_query | |
//method 3: use PDO exec | |
//It tries them in that order and checks to make sure they WILL work based on various requirements of those options |
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
[phppoint@php-pos-web ~]$ ./mysqltuner.pl | |
>> MySQLTuner 1.3.0 - Major Hayden <[email protected]> | |
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/ | |
>> Run with '--help' for additional options and output filtering | |
[OK] Currently running supported MySQL version 5.6.17-log | |
[OK] Operating on 64-bit architecture | |
-------- Storage Engine Statistics ------------------------------------------- | |
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM |
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
SET SESSION sql_mode="NO_AUTO_CREATE_USER"; | |
CREATE TABLE `phppos_register_currency_denominations` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`value` decimal(23,10) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | |
-- |
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
mysql> show variables; | |
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Variable_name | Value | | |
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------- |