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 | |
$servername = "localhost"; | |
$username = "root"; | |
$password = "12345678"; | |
$dbname = "test1"; | |
$user = $_GET['Us']; | |
$pass = $_GET['Ps']; | |
$email = $_GET['Em']; | |
$conn = new mysqli($servername, $username, $password,$dbname); | |
$sql = "SELECT * FROM register WHERE Username = '".$user."' OR Email = ".$email.";"; |
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 | |
require dirname(__DIR__).'\config\DB.php'; | |
require dirname(__DIR__).'\util\array.php'; | |
class buildquery extends DB_config | |
{ | |
private $pdo; | |
private $array_tool; | |
private $param; | |
public function __construct() |
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
from skyfield.api import load | |
from jdutil import * | |
planets = load('de432s.bsp') | |
earth, jupiter = planets['EARTH'], planets['JUPITER BARYCENTER'] | |
ts = load.timescale() | |
t = ts.now() | |
timenow = jd_to_datetime(float(t.tt)) | |
astrometric = earth.at(t).observe(jupiter) | |
ra, dec, distance = astrometric.radec() |
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
//Product | |
export const Data = [ | |
{name: 'name1'}, | |
{name: 'name2'}, | |
{name: 'name3'}, | |
{name: 'name4'} | |
]; | |
//template | |
<div *ngFor="let data of Data;let i = index;"> |
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
// เรียกใช้ตอนคลิก | |
buy() { | |
let UserId = 'test'; | |
let Queue = this.list.buy(UserId, this.UserProduct); | |
Queue.subscribe(data=> { | |
this.Queue = data; | |
}); | |
console.log(this.Queue) | |
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
/*use this function*/ | |
buy() { | |
let UserId = 'test'; | |
this.Queue = this.list.buy(this.UserProduct); | |
this.Queue.subscribe(data=> { | |
console.log(data.length); | |
if (data.length == 0 ){ | |
this.list.FirstOrder(UserId,this.UserProduct); | |
}else if(data.length >= 1){ | |
console.log(data.length) |
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
<div class="col-md-7 w3-animate-zoom"> | |
<br><br><br> | |
<div id="myCarousel" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<li data-target="#myCarousel" data-slide-to="0" class="active"></li> | |
<li data-target="#myCarousel" data-slide-to="1"></li> | |
<li data-target="#myCarousel" data-slide-to="2"></li> | |
</ol> |
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> | |
int main(){ | |
int num1 , num2; | |
float sum , avg; | |
printf("Number 1: "); | |
scanf("%d" , &num1); | |
printf("Number 1: "); | |
scanf("%d" , &num2); |
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> | |
#include <math.h> | |
int main(){ | |
double number; | |
double result; | |
printf("choose number: "); | |
scanf("%lf " , &number); | |
result = sqrt(number); |
OlderNewer