This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta charset="UTF-8"> | |
<title>MemoColor</title> | |
<link rel="stylesheet" href="..."> | |
<style> | |
.demoColor { | |
height: 100px; | |
} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace datetest | |
{ | |
class MainClass | |
{ | |
public static string diffStr(DateTime desde, DateTime asta) { | |
TimeSpan tsDiff = diff(desde,asta); | |
DateTime deteDiff = new DateTime(1,1,1); | |
deteDiff = deteDiff.Add(tsDiff); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acron: function(dateIn,dateFrom) { | |
if (typeof dateIn) dateIn = new Date(dateIn); | |
if (!dateFrom) dateFrom = new Date(); | |
if (!dateIn) dateIn = new Date(); | |
var out = '',diff = dateFrom - dateIn; | |
if (diff > (365*24*60*60*1000)) { | |
out = (diff/(365*24*60*60*1000)).toFixed(0)+"y"; | |
} else if (diff > (24*60*60*1000)) { | |
out = (diff/(24*60*60*1000)).toFixed(0)+"d"; | |
} else if (diff > (60*60*1000)) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ratio ratio-1by1"> | |
<img src="http://lorempixel.com/600/1200/food" data-model="width" alt="" class="ratio-item"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Comment extends Eloquent | |
{ | |
public function format_time() { | |
$dateIn = strtotime($this->updated_at); | |
$dateFrom = time(); | |
$out = ''; | |
$diff = $dateFrom - $dateIn; | |
if ($diff > (365*24*60*60)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int getSumaConsecutivaInpares(int nSuma) { | |
int sumatoria = 0; | |
for (int i = 0 ; i <= nSiclo ; i++) { | |
// Busca si es impar | |
if ((i%2) == 1) { | |
sumatoria = sumatoria + i; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int getSumaConsecutivaInpares() { | |
int nSuma = 4; | |
int sumatoria = 0; | |
for (int i = 0 ; i <= nSiclo ; i++) { | |
// Busca si es impar | |
if ((i%2) == 1) { | |
sumatoria = sumatoria + i; | |
} |
OlderNewer