Skip to content

Instantly share code, notes, and snippets.

from flask import Flask
from flask import request
from flask import Response
from flask import send_file
from flask import abort
import json
import os
app = Flask(__name__)
import pandas as pd
import json
import os
from google.api_core import retry
from google.cloud import bigquery
from google.cloud import storage
PROJECT_ID = os.getenv('GCP_PROJECT')
@jallum
jallum / 1.zip
Last active July 8, 2019 15:12
this is a test
This file has been truncated, but you can view the full file.
@jallum
jallum / 43615960debeae766816a93b1365f25817b2a33c.mp4
Last active September 10, 2019 01:11
Adaptive Background Subraction on Video Example
This file has been truncated, but you can view the full file.
diff --git a/src/image.cpp b/src/image.cpp
index 495293e..b135704 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -11,7 +11,7 @@
#include <immintrin.h>
#endif
-#ifdef ANDROID
+#if defined (ANDROID) || (defined (__linux__) && !defined (__x86_64__))
public static String decapitalize(String name) {
if (name == null || name.length() == 0) {
return name;
}
if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) &&
Character.isUpperCase(name.charAt(0))){
return name;
}
char chars[] = name.toCharArray();
chars[0] = Character.toLowerCase(chars[0]);