tuplas

#Una tupla no se puede modificar, es inmutable
tupla = ('string', 10, 4.3, False, [1,2,3])

print(tupla)

#indice
print(tupla[2])

#subtupla

subtupla = tupla[0:2]
print(subtupla)

#clonar tupla

subtupla1 = tupla[:]
print(subtupla1)


#pasar lista a tupla
lista = ['cesar', 'karina', 'victor']

newtupla = tuple(lista)

print(newtupla)


#pasar tupla a lista
niveles = ('basico', 'intermedio', 'avanzado')
newlista = list(niveles)
print(newlista)


#desempaquetando o descomprimir tuplas  == es igua

listas

#Una lista es un array
lista = ['Cesar', 12, True, 14.3]
print(lista)

#para sacar los indices
print(lista[0])
print(lista[3])

"""
ultimo item seria: -1
en orden inverso los indices seria: -1, -2, -3, -4
"""
print(lista[-1])


#modificar un item
lista[0] = 'David'

print(lista)

#creando sublista
#[start:end] 
#[østart:end_skip]
#start: en que indice comienza
#end: el numero de items a tomar

sublista = lista[0:2]
print(sublista)


#para ir de 2 en 2
sublista1 = lista[::2]
print(sublista1)

#pa

Generalidades

# variable
curso = 'Curso Profesional de Python'


"""
PHYTON
CONSTANTES
EN MAYUSCULAS
"""
TITULO_CURSO = 'Python'

print(TITULO_CURSO)



# Tipo dato string 

"""
Si los textos son muy largos mejor usar
las 3 comillas simples o dobles
"""

mensaje = """Hola esto 'post' es python"""
print(mensaje)



#Operadores relacionales <  >  <=  >=  !=   ==
resultado = 10 < 12
print(resultado)


#Operadores::  and or not

res = True and True
print(res)

res2 = True and False
print(res2)



#Conocer tipo de

Data Clean

# load packages
library(readxl)
library(dplyr)
library(stringr)

# read data and check
hexun_2010_2019 <- read_xlsx(path = "~/../Desktop/X/Old Papers/Download Data/2010-2019年和讯网上市公司社会责任指数.xlsx", 
                             sheet = 1)
hexun_2020 <- read_xls(path = "~/../Desktop/X/Old Papers/Download Data/2020年和讯企业社会责任数据更新.xls")
head(hexun_2010_2019)
head(hexun_2020)

# rearrange columns, add the variable 'year' and remove characters between ()
hexun_2020 <- hexun_2020[, c(1:2, 10, 

BufferedImage与byte[]互转

// 取得BufferedImage
BufferedImage image = ImageIO.read(new File("1.gif"));

Default settings for Links

main p a:not(.button), main li a:not(.button), main div > a:not(.button) {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
header p a:not(.button):hover, header li a:not(.button):hover, header div > a:not(.button):hover, main p a:not(.button):hover, main li a:not(.button):hover, main div > a:not(.button):hover {
    text-decoration: underline;
}
.social-media-container a:hover {
    text-decoration: none !important;
}

Insert social media icons on Contact page

// Insert social media icons on Contact page
jQuery('.block--google-maps-with-address-block .map-container .map-caption').append('<div class="map-caption__social-media mt1"><div class="social-media-container"><a href="[company_profile:node:field_linkedin:uri]" target="_blank"><i class="social-media-icon fi-social-linkedin">&nbsp;</i></a> <a href="[company_profile:node:field_facebook:uri]" target="_blank"><i class="social-media-icon fi-social-facebook">&nbsp;</i></a> <a href="[company_profile:nod

Free Trial Created Deal

When a free trial is created via Zoho Subscriptions.

// 27 oct created
subscriptionID = subscriptions.get("subscription_id");
organizationID = organization.get("organization_id");
customer_id = subscriptions.get("customer_id");
searchParam = {"customer_id":customer_id};
organizationID = "710805279";
get_books_datas = zoho.books.getRecords("Invoices",organizationID,searchParam,"books_connection");
invoicdata = get_books_datas.get("invoices");
if(invoicdata.size() != 0)
{
	for each  invd in invoicdata
	{
		invoiceID = invd.get("invoice

Contact info (default on website) on each team member’s bio pages

<p>
    <strong>E-mail:</strong> <a href="mailto:[company_profile:node:field_company_email:value]" target="_blank">[company_profile:node:field_company_email:value]</a>
    <br>
    <strong>Phone:</strong> <a href="tel:[company_profile:node:field_company_phone:value]">[company_profile:node:field_company_phone:value]</a>
    <br>
    <strong>Mobile:</strong> <a href="tel:[company_profile:node:field_company_mobile:value]">[company_profile:node:field_company_mobile:value]</a>
    <br>
    <strong>To

Assignment 7

Exercise 1 (ungraded). Run the following commands to understand what each one does. If it's not obvious, try reading the Pandas documentation or going online to get more information.

irises.describe() # Prints summary statistics ===

       sepal length  sepal width  petal length  petal width
count    150.000000   150.000000    150.000000   150.000000
mean       5.843333     3.057333      3.758000     1.199333
std        0.828066     0.435866      1.765298     0.762238
min        4.3000

Tidying data

Part 0: Getting the data
Before beginning, you'll need to download several files containing the data for the exercises below.

Exercise 0 (ungraded). Run the code cell below to download the data. (This code will check if each dataset has already been downloaded and, if so, will avoid re-downloading it.)

dataset = {'iris.csv': 'd1175c032e1042bec7f974c91e4a65ae',
           'table1.csv': '556ffe73363752488d6b41462f5ff3c9',
           'table2.csv': '16e04efbc7122e515f7a81a3361e6b87',
     

Estimacion sitio

# Estimación | Clonar Sitio

_27 Octubre de 2021_
##  Clonar Sitio, con las mismas tecnologias actuales para transladar a nuevo servidor o local.
sitoo en Wordpress, Elementor Pro, Essential Addons, Woocomerce (sin uso)*
## Total: ~ 4 Hrs.

- [ ] **Configuración Servidor y Plugins** | ~ 4 Hrs

  - Accesso a Servidor y Base de Datos Por SSH o SFTP 
  - Copia de Archivos Tema Actiuvo, Uploads y Plugins
  - Copia de Base de Datos 
  - Dependiendo de la cantidad de archivos y el metodo de accceso pu

SQL Query for PPO Status by My Shopify URL

SELECT * FROM `users`
WHERE `name` IN ("silverfernbrand-com.myshopify.com",
"futurekind.myshopify.com",
"kids-glasses-jonas-paul-eyewear.myshopify.com",
"ketokrate.myshopify.com",
"hiya-kids.myshopify.com",
"tienda-ecommerce-ii.myshopify.com",
"activation-australia-retail.myshopify.com",
"activation-canada-retail.myshopify.com",
"epigeneticlabs.myshopify.com",
"honest-paws.myshopify.com",
"microbe-formulas.myshopify.com",
"mightyhealth.myshopify.com",
"misumiskincare.myshopify.com",
"the-truth-a

Azure pipeline variable - name value syntax - conditional

variables:
- group: 'my-variable-group'
- name: myfirstadditionalvariable
  value: 100
- name: myconditionalvariable
  ${{ if eq( variables['Build.SourceBranchName'], 'master' ) }}: 
    value: masterBranchValue
  ${{ if ne( variables['Build.SourceBranchName'], 'master' ) }}: 
    value: featureBranchValue

Scroll Depth To Web Android

// Create and hold onto an instance of this class. Calling sendScrollEventsToJS() with will send the ScrollView's scroll events to Nativo's client tracker.
public class WebTrackUtil {

    OnScrollChangedListener observer;

    public void sendScrollEventsToJS(final WebView webView, final ScrollView scrollView) {
        if (scrollView != null && webView != null) {
            observer = new ViewTreeObserver.OnScrollChangedListener() {
                @SuppressLint("DefaultLocale")
             

social URL for social share icons

// SOCIAL URL
<?php
function social_url( $service ) {
	if ( get_field( "_{$service}_url" ) ) {
		$url = esc_url( get_field( "_{$service}_url" ) );
		echo "<a href='$url' target='_blank'><svg><use xlink:href='/ui/svg/social-sprites.svg#social_$service'></use></svg></a>";
	}
}

social_url( 'linkedin' );
?>