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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>AOP Example</title> | |
<style type="text/css"> | |
#log { | |
background: #EEE; | |
height: 300px; | |
overflow: auto; | |
} |
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
#!/bin/sh | |
for f in ${2}/.pdf; do | |
out=$(pdftotext $f - | grep -n $1) | |
if [ $? -eq 0 ]; then | |
echo -e "${f}:\n${out}\n" | |
fi | |
done |
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> | |
#define LOG_NONE (0) | |
#define LOG_WARN (1) | |
#define LOG_INFO (2) | |
#define WARN(...) | |
#define INFO(...) | |
#define LOG_LEVEL LOG_INFO // Set log level here |
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 <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct token_t | |
{ | |
char token; | |
int count; | |
} |