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
var query1 = "INSERT INTO tempoPerson (nombre, paterno) VALUES ('Jorge', 'Toribio');"; | |
var query2 = "INSERT INTO tempoPerson (nombre, paterno) VALUES ('David', 'Lalane');"; | |
var query3 = "INSERT INTO tempoPerson (nombre, paterno) VALUES ('Robert', 'Bloom');"; | |
using (SqlConnection connection = new SqlConnection(strConn)) | |
{ | |
connection.Open(); | |
SqlTransaction transaction = connection.BeginTransaction(); |
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
<!-- https://stackoverflow.com/questions/5197892/add-shadow-to-custom-shape-on-android --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
<!-- "background shadow" --> | |
<item> | |
<shape android:shape="rectangle" > | |
<solid android:color="#000000" /> | |
<corners android:radius="15dp" /> | |
</shape> |
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
void main() { | |
final taxId = ''; // Escribe los 10 primeros caracteres del RFC | |
final lastDigit = calculateVerifierDigit(taxId); | |
print('El último dígito debe ser $lastDigit'); | |
} | |
String calculateVerifierDigit(String taxId) { | |
const dictionary = '0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ Ñ'; | |
final index = taxId.length + 1; | |
var sum = 0; |