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
enum parseFloatErrorCodes { | |
SUCCESS, DOUBLE_DOT,PARSE_ERROR, INTEGER_OVERFLOW, | |
TOO_MANY_DIGITS_AFTER_DECIMAL_POINT | |
}; | |
int parse_float(char* inp, float *x) | |
{ | |
char *p; | |
int ival, dot; | |
for (ival = 0, dot = 0, p = inp; *p; ++p) { | |
int overflow_check = ival; |
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
/* Search in a sorted array A with the comparison function gt(v,w), that | |
* returns true if v greater than w and false otherwise, for a value x. | |
* Returns index i with 0 <= i < A.length, if the element has an exact match. | |
* Otherwise it returns the position p<0, that we can insert the new value | |
* sorted behind position -p-1 | |
*/ | |
function searchArray(A,x,gt) | |
{ | |
var l=A.length; | |
var low=0,high=l-1,mid=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
"AWT-EventQueue-0 1.2#AI-141.1890965, eap:false" prio=0 tid=0x0 nid=0x0 runnable | |
java.lang.Thread.State: RUNNABLE | |
(in native) | |
at java.util.zip.ZipFile.read(Native Method) | |
at java.util.zip.ZipFile.access$1400(ZipFile.java:56) | |
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679) | |
at com.intellij.openapi.util.io.FileUtilRt.loadBytes(FileUtilRt.java:577) | |
at com.intellij.openapi.util.io.FileUtil.loadBytes(FileUtil.java:1512) | |
at com.intellij.util.lang.MemoryResource.load(MemoryResource.java:75) | |
at com.intellij.util.lang.JarLoader.getResource(JarLoader.java:106) |
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
root:tmp# /usr/sbin/brctl show br0 | |
bridge name bridge id STP enabled interfaces | |
br0 8000.e4115bb36664 no bond0 | |
root:tmp# ping -c1 172.30.78.1 | |
PING 172.30.78.1 (172.30.78.1) 56(84) bytes of data. | |
64 bytes from 172.30.78.1: icmp_req=1 ttl=64 time=0.634 ms | |
--- 172.30.78.1 ping statistics --- | |
1 packets transmitted, 1 received, 0% packet loss, time 0ms | |
rtt min/avg/max/mdev = 0.634/0.634/0.634/0.000 ms |