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
/* Paste into console */ | |
window.party=function(){if(window.$==undefined)return"You need jQuery to party!";var $mask,$video;$mask=$('<div style="position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: #000; background-image: url(http://i.imgur.com/1bxqLXC.jpg); opacity: 0.9; background-size: cover; z-index: 1000;" />');$video=$('<iframe width="420" height="315" src="//www.youtube.com/embed/bDbpzjbXUZI?autoplay=1" frameborder="0" allowfullscreen style="position:absolute; top: 50%; left: 50%; margin-left: -210px; margin-top:-150px; z-index:1005;"></iframe>'); | |
$mask.appendTo("body");$video.appendTo("body");return"lets do it!!"};"ready to party? call window.party()"; |
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
def yield_placeholder(name, content = nil, &block) | |
if content_for?(name) | |
concat @view_flow.get(name) | |
else | |
if block_given? | |
content = capture(&block) | |
end | |
concat content | |
end | |
end |
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
--- | |
- hosts: all | |
sudo: True | |
pre_tasks: | |
- name: APT | Check cache update time | |
stat: path=/var/cache/apt | |
register: apt_cache_stat | |
- name: APT | Update stale cache | |
apt: update_cache=yes |
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 | |
namespace app\controllers; | |
use lithium\data\Entity; | |
use app\models\Companies; | |
class CompaniesController extends \lithium\action\Controller { | |
public function search() { | |