Skip to content

Instantly share code, notes, and snippets.

View skeltonmod's full-sized avatar
👌
Suicidal

novidash skeltonmod

👌
Suicidal
View GitHub Profile
@skeltonmod
skeltonmod / gist:c8241d93eb3ab1cf7d6c1f826d12e9b3
Created February 14, 2024 14:22
docker-compose.override.yml
# vim: set ft=yaml:
---
version: '2.3'
services:
# -----------------------------------------------------------------------------------------------
# Ngrok
# -----------------------------------------------------------------------------------------------
ngrok:
<style>
/*!
* Bootstrap v4.6.2 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors
* Copyright 2011-2022 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
:root {
--blue: #007bff;
--indigo: #6610f2;

How to use

  1. Create a folder named patches
  2. Paste the code above and rename the file to froala-editor+4.0.10.patch
  3. Replace your froala version with the one provided below
  • "froala-editor": "^4.0.10",
  1. run yarn add patch-package
  2. run npx patch-package froala-editor
  3. Profitt!
import "regenerator-runtime/runtime";
import axios from "axios";
import Cookies from 'js-cookie';
import { API_URL_TEMP } from "../api/api";
// It just appends the API request
let cors_api_url = API_URL_TEMP;
export class Api {
static instance;
axiosInstance = null;
import "regenerator-runtime/runtime";
import axios from "axios";
import Cookies from 'js-cookie';
import { API_URL_TEMP } from "../api/api";
// It just appends the API request
let cors_api_url = API_URL_TEMP;
export class Api {
static instance;
axiosInstance = null;
@skeltonmod
skeltonmod / dogshit.py
Last active March 3, 2023 11:32
CS302 - CNN
# ELIJAH M. ABGAO
# BACHELOR SCIENCE IN COMPUTER SCIENCE
# CODE IS OLD AS FUCK NOT RECOMMENDED, SEE BELOW!
import numpy as np
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D
x_train = np.load('cherry_images.npy') # array of cherry images
y_train = np.load('cherry_labels.npy') # array of labels (ripe=1, unripe=0)
import "regenerator-runtime/runtime";
import axios from "axios";
// It just appends the API request
let cors_api_url = "https://thewashapi-production.up.railway.app/api";
export class Api {
static instance;
axiosInstance = null;
constructor() {

User Management Rewrite Branch

This is the scaffold, features are still being ported over from the app using this This tool

["Africa/Abidjan","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihu
# Install needed dependencies
# pip install mysql
# pip install schedule
import mysql.connector
from ast import literal_eval
from datetime import datetime
import schedule
import time
from multiprocessing import Process, Manager