Skip to content

Instantly share code, notes, and snippets.

View mvargasmoran's full-sized avatar

Demetrio mvargasmoran

View GitHub Profile
@mvargasmoran
mvargasmoran / Playing-with-ellipsis.markdown
Created February 12, 2015 04:41
Playing with ellipsis
@mvargasmoran
mvargasmoran / index.html
Created February 12, 2015 04:11
JS Bin Background-color ramdomizer // source http://jsbin.com/bohore
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Background-color ramdomizer">
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body{
background-color: coral;
transition: all ease 0.5s;
@mvargasmoran
mvargasmoran / gist:e4742691a575826f23d3
Created October 17, 2014 13:07
Seconds to human readable
<?php
function secondsToTime($seconds) {
$dtF = new DateTime("@0");
$dtT = new DateTime("@$seconds");
return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
}
echo secondsToTime(1640467);
@mvargasmoran
mvargasmoran / index.html
Created August 29, 2014 23:23
anchors fill its father, so its easier on mobile // source http://jsbin.com/rediti/1
<!DOCTYPE html>
<head>
<meta name="description" content="anchors fill its father, so its easier on mobile" />
<title></title>
<style id="jsbin-css">
.std {
width: 200px;
border: solid 1px green;
height: 50px;
<!DOCTYPE html>
<head>
<title></title>
<style id="jsbin-css">
.std {
width: 200px;
border: solid 1px green;
height: 50px;
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@mvargasmoran
mvargasmoran / dabblet.css
Created November 4, 2013 15:57
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
/**
* Diablo2 assassin
w 4163 23 h 2252 16
*/
@mvargasmoran
mvargasmoran / dabblet.css
Created November 4, 2013 15:25
¡Asteroid!
/**
* ¡Asteroid!
8192 128
*/
@keyframes motion{
from{ background-position: 0 0; }
to{ background-position: -8192px 0;}
}
@mvargasmoran
mvargasmoran / dabblet.css
Created November 4, 2013 15:25
¡Asteroid!
/**
* ¡Asteroid!
8192 128
*/
@keyframes motion{
from{ background-position: 0 0; }
to{ background-position: -8192px 0;}
}