- Try to keep files small and focused.
- Break large components up into sub-components.
- Use spaces for indentation.
class_name Request | |
extends Node | |
var http_request: HTTPRequest | |
var request_completed: bool = false | |
var response_data: Dictionary = {} | |
var response_error: int = OK | |
func _init(): |
import React, { ReactElement, Children, FC, ReactNode, isValidElement } from 'react'; | |
interface WhenProps { | |
isTrue: boolean; | |
children: ReactNode; | |
} | |
interface ElseProps { | |
render?: ReactNode; | |
children?: ReactNode; |
Write-Output 'Installing awesome tools for terminal...'`n | |
winget install Microsoft.WindowsTerminal --source winget --accept-package-agreements | |
winget install Microsoft.PowerShell --source winget --accept-package-agreements | |
winget install JanDeDobbeleer.OhMyPosh --accept-package-agreements | |
Install-Module -Name Terminal-Icons -Repository PSGallery | |
Install-Module -Name PSReadLine -RequiredVersion 2.2.0-beta1 -AllowPrerelease | |
Write-Output `n'Injecting terminal styles...' | |
$url = "https://gist.githubusercontent.com/Bujupah/c29abb0048e0fb5b2fca21d0f2aa94ad/raw" |
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
Import-Module -Name Terminal-Icons |
class MySingleton { | |
String var1; | |
int var2; | |
static MySingleton _instance; | |
factory MySingleton({String var1, int var2}) { | |
_instance == null | |
? print('New instance!') | |
: print('Old instance!'); |
Installation of PostGIS and PostgreSQL is much simpler then you think. PostgreSQL is available in all Ubuntu versions by default. However, Ubuntu “snapshots” a specific version of PostgreSQL that is then supported throughout the lifetime of that Ubuntu version. Other versions of PostgreSQL are available through the PostgreSQL apt repository. The PostgreSQL apt repository supports LTS versions of Ubuntu (14.04 and 16.04) on amd64, i386 and ppc64el architectures as well as select non-LTS versions(17.04). While not fully supported, the packages often work on other non-LTS versions as well, by using the closest LTS version available. The following describes how to install Postgresql 9.6, PostGIS 2.3, pgRouting 2.3, PGAdmin on Ubuntu version 16.04. It is assumed to also work on Linux Mint, Lubuntu, and Xubuntu. Run these in terminal:
sudo lsb_release -a
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-9.6 | |
sudo apt-get install postgresql-9.6-postgis-2.3 | |
sudo apt-get install postgresql-9.6-pgrouting | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update |
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script> | |
<div> | |
// Some html logic | |
</div> | |
<script> | |
// Run query on text panel | |
function confirmQuery(query){ | |
var data = { | |
"queries": [{ | |
"refId": "A-random-refId", |
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:mime/mime.dart'; | |
import 'package:sv_rent_car/src/services/data_contract_service.dart'; | |
import 'package:sv_rent_car/sv_rent_car.dart'; | |
class MultiPartFormDataParser{ | |
static Future<Object> multiPartData({Request request, Object object, String folder, Function onTextData, Function onFileData}) async { | |
final transformer = MimeMultipartTransformer(request.raw.headers.contentType.parameters["boundary"]); |