var user = "string"
var user = "string"
#!/bin/bash | |
# latest-firefox Version 1.6.4 | |
# Contributer: drgibbon (thanks!) | |
# This script will find the latest Firefox binary package, download it | |
# and repackage it into Slackware format. | |
# I don't use Firefox for regular browsing but it is handy for | |
# comparative tests against Vivaldi. :P |
all: | |
cc -shared -fPIC lib_one.c lib_one.h -o libone.so | |
cc -shared -fPIC lib_two.c lib_two.h -o libtwo.so -L. -lone -Wl,-rpath=libs | |
mkdir -p libs | |
mv libone.so libs | |
cc main.c -o main -L. -ltwo -Wl,-rpath=. | |
clean: | |
rm -f libone.so libone.a libtwo.so main |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <limits.h> | |
#include <float.h> | |
unsigned long long factorial(unsigned num) | |
{ | |
unsigned int i = 1; | |
unsigned long long result = 1; |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
int chars_in_line = 7; | |
char current_letter = 65; /* ASCII A */ | |
int current_chars_in_line = chars_in_line; | |
for(int i = 0; i < chars_in_line; i++) |
var user = "string"
var user = "string"
/* ## (c) 2017, Arkadiusz Drabczyk, [email protected] */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct node { | |
int data; | |
struct node *next; | |
}; |
#!/usr/bin/env sh | |
# vb.sh: create a new virtualbox machine | |
# | |
## (c) 2016-2020, Arkadiusz Drabczyk, [email protected] | |
if [ "$#" -lt 2 ] | |
then | |
echo Usage: "$0" \<MACHINE-NAME\> \<ISO\> [RAM] [DISK] [TYPE] | |
echo Example: | |
echo ./vb.sh \"Slackware x64 14.1\" slackware64-14.1-install-dvd.iso |
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
Starting at position <position> extract <length> older bits. | |
Example: | |
bit number: | |
7 6 5 4 3 2 1 0 | 15 14 13 12 11 10 9 8 | 23 22 21 20 19 18 17 16 |
#include <stdio.h> | |
#include <stdlib.h> | |
void print(int arr[], size_t size) | |
{ | |
unsigned i = 0; | |
for (; i < size; ++i) | |
{ | |
printf("%d ", arr[i]); | |
} |
#include <stdio.h> | |
#include <stdlib.h> | |
void bubble(int arr[], size_t size) | |
{ | |
int i = 0; | |
int temp; | |
int again = 1; | |
int iter = size - 1; |