Skip to content

Instantly share code, notes, and snippets.

<el-tabs v-model="activeTabName">
<template v-for="locale in locales">
<el-tab-pane class="" :label="locale" :name="locale">
<el-row>
<div class="form-group dashed">
<label class="col-md-1 control-label"><span
class="text-danger">*</span>{{ lang.title }} <span class="grey">{{
locale
Htm:
<mat-tab-group [(selectedIndex)]="selectedIndex">
<mat-tab *ngFor="let locale of locales" [label]="locale">
<div class="form-group dashed">
<label class="col-md-1 control-label">
<span class="text-danger">*</span>{{ lang.title }}
<span class="grey">{{ locale }}</span>:
</label>
<div class="col-md-10 uppercase-medium">
<input class="form-control" maxlength="150"
class PointLocation {
var $pointOnVertex = true; // Check if the point sits exactly on one of the vertices?
function pointLocation() {
}
function pointInPolygon($point, $polygon, $pointOnVertex = true) {
$this->pointOnVertex = $pointOnVertex;
// Transform string coordinates into arrays with x and y values
import React, { useEffect, useState } from 'react';
export const Products = () => {
return <>
<div>
Products
</div>
<table>
<tbody>
server {
root /var/www/html/special-projects;
index index.html index.htm index.nginx-debian.html;
server_name special-projects.chaikhana.media;
error_page 404 403 500 503 /index.html;
location = /index.html {
root /var/www/html/special-projects/not-found;
<?php
function getDistance($latitude1, $longitude1, $latitude2, $longitude2) {
$earth_radius = 6371;
$dLat = deg2rad($latitude2 - $latitude1);
$dLon = deg2rad($longitude2 - $longitude1);
$a = sin($dLat/2) * sin($dLat/2) + cos(deg2rad($latitude1)) * cos(deg2rad($latitude2)) * sin($dLon/2) * sin($dLon/2);
$c = 2 * asin(sqrt($a));
const express = require("express");
const { OGM,Model } = require("@neo4j/graphql-ogm");
const neo4j = require("neo4j-driver");
const bodyParser = require("body-parser");
const {
NEO4J_URI = "neo4j://localhost:7687",
NEO4J_USER = "neo4j",
NEO4J_PASSWORD = "passwordneo",
} = process.env;
  1. composer install
  2. cp .env .env.example - แƒแƒ›แƒ˜แƒก แƒจแƒ”แƒ›แƒ“แƒ”แƒ’ แƒจแƒ”แƒแƒ•แƒกแƒ”แƒ— .env แƒ‘แƒแƒ–แƒ˜แƒก แƒ™แƒแƒœแƒคแƒ˜แƒ’แƒฃแƒ แƒแƒชแƒ˜แƒ˜แƒก แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ”แƒ‘แƒ˜แƒ—.
  3. php artisan key:generate
  4. php artisan migrate
  5. php artisan db:seed
  1. แƒจแƒ”แƒแƒ•แƒกแƒ” แƒ›แƒแƒกแƒ˜แƒ•แƒจแƒ˜ แƒ›แƒ—แƒ”แƒšแƒ˜ แƒ แƒ˜แƒชแƒฎแƒ•แƒ”แƒ‘แƒ˜(1,2,3...) 1 แƒ“แƒแƒœ 100-แƒ›แƒ“แƒ”.
  2. แƒจแƒ”แƒแƒ•แƒกแƒ” แƒ›แƒแƒกแƒ˜แƒ•แƒจแƒ˜ แƒ™แƒ”แƒœแƒขแƒ˜ แƒ›แƒ—แƒ”แƒšแƒ˜ แƒ แƒ˜แƒชแƒฎแƒ•แƒ”แƒ‘แƒ˜ 1 แƒ“แƒแƒœ 50 แƒ›แƒ“แƒ”
  3. แƒจแƒ”แƒแƒ•แƒกแƒ” แƒ›แƒแƒกแƒ˜แƒ•แƒจแƒ˜ 4-แƒ˜แƒก แƒฏแƒ”แƒ แƒแƒ“แƒ˜ แƒ›แƒ—แƒ”แƒšแƒ˜ แƒ แƒ˜แƒชแƒฎแƒ•แƒ”แƒ‘แƒ˜, 1 แƒ“แƒแƒœ 200 แƒ›แƒ“แƒ”
{
"pollName": "แƒ’แƒแƒ›แƒแƒ™แƒ˜แƒ—แƒฎแƒ•แƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜",
"endDate": "2020-01-01 19:00:00",
"startDate": "2020-01-01 19:00:00",
"questions": [
{
"questionText": "1",
"answers": [
{
"text": "1.1",