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
/**CLEARFIX**/ | |
.cf:before,.cf:after | |
content: " "; | |
display: table; | |
.cf:after | |
clear: both; | |
.cf | |
*zoom: 1; |
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
.drop-shadow.top { | |
box-shadow: 0 -4px 2px -2px rgba(0,0,0,0.4); | |
} | |
.drop-shadow.right { | |
box-shadow: 4px 0 2px -2px rgba(0,0,0,0.4); | |
} | |
.drop-shadow.bottom { | |
box-shadow: 0 4px 2px -2px rgba(0,0,0,0.4); |
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 | |
ob_start(); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</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
hasStorage = -> | |
try | |
mod = new Date | |
localStorage.setItem mod, mod.toString() | |
result = localStorage.getItem(mod) == mod.toString() | |
localStorage.removeItem mod | |
return result | |
if !hasStorage() |
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
window.templates = {} | |
window.SimpleTemplate = (template, data)-> | |
if !window.templates[template] | |
window.templates[template] = template | |
return template.replace /\{([a-zA-Z0-9_\.-]*)\}/ig, (x,s)-> | |
return eval('data.'+s) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Consola improvisada</title> | |
</head> | |
<body> | |
<?php if(isset($_POST['code'])) { ?> | |
Result: |
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 | |
setlocale(LC_ALL, 'en_US.UTF8'); | |
function toAscii($str, $replace=array(), $delimiter='-') { | |
if( !empty($replace) ) { | |
$str = str_replace((array)$replace, ' ', $str); | |
} | |
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str); | |
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean); |
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
$resets: margin, padding; | |
$postfixes: top, bottom, left, right; | |
@each $reset in $resets{ | |
.reset-#{$reset}{ | |
#{$reset}: 0; | |
@each $prop in $postfixes{ | |
&-#{$prop}{ #{$reset}-#{$prop}: 0; } | |
} | |
} |
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
@font-face { | |
font-family: 'Glyphicons Halflings'; | |
src: url(asset_base64('admin/fonts/glyphicons-halflings-regular.eot')); | |
src: url(asset_base64('admin/fonts/glyphicons-halflings-regular.eot')) format('embedded-opentype'), | |
url(asset_base64('admin/fonts/glyphicons-halflings-regular.woff2')) format('woff2'), | |
url(asset_base64('admin/fonts/glyphicons-halflings-regular.woff')) format('woff'), | |
url(asset_base64('admin/fonts/glyphicons-halflings-regular.ttf')) format('truetype'), | |
url(asset_base64('admin/fonts/glyphicons-halflings-regular.svg')) format('svg'); | |
} |
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
.col-sm-6 | |
= f.label :mobile_hero, 'Mobile Hero Image' | |
= image_tag explore_content.mobile_hero.url, class: 'image_preview' | |
= f.file_field :mobile_hero | |
br | |
#ESTO VA ANTES DEL :hero_text, 'Hero text:', c EN EL MISMO FILE |
OlderNewer