This file contains 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
import rawpy | |
import imageio | |
import os | |
from os.path import join, getsize | |
input_path_dir = 'input' | |
output_path_dir = 'output' | |
for root, dirs, files in os.walk(input_path_dir): |
This file contains 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 gists shows the steps made for compiling ZLD without calling make clean as first command in the repository |
This file contains 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 gist shows the steps followed and the issues during ZLD compilation |
This file contains 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 python3 | |
# -*- coding: utf-8 -*- | |
# | |
# This file is part of urlwatch (https://thp.io/2008/urlwatch/). | |
# Copyright (c) 2008-2016 Thomas Perl <thp.io/about> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: |
This file contains 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
^(?!.*(AbsListView|skia|ProgressBar|IInputConnectionWrapper|dalvikvm|MoreInfoHPW_ViewGroup|MotionRecognitionManager)).*$ |
This file contains 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
boolean saveToDb() { | |
String hostname = mHostnameField.getText().toString().trim(); | |
String portStr = mPortField.getText().toString().trim(); | |
int port = -1; | |
int result = validate(hostname, portStr); | |
if (result > 0) { | |
showError(result); | |
return false; |
This file contains 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
public static double listenForNewVolume(double calibValue) { | |
AudioRecord ar = findAudioRecord(); | |
int BUFFSIZE = AudioRecord.getMinBufferSize(ar.getSampleRate(), ar.getChannelConfiguration(), | |
ar.getAudioFormat()) * 2; | |
Log.v("AV", "Post new " + BUFFSIZE); | |
double splValue = 0.0; | |
double rmsValue = 0.0; | |
double retSpl = 0; | |
try { |