- Servidor Mysql
- Instalar Python 3+
- Instalar dependencias de python, pandaz, mysql, alive-progress
$> pip install mysql-connector-python
$> pip install pandas
$> pip install alive-progress
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
// | |
// CircularSlider.swift | |
// CircularSliderTest | |
// | |
// Created by Tarlan Ismayilsoy on 28.08.22. | |
// | |
import SwiftUI | |
// MARK: - CircularSlider |
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
//<canvas><canvas> | |
function degreeToradians(degrees) { | |
return degrees * Math.PI / 180; | |
} | |
function getPosition(centerX, centerY, radius, endAngle) { | |
// Calculamos las coordenadas x e y del punto final del arco. | |
var x = centerX + radius * Math.cos(endAngle); | |
var y = centerY + radius * Math.sin(endAngle); |
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
// | |
// ContentView.swift | |
// Airdrop Demo | |
// | |
// Created by Daniel Kuntz on 7/30/23. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
package com.codelaby.mapviewer | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import android.location.Location | |
import android.os.Looper | |
import android.util.Log | |
import androidx.lifecycle.LiveData | |
import com.google.android.gms.location.* |
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
package com.codelaby.mapviewer | |
import android.Manifest | |
import android.content.Context | |
import android.content.pm.PackageManager | |
import android.location.Location | |
import android.location.LocationListener | |
import android.location.LocationManager | |
import android.os.Build | |
import android.os.Bundle |
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 android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.view.Gravity; | |
import android.widget.TextView; | |
/** | |
* Simple version used in the article: |
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 os | |
from sty import fg, bg, ef, rs | |
from pytube import YouTube | |
from pathlib import Path | |
import re | |
import inquirer | |
def cError(text): return fg.red + text + fg.rs | |
def cWarging(text): return fg.da_yellow + text + fg.rs |
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 datetime | |
from dateutil.tz import gettz | |
class RegionTZ: | |
def __init__(self, name, tz, flag=None): | |
self.name = name | |
self.tz = gettz(tz.strip()) | |
if flag is None: | |
flag = self.name | |
self.flag = flag |
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
from datetime import datetime, timedelta | |
from datetime import date | |
class AppGplay: | |
def __init__(self, name, startDate, endDate=None): | |
self.name = name | |
self.startDate = startDate | |
if endDate is None: | |
endDate = self.startDate + timedelta(days=7) | |
self.endDate = endDate |
NewerOlder