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
/* cc -of f.c -lgmp */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <gmp.h> | |
void factorize (mpz_t r, mpz_t n) | |
{ | |
mpz_t x; |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <gmp.h> | |
int main (int argc, char *argv[]) | |
{ | |
mpz_t n, x, f; | |
if (argc < 2) | |
exit(EXIT_FAILURE); |
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 <avr/io.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#define BAUD 19200 | |
#define important_magic_number F_CPU/16/BAUD-1 | |
int32_t main{ | |
begin(important_magic_number); | |
/* need to figure out which ports /registers/pins to use*/ |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
) | |
type Message2 struct { | |
Prefix string | |
Command string |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
enum symbols { NEWLINE, SPACE, COLON }; | |
#define SYMBOLS { '\n', ' ', ':', '\0'}; | |
char line[32][256]; |
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 <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <get_irc_message.h> | |
#define INIT_BUFFER_MAX 256 |
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 <stdlib.h> | |
#include <string.h> | |
/* | |
* Hint: scroll down to match() | |
*/ | |
/**********************************************************************/ | |
typedef struct { | |
char *p; | |
size_t len, cap; |
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
SELECT | |
sum(Total) AS Total, State | |
FROM ( | |
SELECT | |
State, Total | |
FROM | |
WorkOrders | |
INNER JOIN | |
Customers ON CID = ID | |
WHERE Type != "Warranty" |
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 | |
ssh [email protected] 'find ~/irclogs/ -type f ! -empty | grep -v ".*/$(date "+%Y")/[^/]*/.*\.$(date "+%m")-$(date "+%d")\.log" | sed "s|$HOME/irclogs/||"' > targets | |
cat targets | while read line | |
do | |
mkdir -p ~/irclogs/$(echo $line | sed -e 's|/[^/]*$||') | |
scp -B -C -p [email protected]:'~/irclogs/'$line ~/irclogs/$line | |
done | |
ssh [email protected] "sed 's|.*|$HOME/irclogs/&|' | xargs rm -f" < targets |
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
diff --git a/ndb.go b/ndb.go | |
index 4d1f5b6..9dc3f69 100644 | |
--- a/ndb.go | |
+++ b/ndb.go | |
@@ -27,7 +27,7 @@ type Tuple struct { | |
// A NDB record, which may contain multiple tuples, | |
// and may span multiple lines in the file. | |
-type Record []Tuple | |
+type Record [][]Tuple |
OlderNewer