Skip to content

Instantly share code, notes, and snippets.

Mr Bee pakLebah

Block or report user

Report or block pakLebah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pakLebah
pakLebah / launch.json
Last active Oct 23, 2019
My VS Code tasks for Apple's Swift programs on Mac.
View launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"name": "LLDB",
"cwd" : "${workspaceFolder}",
@pakLebah
pakLebah / launch_task.sh
Last active Oct 18, 2018
Toggle Mojave's dark mode automatically based on given time.
View launch_task.sh
# NOTES:
# • Don't forget to change every <HOME> in the scripts to your home folder name.
# • Copy .plist and .scpt files into your Library/LaunchAgents folder.
# • First time execution would require permission.
# • Toggle time is hard coded in the script as:
# – light mode: 07:00-17:00 (day time)
# – dark mode: 17:00-07:00 (night time)
# • Execution interval: every 10 minutes (600 seconds).
# load task
@pakLebah
pakLebah / ansiCRT.pas
Last active Apr 7, 2019
ANSI code unit and demo program using Free Pascal.
View ansiCRT.pas
unit ansiCRT;
(******************************************************************************
This unit is emulating classic Pascal's CRT unit text color management and
cursor movement using ANSI Escape Code sequence. Keyboard input handling &
screen windowing is not possible. For keyboard input, better use the FPC's
Keyboard unit.
ANSI Escape Code list taken from:
https://en.wikipedia.org/wiki/ANSI_escape_code
@pakLebah
pakLebah / chinook.db
Last active Oct 26, 2018
Simple SQlite demo with Free Pascal.
@pakLebah
pakLebah / launch.json
Last active May 27, 2019
My VS Code tasks for Free Pascal programs on Mac.
View launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{ // shortcut: F5 (start debugging)
"type": "lldb",
"request": "launch",
"name": "LLDB Debugger",
@pakLebah
pakLebah / bounce.lpr
Last active Jul 28, 2018
LCL canvas graphics demo.
View bounce.lpr
program bounce;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, lazcontrols, ubounce;
You can’t perform that action at this time.