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
if(Modernizr){ | |
if (!Modernizr.svg || !Modernizr.backgroundsize) { | |
Y.all("img[src$='.svg']").each(function(node) { | |
node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png'); | |
}); | |
} | |
} |
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
core.setEqualHeight = function() { | |
var maxHeight = 0; | |
var heightArray = Array(); | |
var collection = Y.all('.equal-height'); | |
collection.each(function(node) { | |
node.all(' > div, > ul li').each(function(node) { | |
if(node.get('clientHeight') > maxHeight){ | |
maxHeight = node.get('clientHeight'); | |
} | |
}); |
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
this.appSearch = function($query){ | |
if($query != ''){ | |
var listFilesContents = ''; | |
fileList = _parent.fileSystem.getFiles(); | |
var listContents = ''; | |
var i = this.totalApps.length; | |
var tempArray = new Array(); | |
var patt1 = new RegExp($query,"gi"); | |
while(i--){ | |
tempArray = this.totalApps[i].name.match(patt1); |
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 | |
$loggedIn = false; | |
if (isset($_POST["user"]) && !empty($_POST["user"]) && isset($_POST["pass"]) && !empty($_POST["pass"])) { | |
$user = $_POST["user"]; | |
$password = "a"; // This is the password to view images | |
$value = $_POST["pass"]; | |
if (strtolower($value) == $password) { // Check the password matches the value | |
$loggedIn = true; |
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 submodule add -b v0.0.55 -- git@github.com:ubuntudesign/vanilla-framework.git _sass/vanilla-framework |
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 submodule update |
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
<div class="container"> | |
<header class="header"> | |
<nav> | |
<ul class="header__menu"> | |
<li class="header__menu-item">item 1</li> | |
<li class="header__menu-item">item 2</li> | |
<li class="header__menu-item">item 3</li> | |
</ul> | |
</nav> | |
<h1 class="header__title">indiatimes</h1> |
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
body { | |
background-color: #57B136; | |
font-family: Arial; | |
} | |
.container { | |
width: 600px; | |
box-shadow: 0 0 20px 10px rgba(0, 0, 0, .1); | |
margin: 40px; | |
background-color: white; |
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
# To get the IPV4 IP | |
nmcli dev show | grep DNS | |
sudo vim /lib/systemd/system/docker.service | |
# Add dns flag to ExecStart | |
ExecStart=/usr/bin/docker daemon --dns 8.8.8.8 --dns 10.20.64.1 -H fd:// | |
sudo systemctl daemon-reload | |
sudo service docker restart |
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
/* | |
* Temporary styles to fix some inconsistencies between the latest markup and | |
* changes in cloud-vanilla-theme. | |
*/ | |
.inline-list li { | |
display: inline-block; | |
} | |
.wrapper { |
OlderNewer