- add new code to functions.php
- use
billing_state_readable
instead ofbilling_state
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 | |
function convertDir($path){ | |
// echo "Search In $path\n"; | |
$items = scandir($path); | |
foreach($items as $item){ | |
if($item === '.' || $item === '..'){ | |
continue; | |
} |
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 "Extension.h" | |
#include <functional> | |
#include <thread> | |
#include <mutex> | |
#include <unordered_set> | |
#include <QMainWindow> | |
#include <QLayout> | |
#include <QPushButton> |
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
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
keepalive_timeout 620s; | |
location / { | |
try_files $uri /index.html; |
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
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
keepalive_timeout 620s; | |
location / { | |
try_files $uri /index.html; |
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 | |
ini_set('memory_limit', '256M'); | |
// create file | |
@mkdir('tmp_file'); | |
for($i=0;$i<300;$i++){ | |
file_put_contents("tmp_file/{$i}.txt", $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
<?php | |
$max = 10000; | |
//Source : https://en.wikipedia.org/wiki/Association_of_Southeast_Asian_Nations#ASEAN_six_majors | |
$datas = ['Indonesia','Thailand','Malaysia','Philippines','Singapore','Vietnam']; | |
//Source : https://gist.github.com/DHS/1340150 | |
//$datas = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivo |
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 | |
//Just a dummy | |
$customer = CustomerRepo::first(); | |
$products = ProductRepo::limit(3)->get(); //return array of products | |
$order = new Order(); | |
$order->setCustomer($customer); | |
$order->setProducts($products); | |
$dm->persist($order); |
NewerOlder