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
float get(obj* v, bool* ok) { | |
float c; | |
if(v->valid) { | |
*ok = true; | |
c = v->a + v->b; | |
} | |
else { | |
*ok = false; //not ok, so don't expect anything from c | |
} | |
return c; |
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
float get(obj* v, bool* ok) { | |
float c; | |
if(v->valid) { | |
*ok = true; | |
c = v->a + v->b; | |
} | |
else { | |
*ok = false; //not ok, so don't expect anything from c | |
} | |
return c; |
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
func prepareNonuniform(size int) []int { | |
samples := make([]int, size, size) | |
for i := 0; i < size; i++ { | |
for { | |
grg := gaussian() | |
index := int(((2.0 + grg) / 4.0) * float64(size-1)) | |
if (index >= 0) && (index < size) { | |
samples[i] = index | |
break | |
} |
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/python | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
import thread | |
import time | |
PORT_NUMBER = 80 | |
exitFlag = False |
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/etc/NetworkManager/NetworkManager.conf b/etc/NetworkManager/NetworkManager.conf | |
new file mode 100644 | |
index 0000000..28ab439 | |
--- /dev/null | |
+++ b/etc/NetworkManager/NetworkManager.conf | |
@@ -0,0 +1,19 @@ | |
+# Configuration file for NetworkManager. | |
+# | |
+# See "man 5 NetworkManager.conf" for details. |
English (pretentious windbags), Scottish (Incoherent lunatics), Welsh (unpretentious windbags) and the Northern Irish (coherent lunatics).
There are in fact only two separate nations: Remainians (smug elitists) and Brexiters (racist halfwits).
Source https://www.quora.com/What-are-the-biggest-myths-about-being-British
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
arkady@sub4:~/go/src/gitlab-il.cyren.io/amiasnikov/mssql-connector$ | |
arkady@sub4:~/go/src/gitlab-il.cyren.io/amiasnikov/mssql-connector$ tail -f trace.log | |
SCHED 55471ms: gomaxprocs=4 idleprocs=2 threads=12 spinningthreads=1 idlethreads=2 runqueue=0 [0 0 0 0] | |
SCHED 56467ms: gomaxprocs=4 idleprocs=4 threads=11 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 0] | |
SCHED 55974ms: gomaxprocs=4 idleprocs=4 threads=12 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 0] | |
SCHED 56971ms: gomaxprocs=4 idleprocs=4 threads=11 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 0] | |
SCHED 56478ms: gomaxprocs=4 idleprocs=4 threads=12 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 0] | |
SCHED 57474ms: gomaxprocs=4 idleprocs=4 threads=11 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 0] | |
SCHED 56981ms: gomaxprocs=4 idleprocs=4 threads=12 spinningthreads=0 idlethreads=4 runqueue=0 [0 0 0 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 TestData struct { | |
i int | |
k int | |
} | |
func getIfc(data TestData) interface{} { | |
return data | |
} | |
func getMyData(b *testing.B, ifc interface{}, expected TestData) TestData { |
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
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "Firefox", | |
"version": "72.0.1" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "72.0.1" |