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
import 'package:flutter/material.dart'; | |
import 'package:flutter_svg/flutter_svg.dart'; | |
import 'package:flutter_cache_manager/flutter_cache_manager.dart'; | |
import 'dart:io'; | |
class CachedNetworkSvg extends StatelessWidget { | |
final String url; | |
final String semanticsLabel; | |
const CachedNetworkSvg({ |
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
You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture. | |
Current date: 2024-02-08 | |
Image input capabilities: Enabled | |
# Tools | |
## python | |
When you send a message containing Python code to python, it will be executed in a |
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
const mongoose = require('mongoose') | |
const { toJSON, paginate, customTimeStamp } = require('./plugins'); | |
const reviewSchema = new mongoose.Schema({ | |
app_name: { | |
type: String, | |
}, | |
app_id: { | |
type: String, | |
required: true, |
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
CREATE TABLE users ( | |
id INT, | |
status VARCHAR, | |
email VARCHAR NOT NULL, | |
username VARCHAR NOT NULL, | |
created_at DATETIME NOT NULL, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE messages ( |
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
function processTimeString(time, isPostLunch){ | |
time = time.trim().replace(".",":") + ":00" | |
const timeParts = time.split(":") | |
if(parseInt(timeParts[0]) < 12 && isPostLunch) time = `${(parseInt(timeParts[0])+12)}:${timeParts[1]}:${timeParts[2]}` | |
if(time.split(":")[0].length == 1) time = "0" + time; | |
return time | |
} | |
function processTime(time, isStart = true, isPostLunch = false){ |
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
apiVersion: kots.io/v1beta1 | |
kind: License | |
metadata: | |
name: community | |
spec: | |
appSlug: gitpod | |
channelID: 259YYBILXTa30S1Soli9YcWcPTb | |
channelName: Stable | |
customerName: Community | |
endpoint: 'https://replicated.app' |
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
import { MongoClient } from "https://deno.land/x/[email protected]/mod.ts"; | |
const URI = "mongodb://127.0.0.1:27017"; | |
addEventListener("fetch", async (event) => { | |
const client = new MongoClient(); | |
try { | |
await client.connect(URI); | |
console.log("Database successfully connected"); | |
} catch (err) { |
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
version: "2.1" | |
services: | |
nextcloud: | |
image: nextcloud | |
container_name: nextcloud | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Asia/Kolkata |
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
[ | |
{ | |
"code": "+7 840", | |
"name": "Abkhazia" | |
}, | |
{ | |
"code": "+93", | |
"name": "Afghanistan" | |
}, | |
{ |
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 strict'; | |
const mysql = require('mysql'); // require mysql | |
// If 'client' variable doesn't exist | |
if (typeof client === 'undefined') { | |
// Connect to the MySQL database | |
var client = mysql.createConnection({ | |
// your connection info |
NewerOlder