This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ***************************************************************** | |
| * AUTHOR: PIOTR PLACZEK <PPLACZEK@IBM.COM> | |
| * LICENSE: MIT | |
| * DATE: NOVEMBER 2025 | |
| * DESCRIPTION: THIS IS A SIMPLE COBOL PROGRAM DEMONSTRATING THE | |
| * USE OF SCREEN. USE: | |
| * cobc -x --Wall SCREEN-TEST.COB && ./SCREEN-TEST | |
| * TO COMPILE AND RUN THE PROGRAM. | |
| * | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * | |
| /o\ | |
| /o..\ | |
| /..o\ | |
| /o...o\ | |
| /.o..o\ | |
| /.oo..oo\ | |
| /......o\ | |
| /...o..o..\ | |
| ||| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import re | |
| breaking_changes_file_path = "/home/piotrpdev/gsoc/electron/docs/breaking-changes.md" | |
| line_to_stop_parsing_at = "## Planned Breaking API Changes (24.0)" | |
| with open(breaking_changes_file_path, "r") as breaking_changes_file: | |
| breaking_changes_list = [] | |
| for line in breaking_changes_file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \version "2.24.3" | |
| \header { | |
| title = "Bloody Tears" | |
| subtitle = "from Castlevania" | |
| composer = "Kenichi Matsubara" | |
| arranger = "Arr. by Piotr Bogdan Płaczek" | |
| source = "Original" | |
| style = "Soundtrack" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| import PyPDF2 | |
| import re | |
| # open the pdf file | |
| reader = PyPDF2.PdfReader("expo.pdf") | |
| # get number of pages | |
| num_pages = len(reader.pages) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .sh IS FOR FORMATTING, THIS ISN'T AN ACTUAL SCRIPT | |
| # | |
| # https://github.com/drduh/YubiKey-Guide#using-keys | |
| # https://levelup.gitconnected.com/how-to-use-a-yubikey-in-wsl2-linux-on-windows-96f176518583 | |
| # https://jardazivny.medium.com/the-ultimate-guide-to-yubikey-on-wsl2-part-1-dce2ff8d7e45 | |
| # https://github.com/PowerShell/Win32-OpenSSH/issues/827 | |
| # | |
| # IF USING WSL, USE gpg.exe INSTEAD OF gpg (start kleopatra first?) | |
| # make sure you have gpg4win and (maybe putty) installed | |
| # add kleo shortcut to shell:startup and change to minimized |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: hello-world | |
| spec: | |
| type: NodePort | |
| ports: | |
| - name: dashboard-tcp | |
| port: 50005 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fetch from 'node-fetch' | |
| import { createHash } from 'crypto' | |
| import { readFile } from 'fs/promises' | |
| class HTTPResponseError extends Error { | |
| constructor (response) { | |
| super(`HTTP Error Response: ${response.status} ${response.statusText}`) | |
| this.response = response | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseHTMLTableElem(tableEl) { | |
| const columns = Array.from(tableEl.querySelectorAll('tr:first-child > td')).map(it=>it.textContent); | |
| const rows = tableEl.querySelectorAll('tr:not(:first-child)'); | |
| let categoryIndex = -1; | |
| const days = [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Replace with below | |
| create table public.users ( | |
| id uuid not null primary key, -- UUID from auth.users | |
| username text, | |
| discord_id text, | |
| discord_avatar_url text, | |
| status user_status default 'OFFLINE'::public.user_status | |
| ); | |
| -- Replace with below |
NewerOlder