For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
/* | |
The program only creates two collections and then prints it together. | |
By not using "yield return", it is required to do everything manually, as the IEnumerable and IEnumerator interfaces must be implemented to iterate over the collection. | |
The intent of this code is to show that the use of "yield return" is extremely necessary as it saves work. | |
Most of this work is done internally by the compiler. | |
*/ | |
using System; | |
using System.IO; | |
using System.Collections.Generic; |
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
using System; | |
namespace ReplaceALL | |
{ | |
class Program | |
{ | |
static string ReplaceAll(string str, string palabra_reemplazar, string palabra) | |
{ | |
string aux = "", aux1 = ""; | |
int len = str.Length, correcto = palabra_reemplazar.Length, j = 0; |
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
#include <stdio.h> | |
#include <stdint.h> | |
#define MAX_NUM (50) | |
void SerieFibonacci() | |
{ | |
const char* const as = "*****"; | |
const char* j = as + 4; | |
uint64_t value_ant = 0; | |
uint64_t value_sig = 1; |
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
prim = 1 | |
ant = 0 | |
c = "*" | |
d = 0 | |
r = int(input("Ingrese el rango a terminar para la sucesión de Fibonacci.")) | |
for i in range(0,r): | |
if d >=1 and d<=4: | |
c+="*" | |
else: | |
d = 0 |
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
#ifndef _BUBBLESORT_H | |
#define _BUBBLESORT_H | |
int BubbleSort(int*const parray, const int size) | |
{ | |
int count; //contar iteraciones. | |
int total = 0; //total de iteraciones. | |
int* i; | |
int* psize = parray + size; | |
int aux; |
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
using System; | |
using System.Collections.Generic; | |
class ListP | |
{ | |
private int data; | |
public int getData() { return data; } | |
public void setData(int data) | |
{ | |
this.data = data; |