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 function search() | |
{ | |
Console::log($this->input->get_post('search_feeds')); | |
$data = array( | |
'search_feeds' => $this->input->get_post('search_feeds') | |
); | |
Console::log($data); | |
$this->form_validation->set_data($data); |
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
// Test for nth-child(...n) support | |
Modernizr.testStyles(" #modernizr div:nth-child(3n){width:10px;} ", function(elem, rule){ | |
var bool = false, divs = elem.getElementsByTagName("div"); | |
if (divs.length == 7){ | |
var test = window.getComputedStyle ? function(i){ | |
return getComputedStyle(divs[i], null)["width"] == "10px"; | |
} : function(i){ | |
return divs[i].currentStyle["width"] == "10px"; | |
}; | |
bool = !test(0) && !test(1) && test(2) && !test(3) && !test(4) && test(5) && !test(6); |
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
#!/bin/bash | |
mkdir /tmp/chromedownload && cd /tmp/chromedownload | |
curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST -o /tmp/chromedownload/LATEST --silent && LATEST=`cat /tmp/chromedownload/LATEST` | |
curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/$LATEST/chrome-mac.zip -o /tmp/chromedownload/chrome-mac.zip --silent | |
unzip -qq /tmp/chromedownload/chrome-mac.zip | |
cp -R /tmp/chromedownload/chrome-mac/Chromium.app /Applications | |
rm -rf /tmp/chromedownload |
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
// ---------------------------------------------------------------------------- | |
// markItUp! | |
// ---------------------------------------------------------------------------- | |
// Copyright (C) 2008 Jay Salvat | |
// http://markitup.jaysalvat.com/ | |
// ---------------------------------------------------------------------------- | |
// Html tags | |
// http://en.wikipedia.org/wiki/html | |
// ---------------------------------------------------------------------------- | |
// Basic set. Feel free to add more tags |
NewerOlder