Skip to content

Instantly share code, notes, and snippets.

Vojtech Vladyka argorain

Block or report user

Report or block argorain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@argorain
argorain / ptrs.c
Created Apr 6, 2015
Simple round robin scheduler with table of function pointers.
View ptrs.c
#include "stdio.h"
#define MAX_SIZE 10 //maximum amount of functions in table
//#define SHOW_ITERATION //uncoment for show iteration numbers
//************ TABLES AND ROUTINES *****************************
typedef enum //function callers
{
@argorain
argorain / smile.c
Created Apr 16, 2015
Keep smiling! Thanks B0rk!
View smile.c
#include <stdio.h>
#include <unistd.h>
// Do not be sad anymore, be smile!
// Thanks B0rk :)
int main(int argc, char **argv){
while(1){
printf(":) ");
fflush(stdout);
View neolog
+ verbose=on
+ shift
+ '[' '' ']'
+ getdistro
+ '[' '' ']'
+ case "$os" in
+ grep -q Microsoft /proc/version
+ grep -q Microsoft /proc/sys/kernel/osrelease
+ type -p lsb_release
+ case "$distro_shorthand" in
View neolog tmux2.3
+ verbose=on
+ shift
+ '[' '' ']'
+ getdistro
+ '[' '' ']'
+ case "$os" in
+ grep -q Microsoft /proc/version
+ grep -q Microsoft /proc/sys/kernel/osrelease
+ type -p lsb_release
+ case "$distro_shorthand" in
View tmux_conf
assume-paste-time 1
base-index 0
bell-action any
bell-on-alert off
default-command ""
default-shell "/bin/zsh"
default-terminal "screen"
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
You can’t perform that action at this time.