Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <wayland-client.h> | |
| static void nop() {} | |
| typedef struct Output | |
| { | |
| uint32_t id; |
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
| #![allow(non_camel_case_types)] | |
| #![allow(unused_must_use)] | |
| use std::fmt; | |
| use std::ops::Shl; | |
| struct cout; | |
| struct endl; | |
| impl fmt::Display for endl { | |
| fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { | |
| write!(f, "\n") |
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
| macro_rules! Array { | |
| ($n:expr, $t:ty) => (std::array::from_fn::<$t, $n, _>(|_| <$t>::default())); | |
| ($n:expr, $f:expr) => (std::array::from_fn::<_, $n, _>($f)); | |
| } |
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
| function takeLastNBits(n, bits) { | |
| console.log(n.toString(2)) | |
| console.log((n&((1<<bits)-1)).toString(2).padStart(bits, 0)) | |
| } |
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
| function timestamp() { | |
| const pad = (t) => String(t).padStart(2, '0'); | |
| const nowRaw = new Date(); | |
| return `${pad(nowRaw.getUTCHours())}:${pad(nowRaw.getUTCMinutes())}:${pad(nowRaw.getUTCSeconds())}.${String(nowRaw.getUTCMilliseconds()).padStart(3, '0')}`; | |
| } |
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
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
