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
let text = 'hello :name; ok :name2; ok2' | |
let the_value_to_search = ':' | |
let the_value_to_search2 = ';' | |
let the_new_value_to_replace = '+' | |
let regex_between = new RegExp(`${the_value_to_search}(.*?)${the_value_to_search2}`, 'gi'); | |
const matches = text.matchAll(regex_between); | |
let the_text_end = Array.from(matches, x => x[1]).join(the_new_value_to_replace).toString(); | |
console.log(the_text_end); |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerController : MonoBehaviour { | |
public float speed; | |
public float jumpForce; | |
private float moveInput; |
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 { Component, OnInit } from '@angular/core'; | |
import { FormBuilder, FormGroup, FormControl, Validators, ValidatorFn, ValidationErrors, AbstractControl } from '@angular/forms'; | |
import { Router } from '@angular/router'; | |
import { AuthService } from '@core/services/auth/auth.service'; | |
@Component({ | |
selector: 'app-page-config', | |
templateUrl: './page-config.component.html', | |
styleUrls: ['./page-config.component.scss'] | |
}) |
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 { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
const routes: Routes = []; | |
@NgModule({ | |
imports: [RouterModule.forChild(routes)], | |
exports: [RouterModule] | |
}) | |
export class PagesblankRoutingModule { } |
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
$(document).ready(function () { | |
//"parentId": null, | |
var menuItems = { | |
"menu-6": { | |
"id": "menu-6", | |
"link_text": "Docs", | |
}, | |
"menu-7": { | |
"id": "menu-7", |
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
@if ($tipo_de_post == 'ultimos_post_de_idioma') | |
<?php | |
$cantidad_de_post = get_sub_field('cantidad_de_post') + 10; | |
$ultimos_post_de_idiomas = get_sub_field('ultimos_post_de_idiomas'); | |
$id_of_series = []; | |
$list_of_series = get_posts([ | |
'post_type' => 'post', | |
'posts_per_page' => $cantidad_de_post, |
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
Verifying my Blockstack ID is secured with the address 1AJaGSMANZMwaFLRnaoxGBbePVm3sXQdXE https://explorer.blockstack.org/address/1AJaGSMANZMwaFLRnaoxGBbePVm3sXQdXE |
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
<?php | |
/** | |
* Función recursiva que busca una palabra dentro de los archivos html | |
* contenidos en nuestro servidor. | |
* | |
* http://www.lawebdelprogramador.com | |
*/ | |
set_time_limit(300); | |
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
<?php | |
//Creá una clase Perro | |
class Perro{ | |
//Agregá una propiedad public que se llame | |
//$cantidadDePatas, que almacena el valor 4 en la clase Perro | |
public $cantidadDePatas = 4; | |
//Agregá otra propiedad Public que se llame $nombre, | |
//que no contenga ningún valor | |
public $nombre; | |