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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
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
@-moz-document domain("pivotaltracker.com") { | |
.item .maximize, | |
.info_box .row.owner, | |
.info_box .row.requester, | |
.info_box .row.type, | |
.story .description, | |
.story .followers_wrapper, | |
.story .tasks, | |
.story .timestamp_wrapper, | |
.iteration .preview .points, |
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
// External selector for jquery | |
$.expr[":"].external = function(obj, index, meta, stack) { | |
var a = $(obj).prop("href") || ""; | |
var server = window.location.href.split('/'); server = server[0] + "//" + server[2]; | |
if(a == "#" || a == "" || a.indexOf(server)>-1 || a.indexOf("javascript:")>-1 ) { | |
return false; | |
} | |
return true; | |
} |
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
//// Validation | |
if (typeof document.createElement('input').checkValidity === 'function') { | |
$('form').submit(function (e) { | |
if (!this.checkValidity()) { | |
e.preventDefault(); | |
alert('Some fields are invalid. Please check your form again. '); | |
} | |
}); | |
} else { | |
$('form').submit(function (e) { |
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
{% macro menu(entries, active, level) %} | |
{% if entries|length %} | |
{% set level = level|default(1) %} | |
<ul class="level-{{ level }} {{ level > 1 ? "dropdown sub" : "left top" }}"> | |
{% for n in entries %} | |
<li class="{{ loop.first ? "first" : "" }} {{ loop.last ? "last" : "" }} | |
{%- if n.children|length %}has-dropdown{% endif %} | |
{%- if active is defined and (active.descendantOf(n) or active.id == n.id) %} active{% endif %}"> | |
<a href="{{ n.url }}"> | |
{{ n }} |
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 | |
function stringToRgb($string, $s = 100, $l = 70){ | |
$h = floor((hexdec(substr(md5($string), 0, 2))/255)*360); | |
$h /= 360; | |
$s /= 100; | |
$l /= 100; |