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 main | |
import "fmt" | |
func commonPrefix(values ...string) string { | |
vLen := len(values) | |
if vLen < 1 { | |
return "" | |
} | |
minIndex := 0 |
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
// Author: Emmanuel Odeke <[email protected]> | |
// Module to handle platform agnostic loading of dynamic libraries | |
#include <stdio.h> | |
#include <stdlib.h> // For exit(...) | |
#include <stdarg.h> | |
#include "lib_loader.h" | |
static errorReporter errReporter = NULL; |
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
var _un = require('underscore'); | |
var url = require('url'); | |
var util = require('util'); | |
var request = require('request'); | |
function walkUrl(targetUrl, callback) { | |
var probes = {}; | |
var errBucketIndex = 5; | |
// status codes are in the range 100 - 999 |
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
diff --git a/src/master.c b/src/master.c | |
index cd846e1..0733d3b 100644 | |
--- a/src/master.c | |
+++ b/src/master.c | |
@@ -354,7 +354,7 @@ bud_error_t bud_master_get_spawn_args(bud_config_t* config, char*** out) { | |
} else { | |
/* Goal is to skip piped_index, thus excluding --piped-config argument: */ | |
for (i = 0, j = 0; i < config->piped_index; i++, j++) | |
- args[j++] = config->argv[i]; | |
+ args[j] = config->argv[i]; |
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
CC := gcc | |
radTest: radLoadWords.c radTrie.o element.o wordTransition.o | |
$(CC) -DTEST_LOAD_WORDS radTrie.o element.o wordTransition.o radLoadWords.c -o $@ | |
%.o: %.c | |
$(CC) -c $< -o $@ | |
clean: | |
rm -f *.o radTest |
NewerOlder