Skip to content

Instantly share code, notes, and snippets.

View ValLR's full-sized avatar
🐈‍⬛

Valentina López ValLR

🐈‍⬛
  • Chile
View GitHub Profile
anonymous
anonymous / draganddrop.js
Created March 4, 2018 18:01
This contains the demo tutorial for drag and drop in react using HTML 5 dragable interface for the youtube video https://www.youtube.com/watch?v=z2nHLfiiKBA
import React,{Component} from 'react'
const styles = {
left : {
width: '250px',
height: '150px',
border: '1px solid #DCDCDC',
float: 'left'
},
right : {
@gokulkrishh
gokulkrishh / media-query.css
Last active October 28, 2025 18:36
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@gaulatti
gaulatti / validarRUT.html
Last active June 15, 2023 15:12
HTML5 Chilean RUT Validator
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Validador de RUT HTML5</title>
</head>
<body>
<form>
<input type="text" id="rut" name="rut" required oninput="checkRut(this)" placeholder="Ingrese RUT">
<button type="submit">Validar RUT y Enviar Form</button>
@mathewbyrne
mathewbyrne / slugify.js
Created October 12, 2011 04:34
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}