Skip to content

Instantly share code, notes, and snippets.

@Zurc
Zurc / Navnimation.markdown
Created August 21, 2013 14:50
A CodePen by Zurc.
@Zurc
Zurc / Navnimation.markdown
Created August 21, 2013 15:12
A CodePen by Zurc.
@Zurc
Zurc / A-Pen-by-Zurc.markdown
Created September 18, 2013 08:19
A Pen by Zurc.

Json list to website colourful boxes...

Given a JSON object list i'm trying to write the code to display it on a website with this format:

  • A User ID Tag is a 300x300px square filled with the tag background color.
  • I want to display a User ID Tag for each user.
  • The users should be sorted by their IDs.
  • The tag background colors should be randomly picked - different for each user and different with every refresh.
  • On mouse-over each tag should change to have white background and display user name, mention name and email in black in different lines.
  • On mouse-out I want to come back to random background-color

Json list to website colourful boxes...

Given a JSON object list i'm trying to write the code to display it on a website with this format:

  • A User ID Tag is a 300x300px square filled with the tag background color.
  • I want to display a User ID Tag for each user.
  • The users should be sorted by their IDs.
  • The tag background colors should be randomly picked - different for each user and different with every refresh.
  • On mouse-over each tag should change to have white background and display user name, mention name and email in black in different lines.
  • On mouse-out I want to come back to random background-color
@Zurc
Zurc / index.html
Created January 3, 2014 18:09
A Pen by Zurc.
<input type="text" id="name" placeholder="new link name">
<input type="text" id="url" placeholder="www.example.com">
<input type="button" id="addLink" value="add link">
<div id="linkList">
<div>
<a href="http://www.lavoz.com.ar" target="ventana">La Voz del Interior</a>
<input type="button" id="removeLink" class ="removeLink" value="x">
</div>
<div>
@Zurc
Zurc / dabblet.css
Last active August 29, 2015 14:11
shadows with CSS
/**
* shadows with CSS
*/
#box{
width: 300px;
height: 500px;
overflow: scroll;
margin: 1em calc((100% - 300px)/2);
background:
linear-gradient(hsla(0, 0%, 100%, 0) 15px, white 40px),
// Paul Irish talking about Chrome DevTools Timeline's new Frame Mode
http://www.youtube.com/watch?v=Vp524yo0p44
// Chrome Office Hours - troubleshooting paint times
http://www.youtube.com/watch?v=z0_jD8nO5Zw
// Break time to glass - youtube
http://youtu.be/Il4swGfTOSM
// Avoiding Unnecessary Paints
@Zurc
Zurc / html5.html
Last active August 29, 2015 14:18
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">