This file contains 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
extern crate orbclient; | |
use orbclient::{Color, Window, Renderer, EventOption}; | |
fn render(window: &mut Window, px: i32, py: i32) { | |
let color_start = Color::rgb(0, 0, 0); | |
let color_end = Color::rgb(255, 255, 255); | |
let color_line = Color::rgb(255, 0, 0); | |
let (cx, cy) = (300, 300); |
This file contains 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
[package] | |
name = "gradientgui" | |
description = "Experimental app" | |
repository = "https://github.com/redox-os/orbutils" | |
version = "0.0.1" | |
license-file = "LICENSE" | |
readme = "README.md" | |
authors = ["Tibor Nagy <xnagytibor@gmail.com>"] | |
[[bin]] |
This file contains 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
fn mlx_checksum(address: usize, data: &[u8]) -> u8 { | |
let mut checksum = address as isize / 256; | |
checksum = address as isize - 254 * checksum - (if checksum > 127 { 255 } else { 0 }); | |
if checksum > 255 { checksum -= 255; } | |
for i in 0..8 { | |
checksum = checksum * 2 - (if checksum > 127 { 255 } else { 0 }) + data[i] as isize; | |
if checksum > 255 { checksum -= 255; } | |
} | |
checksum as u8 |
This file contains 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
program EszEd; | |
{ TODO: Error handling where neccessary. } | |
const | |
CCategoryCount = 11; | |
CCategories: array[1..CCategoryCount] of string = ( | |
'SZOLAS', { Saying } | |
'FOGALOM', { Concept } | |
'SZEMELY', { Person } |
This file contains 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
#include <stdio.h> | |
#include <time.h> | |
/* | |
Compiler warnings/lints test case for "Why It's Already 2020": | |
https://www.youtube.com/watch?v=D3jxx8Yyw1c | |
*/ | |
#define BUFSIZE 256 |
This file contains 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
kdeconnect.plugin.sftp: Process started | |
kdeconnect.plugin.sftp: "Galaxy J3" "Remote filesystem mounted at /run/user/1000/2a7e26c695c6035d" | |
kdeconnect.plugin.sftp: stdout: "Warning: Permanently added '[192.168.1.102]:1741' (RSA) to the list of knownhosts.\r\n" | |
kdeconnect.plugin.notification: Destroying NotificationsPlugin | |
kdeconnect.plugin.sftp: Destroy mounter | |
kdeconnect.plugin.sftp: Unmount KProcess(0x556a48f3ebe0) | |
kdeconnect.plugin.sftp: Free KProcess(0x556a48f3ebe0) |
This file contains 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
Python version: | |
2.7.16, not 2.7.13 as constraints.txt states | |
Host: | |
Some kind of Linux | |
socket.gethostname(): | |
localhost | |
BLACKLISTED_CODE circumvention: |
This file contains 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
$ aseqdump --port 28:0 | |
[Play button] | |
28:0 Control change 15, controller 106, value 127 | |
28:0 Control change 15, controller 106, value 0 | |
[Record button] | |
28:0 Control change 15, controller 107, value 127 | |
28:0 Control change 15, controller 107, value 0 |
This file contains 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
$ timidity -iA -Os -B 2,9 | |
$ aseqdump | |
$ aseqmatrix | |
aseqmatrix: | |
Passthrough -> timidity | |
Passthrough -> aseqdump | |
$ aplaymidi midi.mid --port 14:0 |
This file contains 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
body, .markdown-body { | |
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; | |
} |
OlderNewer