Skip to content

Instantly share code, notes, and snippets.

View mdalaminbey's full-sized avatar

MD AL AMIN mdalaminbey

View GitHub Profile
@mdalaminbey
mdalaminbey / timezone_list.csv
Created February 20, 2024 06:52 — forked from arodu/timezone_list.csv
timezone_list.csv
TimeZone UTC offset name
Pacific/Midway UTC-11:00 Midway Island, American Samoa
Pacific/Honolulu UTC-10:00 Hawaii
America/Anchorage UTC-08:00 Alaska
America/Tijuana UTC-07:00 Baja California
America/Los_Angeles UTC-07:00 Pacific Time US and Canada)
America/Phoenix UTC-07:00 Arizona
America/Chihuahua UTC-06:00 Chihuahua, La Paz, Mazatlan
America/Denver UTC-06:00 Mountain Time US and Canada)
America/Belize UTC-06:00 Central America
@mdalaminbey
mdalaminbey / terminal-colors-branch.sh
Created February 12, 2024 05:53 — forked from danielalvarenga/terminal-colors-branch.sh
Show branch in terminal Ubuntu
# Add in ~/.bashrc or ~/.bash_profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
NO_COLOR="\[\033[00m\]"
const path = require( 'path' );
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const DependencyExtractionWebpackPlugin = require( '@wordpress/dependency-extraction-webpack-plugin' );
const HELPGENT_NAMESPACE = '@helpgent/';
/**
* Given a string, returns a new string with dash separators converted to
* camelCase equivalent. This is not as aggressive as `_.camelCase` in
* converting to uppercase, where Lodash will also capitalize letters
* following numbers.
// Getter
module.exports = (property) => {
// Determine the return type based on the property type
const returnType = property.isNullable() ? `?${property.getType()}` : property.getType();
return `
/**
* ${property.getterDescription()}
*
let singleForm = {
questions: [],
layout: 'mediaRight',
global: {
bubble: {
background_type: {
type: 'screen', //upload, color
screen: screenId,
upload: {
id: '', //media id
[02-Aug-2023 05:09:26 UTC] PHP Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php:290
Stack trace:
#0 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php(290): Exception->__construct('cURL error 28: ...', 'http_request_fa...')
#1 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\MediaDrivers\GoogleDrive.php(84): HelpGentPro\App\Lib\Google\Drive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), 'ADPycdv-iNCRV37...')
#2 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(201): HelpGentPro\App\MediaDrivers\GoogleDrive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), Object(HelpGent\App\DTO\AttachmentUploadSessionDTO))
#3 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(164): HelpGent\App\Repositories\Attac
(
SELECT
users.ID AS id,
user_email AS email,
"registered" AS user_type,
user_registered AS created_at
FROM
wp_users AS users
WHERE
EXISTS(
import { v4 as uuidv4 } from 'uuid';
const question = {
id: uuidv4(),
title: 'Address',
screen_type: 'address',
icon: 'marker',
isPro: false,
isComing: false,
position: { x: -150, y: 0 },
import { v4 as uuidv4 } from 'uuid';
const question = {
id: uuidv4(),
title: 'Date',
screen_type: 'date',
icon: 'date',
isPro: false,
isComing: false,
position: { x: -150, y: 0 },
const previewComponents = {
welcome: WelcomeQuestion,
long_text: LongTextQuestion,
short_text: ShortTextQuestion,
number: NumberQuestion,
button: ButtonQuestion,
file_upload: FileQuestion,
email: EmailQuestion,
website: UrlQuestion,
range_slider: SliderQuestion,