Skip to content

Instantly share code, notes, and snippets.

@dreambo4
dreambo4 / login.php
Last active March 21, 2021 14:52
給 APP 練習用 - POST
<?php
header('Content-Type: application/json; charset=utf-8');
$account = $_POST['account'];
$password = $_POST['password'];
$name = $_POST['name'];
$name = (!isset($name) || empty($name)) ? "" : $name;
$json = array();
@dreambo4
dreambo4 / getRestaurant.php
Created March 21, 2021 15:00
給 APP 練習用 - GET
<?php
header('Content-Type: application/json; charset=utf-8');
$id = $_GET['id'];
$data = array(
"0" => array(
"name" => "八方雲集",
"address" => "台中市沙鹿區英才路17號"
),
@dreambo4
dreambo4 / zenbo_device.xml
Created August 5, 2021 10:13
Zenbo 模擬器硬體規格
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<d:devices xmlns:d="http://schemas.android.com/sdk/devices/5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d:device>
<d:name>Zenbo</d:name>
<d:manufacturer>User</d:manufacturer>
<d:meta/>
<d:hardware>
<d:screen>
<d:screen-size>xlarge</d:screen-size>
<d:diagonal-length>10.10</d:diagonal-length>
@dreambo4
dreambo4 / pingTool.sh
Last active April 24, 2024 01:04
Thanks chatGPT!
#!/bin/bash
# Replace with the IP address you want to ping
IPArray=(
"192.168.0.1"
"192.168.0.2"
"192.168.0.3"
"192.168.0.4"
"192.168.0.5"
)