For Anki
For Anki
function preventNumbers(e){
var numCode = (e.keyCode ? e.keyCode : e.which);
if (numCode > 47 && numCode < 58 || numCode > 95 && numCode < 107 ){
e.preventDefault();
}
}
function preventChar(e){
var charCode = (e.keyCode ? e.keyCode : e.which);
if (charCode > 31 && (charCode < 48 || charCode > 57)){
e.preventDefault();
}
}
$(document).ready(function(){
$('#id_nombre, #id_apellido').keypress(function(e) {
preventNumbers(e);
});
$('#id_telefono').keypress(function(e) {
preventChar(e);
});
})
----
megr two strings in js
.......
onChange vue
<input v-model="userName" @change="someHandler"> #learn #vue
-----
:state= "validacionCodigo"
validacionCodigo(){
const value = this.localData.codigo
return !!value && /^\d+$/.test(value)
},
Use .replace(/_/g, "") to remove all underscores or use .replace(/_/g, " ") to
replace them with a space.
sentence case
text: e.charAt(0).toUpperCase() + e.substr(1).toLowerCase() #learn #js
The technical answer is, because your GameObject with the NavMeshAgent component
isn't in contact with a NavMesh. That answer is about as helpful as referring
someone to the docs. (you know who you are)
Long story short, you need these things:
1. A NavMesh.
You bake these in your Terrain.
(Click on the GameObject Terrain, and look in the Navigation tab which isn't
viewable by default.)
2. A NavMeshAgent, which you clearly have, because it's generating the error.
Make sure the NavMeshAgent is touching the NavMesh when your game starts.
(IF it's touching, and you're still getting the error, try waiting a second or two
before enabling this GameObject. I've had this fix issues for me in the past. Seems
like the NavMesh takes a little longer to establish itself than the NavMeshAgent.
Then it's dogs, and cats living together.) #learn #unity
The type or namespace name `List' could not be found. Are you missing a using
directive or an assembly reference?
using UnityEngine;
using System.Collections;
using System.Collections.Generic; #learn #unity
watch:{
'item.someOtherProp'(newVal){
//to work with changes in "myArray"
},
'item.prop'(newVal){
//to work with changes in prop
}
}
#learn #vue