When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
# Thanks to @keremgokcek for helping to make the search action. | |
import gi, sys | |
gi.require_version ( | |
'Gtk', | |
'4.0' | |
) | |
gi.require_version ( | |
'Adw', | |
'1' | |
) |
#!/bin/bash | |
set -e | |
self=$(realpath $0) | |
# Creating sdk directory | |
mkdir -p $HOME/.android-emulator/sdk | |
cd $HOME/.android-emulator/ | |
# İnstalling java | |
if [[ ! -d $HOME/.android-emulator/jdk-18 ]] ; then | |
wget -c https://download.java.net/openjdk/jdk18/ri/openjdk-18+36_linux-x64_bin.tar.gz -O java.tar.gz | |
tar -xf java.tar.gz |
#!/usr/bin/env python | |
# Copyright (c) 2018 Kurt Jacobson | |
# <kurtcjacobson@gmail.com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. | |
# |
#!/usr/bin/env python | |
# Copyright (c) 2017 Kurt Jacobson | |
# License: https://kcj.mit-license.org/@2017 | |
import os | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('Gdk', '3.0') |
command_not_found_handle () | |
{ | |
if [ -x /usr/lib/command-not-found ]; then | |
/usr/bin/python /usr/lib/command-not-found -- $1; | |
return $?; | |
else | |
return 127; | |
fi | |
} |
#!/usr/bin/python | |
from gi.repository import Gtk, GObject | |
from datetime import datetime | |
class MainWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="app") | |
self.box = Gtk.Box(spacing=6) | |
self.add(self.box) |
# -*- coding:utf-8 -*- | |
# | |
# Copyright (C) 2013 Carlos Jenkins <carlos@jenkins.co.cr> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
from gi.repository import Gtk | |
settings = Gtk.Settings.get_default() | |
settings.set_property("gtk-application-prefer-dark-theme", True) |