The first portion of any ELF file is the ELF header. This generally provides offsets to other headers (program headers and section headers) within an ELF.
typedef struct {
unsigned char e_ident[EI_NIDENT];
uint16_t e_type;| import Random exposing (Generator) | |
| type Nonempty a | |
| = Nonempty a (List a) | |
| head : Nonempty a -> a | |
| head (Nonempty x _) = | |
| x |
| use std::{ | |
| path::{Path, PathBuf}, | |
| process::Command, | |
| sync::Arc, | |
| thread, | |
| }; | |
| use clap::Parser; | |
| use tiny_http::Response; | |
| use url::Url; |
| #!/usr/bin/python | |
| import sys | |
| import getopt | |
| def usage(): | |
| pass | |
| # commandline arguments except the file name | |
| argv = sys.argv[1:] |
| module Main exposing (main) | |
| import Browser | |
| import Html exposing (Html, button, div, input, text) | |
| import Html.Attributes exposing (value) | |
| import Html.Events exposing (onClick, onInput) | |
| import Time | |
| type alias Question = |
| let resource_one = Arc::new(Mutex::new(10)); | |
| let resource_two = Arc::new(Mutex::new(20)); | |
| let r1 = resource_one.clone(); | |
| let r2 = resource_two.clone(); | |
| let th1 = thread::spawn(move || { | |
| let mut r2 = r2.lock().unwrap(); | |
| thread::sleep(Duration::from_secs(5)); | |
| let mut r1 = r1.lock().unwrap(); | |
| *r1 += 1; |
| # make CapsLock behave like Ctrl: | |
| setxkbmap -option ctrl:swapcaps | |
| # make short-pressed Ctrl behave like Escape: | |
| xcape -e 'Control_L=Escape' |
| use std::collections::HashMap; | |
| use std::hash::Hash; | |
| use std::thread; | |
| use std::time::Duration; | |
| struct Cacher<K, V, F> { | |
| calculator: F, | |
| value: HashMap<K, V>, | |
| } |