This file contains 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 <math.h> | |
#include <errno.h> | |
#define STRINGBUF 1024 | |
#define SPACE 32 | |
#define LINEBREAK 10 | |
#define CHAR_P 80 |
This file contains 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
unsigned short LoadPGM(FILE * inFile, Image * inImg) { | |
/********************************************************************************************/ | |
// parse binary pgn file to validate format, extract width, height, and greyvalue data array. | |
// read file bytewise | |
int position = 1; | |
int c; | |
// parse first line. Expecting P5, abort if not. P is 80, 5 is 53, linebreak is 10 |
This file contains 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 <errno.h> | |
/* | |
Definieren Sie eine Strukturvariable für Personendaten namens "person" mit den 20 Zeichen | |
breiten Elementen name, vorname, geburtsort und dem vorzeichenlosen langen Integer geboren. | |
*/ | |
struct person { |
This file contains 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
what's new in intercultural communication | |
intersecting categories | |
culture | |
gender | |
religion | |
class | |
national belonging | |
those are only performed, but not naturally given | |
what is deconstruction |
This file contains 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
class PostParser | |
include HTTParty | |
format :json | |
def initialize(post_id) | |
@post = Post.find(post_id) | |
end | |
def extract_tracks_from_embeds | |
#strategy: first extract from body and summary feed fields. if none present |
This file contains 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
#!/usr/bin/env ruby | |
# use https://github.com/libgit2/rugged | |
require 'rugged' | |
# all dirs under the current path with git repos | |
repo_dirs = Dir.glob("**/.git", File::FNM_DOTMATCH) | |
# init rugged objects | |
repos = repo_dirs.map do |repo_path| |