Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/ecos.c b/src/ecos.c
index 0dc8d5e..6b8780e 100644
--- a/src/ecos.c
+++ b/src/ecos.c
@@ -28,6 +28,8 @@
/* NEEDED FOR SQRT ----------------------------------------------------- */
#include <math.h>
+#include <unistd.h>
+
#!/usr/bin/env python
import cvxpy as cp
from cvxpy.settings import OPTIMAL, OPTIMAL_INACCURATE
from math import sqrt
from typing import *
Vbase = 231
Sbase = 1e6
Event: time 1496090884.015268, type 3 (EV_ABS), code 2 (ABS_Z), value 33
Event: time 1496090884.015268, -------------- SYN_REPORT ------------
Event: time 1496090884.033053, type 3 (EV_ABS), code 2 (ABS_Z), value 42
Event: time 1496090884.033053, -------------- SYN_REPORT ------------
Event: time 1496090884.060590, type 3 (EV_ABS), code 2 (ABS_Z), value 50
Event: time 1496090884.060590, -------------- SYN_REPORT ------------
Event: time 1496090884.076518, type 3 (EV_ABS), code 2 (ABS_Z), value 59
Event: time 1496090884.076518, -------------- SYN_REPORT ------------
Event: time 1496090884.112718, type 3 (EV_ABS), code 2 (ABS_Z), value 67
Event: time 1496090884.112718, -------------- SYN_REPORT ------------
@dset0x
dset0x / rcS
Created February 21, 2017 10:41
[root@(none) root]# cat /etc/init.d/rcS
#!/bin/sh
#KSM20160909
if [ ! -e /bin/kobo_config.sh ]; then
PRODUCT="trilogy"
else
PRODUCT=`/bin/kobo_config.sh`;
@dset0x
dset0x / rcS
Created February 21, 2017 10:41
[root@(none) root]# cat /etc/init.d/rc/S
cat: can't open '/etc/init.d/rc/S': No such file or directory
[root@(none) root]# cat /etc/init.d/rcS
#!/bin/sh
#KSM20160909
if [ ! -e /bin/kobo_config.sh ]; then
PRODUCT="trilogy"
@dset0x
dset0x / k
Created November 5, 2014 12:31
type: map
mapping:
name:
type: str
required: True
check:
type: str
required: True
arguments:
type: map
@dset0x
dset0x / y
Created November 5, 2014 12:31
---
name: check_mandatory_fields
check: checker/mandatory.py
arguments:
fields: ["001%%_", "005%%_"]
---
name: check_utf8
check: checker/utf8.py
options:
consider_deleted_records: true