Skip to content

Instantly share code, notes, and snippets.

View mjcarnaje's full-sized avatar

Michael James Carnaje mjcarnaje

View GitHub Profile
DROP DATABASE project_management;
CREATE DATABASE project_management;
use project_management;
CREATE TABLE IF NOT EXISTS project (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
description VARCHAR(255),
var ajax_window = {
ajax_url: "https://easybrandph.com/wp-admin/admin-ajax.php",
language: "en",
templates: {
line: '\n<div :style="additionalCss" class="calc-item ccb-hr" :class="lineField.additionalStyles" :data-id="lineField.alias">\n\t<div class="ccb-line" :style="getLine"></div>\n</div>\n',
html: '\n<div :style="additionalCss" class="calc-item html" :data-id="htmlField.alias" v-html="htmlContent" :class="htmlField.additionalStyles"></div>\n',
toggle:
'\n<div :style="additionalCss" class="calc-item ccb-field" :class="{required: $store.getters.isUnused(toggleField), [toggleField.additionalStyles]: toggleField.additionalStyles}" :data-id="toggleField.alias">\n\t<div class="calc-item__title">\n\t\t<span> {{ toggleField.label }} </span>\n\t\t<span class="ccb-required-mark" v-if="toggleField.required">*</span>\n\t\t<span v-if="toggleField.required" class="calc-required-field">\n\t\t\t<div class="ccb-field-required-tooltip">\n\t\t\t\t<span class="ccb-field-required-tooltip-text" :class="
@mjcarnaje
mjcarnaje / 4380.json
Created February 16, 2024 07:44
recipe cost calculator
"form_data": [
[
{
"form_identifier": "",
"name": "fieldname10",
"fieldlayout": "default",
"shortlabel": "",
"index": 0,
"ftype": "ffieldset",
"userhelp": "",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Relofair Chat</title>
</head>
<body>
<div id="chat-container"></div>
@mjcarnaje
mjcarnaje / index.py
Created June 3, 2024 03:41
connecteam time in
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
import json
import schedule
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')