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
/***************************** | |
* Fernlehre Bounded Buffer | |
* File: main.c | |
* Author: Granzer Wolfgang | |
* Version: 1.1 | |
* Date: 05.05.2015 | |
**/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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 <ctype.h> | |
struct _element { | |
char icao_code[5]; | |
char station_name[100]; | |
}; |
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> | |
#define MAX_NODES 20 | |
#define WHITE 0 | |
#define GRAY 1 | |
#define BLACK 2 |
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
/***************************** | |
* Fernlehre Semaphore Example | |
* File: main.c | |
* Author: Granzer Wolfgang | |
* Version: 1.0 | |
* Date: 30.4.2012 | |
**/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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> | |
#define MAX_NODES 8 | |
#define INFINITE 0xffff | |
// structure for a node | |
typedef struct _node { | |
int node; |
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 "stdlib.h" | |
#include "stm32f4xx.h" | |
// This morse code implementation uses the standard as defined | |
// by the International Telecommunication Union (ITU) in 1865 | |
// T is short for "Time Unit" | |
int T = (100 * 100000); |
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
letsencrypt: | |
environment: | |
- [email protected] | |
image: 'jrcs/letsencrypt-nginx-proxy-companion:v1.3' | |
volumes: | |
- '/root/certs:/etc/nginx/certs' | |
- '/var/run/docker.sock:/var/run/docker.sock:ro' | |
volumes_from: | |
- nginx |
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
package gq.icctv.webviewdemo; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.webkit.JavascriptInterface; | |
import android.webkit.WebResourceRequest; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
import android.widget.Toast; |
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
:- initialization(main). | |
main :- | |
routes(vie, nrt, R), | |
write(R), halt. | |
% data | |
flight(vie, nrt, 1000). | |
flight(vie, fra, 40). | |
flight(vie, cdg, 50). |
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
#!/bin/bash | |
is_container () { | |
cgroup_output=$(cat /proc/self/cgroup 2>&1) | |
echo "$cgroup_output" | grep -E '/docker/|/lxc/' > /dev/null | |
return $? | |
} | |
if is_container; then | |
echo "I'm trapped inside a container." |