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 function handles the used game events. | |
function BS_OnEvent(self, event, ...) | |
local args = {...}; | |
if (event == "ADDON_LOADED") then | |
if (args[1] == "BloodyScreen") then | |
BS_Init(); | |
end | |
end | |
if ((event == "UNIT_COMBO_POINTS") and (BS_BloodBehaviour == 1)) then |
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
Thanks to: | |
http://realityloop.com/blog/2012/07/03/nginx-mariadb-php-aegir-mac-os-x-optional-drush-5-works-mountain-lion | |
and | |
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion | |
--Fresh install Mountain Lion. | |
--Install XCode 4.4.2 | |
--Install Command line utilities via Xcode | |
--Install Homebrew |
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 | |
$d = function ($name, $length = '1,2') { | |
return sprintf('(?<%s>\d{%s}>)', $name, $length); | |
}; | |
$matches2time = function ($matches, $format = DateTime::W3C) { | |
$year = $month = $day = $time = $hour = $minute = $second = null; | |
extract($matches); | |
$dt = new DateTime(); |
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
.grid( | |
@gutter-width:30px; | |
@phone-min-width:480px; | |
@tablet-min-width:768px; | |
@netbook-min-width:992px; | |
@desktop-min-width:1230px; | |
@widescreen-min-width:1440px; | |
@rtl-classes:true) { | |
.padded() { |
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="quarter"> | |
<div class="square"> | |
<div class="content"> | |
<h1>Lorem ipsum</h1> | |
</div> | |
</div> | |
</div> | |
<div class="quarter"> | |
<div class="square"> | |
<div class="content"> |
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
{ | |
"require": { | |
"propel/propel": "~2.0@dev" | |
} | |
} |
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
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "studio-42/elfinder", | |
"version": "2", | |
"source": { | |
"url": "https://github.com/Studio-42/elFinder.git", | |
"type": "git", |
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
$.fn.isCSS = function (properties) { | |
var property; | |
for (property in properties) { | |
if (properties.hasOwnProperty(property)) { | |
var required_value = properties[property], | |
actual_value = this.css(property); | |
//console.log('$.isCSS', property, '=', required_value, required_value != actual_value ? '!=' : '==', actual_value, this[0]); | |
if (required_value != actual_value) { | |
return false; | |
} |
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 () { | |
var timeout = 0; | |
$('.alert').each(function () { | |
var | |
$alert = $(this), | |
text = $alert.text().replace(/(^\s+|\s+$)/, ''), | |
num_lines = $alert.height() / parseFloat($alert.css('line-height')), | |
num_words = text.split(/\s{2,}/).length, | |
// 120 words per minute and add a second for each line. | |
seconds = (num_words / 120 * 60) + num_lines; |
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 get_var($pointed, $arr, $default = '') | |
{ | |
$points = explode('.', $pointed); | |
$var = $arr; | |
$var_name = ''; | |
while (count($points)) { |
OlderNewer