#Dynamic Programming
Just a study of biological sequence and how Dynamic Programming Alignment works
#How to
./dynamicProgramming.py -a ATA -b GATC > result.json
the result is a json that contains contains:
Verifying that +ademar111190 is my blockchain ID. https://onename.com/ademar111190 |
[alias] | |
a = add | |
b = branch | |
bc= checkout -b | |
bb= log --graph --simplify-by-decoration --pretty=format:'%d' --all | |
c = commit | |
cl= clean -f -d | |
d = diff | |
dc= diff --cached | |
e = shortlog --summary --numbered |
.profile_secrets | |
vim |
#!/bin/bash | |
# https://github.com/firebase/firebase-tools | |
# https://firebase.google.com/docs/cloud-messaging/server | |
DEVICE="<< DEVICE TOKEN >>" | |
KEY="<< SERVER KEY>>" | |
JSON=" | |
{ | |
\"to\": \"$DEVICE\", |
import java.util.regex.Pattern; | |
public class Cpf { | |
private static Pattern PATTERN_GENERIC = Pattern.compile("[0-9]{3}\\.?[0-9]{3}\\.?[0-9]{3}\\-?[0-9]{2}"); | |
private static Pattern PATTERN_NUMBERS = Pattern.compile("(?=^((?!((([0]{11})|([1]{11})|([2]{11})|([3]{11})|([4]{11})|([5]{11})|([6]{11})|([7]{11})|([8]{11})|([9]{11})))).)*$)([0-9]{11})"); | |
public static boolean isValid(String cpf) { | |
if (cpf != null && PATTERN_GENERIC.matcher(cpf).matches()) { | |
cpf = cpf.replaceAll("-|\\.", ""); |
out/ |
import kotlin.math.min | |
fun levenshtein(lhs : CharSequence, rhs : CharSequence) : Int { | |
if(lhs == rhs) { return 0 } | |
if(lhs.isEmpty()) { return rhs.length } | |
if(rhs.isEmpty()) { return lhs.length } | |
val lhsLength = lhs.length + 1 | |
val rhsLength = rhs.length + 1 |
import android.support.v7.widget.RecyclerView; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener { | |
private GestureDetector mGestureDetector; | |
public RecyclerItemClickListener(Context context) { | |
mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() { |
#Dynamic Programming
Just a study of biological sequence and how Dynamic Programming Alignment works
#How to
./dynamicProgramming.py -a ATA -b GATC > result.json
the result is a json that contains contains:
[user] | |
email = [email protected] | |
name = Ademar Alves de Oliveira | |
[push] | |
default = simple | |
[alias] | |
a = add | |
b = branch | |
c = commit | |
d = diff |