adb shell am force-stop
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
public class StereoVolumeProcessor implements AudioProcessor { | |
private int channelCount; | |
private int sampleRateHz; | |
private int[] pendingOutputChannels; | |
private boolean active; | |
private int[] outputChannels; | |
private ByteBuffer buffer; | |
private ByteBuffer outputBuffer; |
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
CREATE OR REPLACE FUNCTION categorySyncLogUpdate() | |
RETURNS trigger AS $$ | |
BEGIN | |
INSERT INTO shared.sync_logs(record_id,record_type,log_type) VALUES (NEW.id,1,2); | |
RETURN NEW; | |
END; | |
$$ LANGUAGE 'plpgsql'; | |
CREATE TRIGGER update_category_sync_log AFTER UPDATE ON jobs.categories FOR EACH ROW | |
EXECUTE PROCEDURE categorySyncLogUpdate(); |
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
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* 24 Jan, 2018 | |
* Parses MPESA SMS String through simple String manipulation. And a tiny bit of regex :-D | |
*/ | |
public class SillyMpesaMessageParser { |