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
/** | |
* @file | |
*/ | |
#include "int128.h" | |
/* | |
* http://stackoverflow.com/a/25115163 | |
*/ | |
std::ostream& operator<<(std::ostream& os, const __int128 i) noexcept |
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
from time import strftime as _strftime | |
def iso8601(): | |
"""Returns an ISO 8601-compatible datestamp for use with naming files.""" | |
return _strftime('%Y%m%dT%H%M%S') |
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
#!/usr/bin/env bash | |
# Create the file "database.sqlite3". | |
# | |
# Reference: http://ss64.com/bash/syntax.html | |
which sqlite3 &> /dev/null | |
if [ $? -eq 1 ] | |
then | |
echo "sqlite3 not found" |
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
return_value = [] | |
output = subprocess.Popen( | |
['netstat','--interfaces','all'], | |
stdout=subprocess.PIPE).communicate()[0] | |
#Kernel Interface table | |
#Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg | |
#eth0 1500 0 1229230 0 0 0 1279754 0 0 0 BMRU | |
#lo 16436 0 163 0 0 0 163 0 0 0 LRU | |
lines = output.strip().splitlines() | |
lines.pop(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
{ | |
"type": "package", | |
"package": { | |
"name": "phpredis/phpredis", | |
"version": "2.1.3", | |
"dist": { | |
"url": "https://github.com/nicolasff/phpredis/zipball/2.1.3", | |
"type": "zip" | |
} | |
} |
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
main: main.c | |
.PHONY: | |
clean: | |
rm -f main |
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
; special sections | |
[INCLUDE] | |
[FPGA] | |
device = xc6slx45 | |
devicefamily = spartan6 | |
package = csg324 | |
speedgrade = -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
#!/usr/bin/env python | |
# | |
# Measure the bit error rate if a serial port in loopback. | |
# | |
import serial | |
import sys | |
import traceback |
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
This turned out not to be as useful as just using the raw FIFO interface directly and letting each PicoBlaze do its own I/O logic. |
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
CFLAGS=-std=gnu99 -O3 | |
LDFLAGS=-lrt -lgmp | |
.PHONY: all | |
all: ebert | |
ebert: ebert.c time.o profile.o | |
time.o: time.c time.h |
NewerOlder