Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
//xlib, for interacting with the X server
#include <X11/Xatom.h>
//cairo, for drawing
; the bios places the first sector (512 bytes) at 0x7c00
; thus, thats the location of this code
[org 0x7c00]
; set the video mode to
; 80x25 16 color text (CGA,EGA,MCGA,VGA)
; (https://stanislavs.org/helppc/int_10-0.html)
; used for clearing the screen
mov ah, 0x00
mov al, 0x03
int 0x10
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=2754117, tid=2754121
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C 0x0000000000000000
#
+ main.c [No Name]
// --------------
// TextBar v0.1.0
// --------------
// Usage: <text generator> | textbar | <input handler>
//
// Shows the last two lines from stdin on a bar
// Every odd line is on the left
// Every even line is on the right
// Updating one side at a time is not possible
// Line buffered
import time
import sys
import os
from i3ipc import Connection
from i3ipc import Event
i3 = Connection()
sep='|'
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffff6026a60>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/flake8/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffff60303d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/flake8/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._
processing4 = pkgs.stdenv.mkDerivation rec {
pname = "processing4";
version = "1276-4.0b1";
src = pkgs.fetchFromGitHub {
owner = "processing";
repo = "${pname}";
rev = "processing-${version}";
sha256 = "9AUHT8lEkYQ+TcpHJ7D24QZf6DjTPmthd/oVg/+Pt2Q=";
};
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
(ns game.core
(:import
(org.lwjgl.glfw GLFW GLFWKeyCallbackI GLFWWindowSizeCallbackI)
(org.lwjgl.opengl GL GL11 GL15 GL20 GL30)
(org.lwjgl.system MemoryUtil MemoryStack)))
(def width 300)
(def height 300)
(defn set-uniform [x y & {:keys [shader name :as opts]}]