Skip to content

Instantly share code, notes, and snippets.

View andarms's full-sized avatar
🏠
Working from home

Adrian andarms

🏠
Working from home
View GitHub Profile
<template>
<div id="page-wrapper">
<el-menu default-active="0" class="el-menu-vertical-demo" :collapse="isCollapse">
<el-menu-item index="0">
<i class="fas fa-home"></i>
<span slot="title">Inicio</span>
</el-menu-item>
<el-submenu index="1">
<template slot="title">
<i class="fas fa-truck"></i>
@andarms
andarms / balanced_breackest_v2.js
Last active April 2, 2019 23:10
v2 ahora si verifica correctamente casos como ([{}()]) y más complejos, sin embargo hay que recorrer todo el string.
var input1 = "{[()]}";
var input2 = "{[({}])}";
var input3 = "{{[[(())]]}}";
var input4 = "{[({{}[((({({})}))]}]])}";
var input5 = "([{}()])";
var input6 = "([{}()]()[])";
const matches = {
"{": "}",
"(": ")",
using UnityEngine;
public class TouchMovement : MonoBehaviour
{
public float Speed = 0.4f;
void Update()
{
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);