Skip to content

Instantly share code, notes, and snippets.

View cheryllium's full-sized avatar
🕷️
developing webs

C. Yang cheryllium

🕷️
developing webs
View GitHub Profile
@cheryllium
cheryllium / helloworld.lisp
Created March 5, 2014 01:49
Source for CommonQt Tutorial #1: Hello World
(ql:quickload :qt)
(in-package :qt)
(named-readtables:in-readtable :qt)
(defclass hello-world-app () ()
(:metaclass qt-class)
(:qt-superclass "QWidget"))
(defmethod initialize-instance :after ((instance hello-world-app) &key)
(new instance)
@cheryllium
cheryllium / helloname.lisp
Last active November 10, 2023 16:14
Source for CommonQt Tutorial #2: Hello Name
(ql:quickload :qt)
(in-package :qt)
(named-readtables:in-readtable :qt)
(defclass hello-name-app ()
((name-edit :accessor name-edit)
(name-button :accessor name-button)
(name-label :accessor name-label))
(:metaclass qt-class)
@cheryllium
cheryllium / box-example.lisp
Created March 5, 2014 19:13
Source for CommonQt Tutorial #3: Intro to Layouts
(ql:quickload :qt)
(in-package :qt)
(named-readtables:in-readtable :qt)
(defclass hello-name-app ()
((name-edit :accessor name-edit)
(name-button :accessor name-button)
(name-label :accessor name-label))
(:metaclass qt-class)
@cheryllium
cheryllium / FixUTF8.php
Created April 29, 2021 02:54
[Laravel] custom console command for converting utf8 VARCHAR columns to utf8mb4
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
/**
* Tested on Laravel 8.x, PHP 8 and MySQL 8 - but may work on lower versions (?)
*