CSS Emulation of the UI style of the Common Desktop Environment
A Pen by Vegard Berg on CodePen.
| #! /usr/bin/env bash | |
| function verify_deps() { | |
| command -v niri >/dev/null 2>&1 || { echo >&2 "niri is required but it's not installed. Aborting."; exit 1; } | |
| command -v jq >/dev/null 2>&1 || { echo >&2 "jq is required but it's not installed. Aborting."; exit 1; } | |
| command -v fuzzel >/dev/null 2>&1 || { echo >&2 "fuzzel is required but it's not installed. Aborting."; exit 1; } | |
| command -v wl-mirror >/dev/null 2>&1 || { echo >&2 "wl-mirror is required but it's not installed. Aborting."; exit 1; } | |
| } | |
| function select_monitor() { |
CSS Emulation of the UI style of the Common Desktop Environment
A Pen by Vegard Berg on CodePen.
I hereby claim:
To claim this, I am signing this object:
| #! /usr/env python3 | |
| # Dependencies: | |
| # discord.py https://github.com/Rapptz/discord.py | |
| # requests http://docs.python-requests.org/en/master/ | |
| import discord | |
| import asyncio | |
| import requests | |
| import json |
| package utils | |
| import ( | |
| "encoding/base64" | |
| "net/http" | |
| "strings" | |
| ) | |
| func BasicAuth(handler http.HandlerFunc, username, password string) http.HandlerFunc { | |
| return func(w http.ResponseWriter, r *http.Request) { |
| # -*- coding: utf-8 -*- | |
| from sys import argv | |
| class Stack: | |
| def __init__(self): | |
| self.items = [] | |
| def isEmpty(self): | |
| return self.items == [] |
| import requests, sys | |
| url = "https://www.atb.no/xmlhttprequest.php?service=routeplannerOracle.getOracleAnswer&question=" + " ".join(sys.argv[1:]) | |
| r = requests.get(url) | |
| text = r.text | |
| print(text) |
| <!DOCTYPE html5> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="processing.js"> </script> <!-- Loads the Processing.js library from the same directory --> | |
| </head> | |
| <body> | |
| <canvas data-processing-sources="test.pde"></canvas> <!-- This loads the file called "test.pde" in the same directory as the file" --> | |
| </body> | |
| </html> |
| #lang racket | |
| (require racket/gui/base) | |
| ; Create the main window. | |
| (define frame (new frame% [label "Filler"] | |
| [min-width 300] | |
| [min-height 240] | |
| [style '(no-resize-border)] | |
| )) | |
| ; Create the status line |
| #lang racket | |
| (define max (expt 100 100)) | |
| (define out (open-output-file "eee.txt")) | |
| (define (f a b) | |
| (if (> b max) | |
| (f 0 1) |