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 sys | |
| import gi | |
| gi.require_version('Gtk', '4.0') | |
| gi.require_version('Adw', '1') | |
| from gi.repository import Gtk, Gio, Adw | |
| class Window(Gtk.ApplicationWindow): |
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
| #!/bin/bash | |
| i=0 | |
| mkdir ./tmp | |
| for file in $(find . -name \*.$1) | |
| do | |
| if [ $(cat $file | wc -l) -gt 0 ] | |
| then | |
| enscript -1RG --line-numbers --margins=0:0:0:0 -p ./tmp/output-$i.ps $file | |
| ps2pdf ./tmp/output-$i.ps ./tmp/output-$i.pdf | |
| ((i=i+1)) |
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
| // SPDX-License-Identifier: MIT | |
| // Only allow compiler versions from 0.7.0 to (not including) 0.9.0 | |
| pragma solidity >=0.8.0 <0.9.0; | |
| contract Bakery { | |
| // State variables | |
| address public owner; | |
| bool shopIsOpen; |