View time_elapsed_string
This file contains 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 | |
function time_elapsed_string($ptime){ | |
$etime = time() - $ptime; | |
if ($etime < 1) | |
return '0 seconds'; | |
$a = array( 12 * 30 * 24 * 60 * 60 => 'año', | |
30 * 24 * 60 * 60 => 'meses', | |
24 * 60 * 60 => 'día', |
View edo_gto_svg1.1
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg version="1.1" id="Grupo_1_1_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |
width="752px" height="621px" viewBox="0 0 752 621" enable-background="new 0 0 752 621" xml:space="preserve"> | |
<g id="Manuel_Doblado_xA0_Imagen_1_"> | |
<g> | |
<g> | |
<!-- A --> | |
<path class="abasolo" fill-rule="evenodd" clip-rule="evenodd" fill="#DEDEDC" d="M156,345c0.541,3.541-3.541,2.459-3,6 | |
c2.245,0.989,10.633-1.473,13,2c3.719,1.053,1.961-3.372,4-4c2.409-0.409,2.174,1.826,5,1c-5.166,4.57,1.498,9.9-3,16 |
View gist:cf8bcd0e0f6ccdd0ab00
This file contains 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
function getGetOrdinal(n) { | |
var s=["th","st","nd","rd"], | |
v=n%100; | |
return n+(s[(v-20)%10]||s[v]||s[0]); | |
} |
View SassMeister-input-HTML.html
This file contains 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
<header> | |
<h1>Demo</h1> | |
</header> | |
<section class="content"> | |
<p>Hello There!</p> | |
<a href="#">Click me!</a> | |
</section> | |
<footer> | |
<p>This is a footer</p> | |
</footer> |
View .htaccess
This file contains 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
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes... | |
RewriteRule ^(.*)/$ /$1 [L,R=301] |
View Vagrantfile
This file contains 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
Vagrant.configure("2") do |config| | |
config.vm.define "webserver" do |webserver| | |
webserver.vm.box = "hashicorp/precise64" | |
webserver.vm.network "private_network", ip: "192.168.0.2" | |
webserver.vm.hostname = "webserver" | |
end |
View breakpoints.scss
This file contains 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
// Breakpoints | |
$break360: 22.500em; | |
$break479: 29.938em; | |
$break480: 30em; | |
$break600: 37.500em; | |
$break640: 40em; | |
$break641: 40.063em; | |
$break767: 47.938em; | |
$break768: 48em; | |
$break769: 48.063em; |
View thatguy.js
This file contains 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
console.log( | |
String.fromCharCode(175,92,95,40,12484,41,95,47,175) | |
); |
View bash_profile.setup
This file contains 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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[36m\]\u\[\033[m\]\[\033[33;1m\]\w\[\033[m\]\[\033[32m\]\$(parse_git_branch)\[\033[00m\]$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
View delete_git_branches.txt
This file contains 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
git branch | grep -v "master" | xargs git branch -D |
OlderNewer