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
#!/bin/sh | |
# Define colors | |
red="\033[33;31m" | |
green="\033[33;32m" | |
yellow="\033[33;33m" | |
blue="\033[33;34m" | |
magenta="\033[33;35m" | |
gray="\033[33;30m" | |
cyan="\033[33;36m" |
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
A list: | |
[Title] [Git URL] [Bower URL] | |
---- | |
Backwards Compatibility: | |
Respond.js https://github.com/scottjehl/Respond scottjehl/Respond | |
Placeholder.js https://github.com/jamesallardice/Placeholders.js jamesallardice/placeholders |
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 | |
/** | |
* Sanitizes a variable | |
* | |
* Sanitizes by reference for use with Array_Walk_Recursive. Remove the ampersand if you aren't using that function. | |
* | |
* @param $var - String to sanitize. | |
* @return string - Sanitized String | |
*/ |
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
var toSlug = function(Text) { | |
return Text | |
.replace(/ /g,'-') | |
.replace(/\&/g,'+'); | |
}, | |
unSlug = function(Slug) { | |
return Slug | |
.replace(/\-/g,' ') | |
.replace(/\+/g,'&'); | |
}; |
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.autoSizr = function () { | |
var el, elements, _i, _len, _results; | |
elements = $(this); | |
if (elements.length < 0) { | |
return; | |
} | |
_results = []; | |
for (_i = 0, _len = elements.length; _i < _len; _i++) { | |
el = elements[_i]; | |
_results.push((function(el) { |
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
/** | |
* @param $a | |
* @param $b | |
* @return int | |
* | |
* Assumes that the list is already sorted alphabetically, this function will sort Directors, Associate Directors, and | |
* Assistant directors to the front of the list, respectively. | |
*/ | |
function sortByTitle ($a, $b) | |
{ |
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 | |
if ( !class_exists( 'DB' ) ) { | |
class DB { | |
public function __construct($user, $password, $database, $host = 'localhost') { | |
$this->user = $user; | |
$this->password = $password; | |
$this->database = $database; | |
$this->host = $host; | |
} | |
protected function connect() { |
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() { | |
"use strict"; | |
var toggles = document.querySelectorAll(".cmn-toggle-switch"); | |
for (var i = toggles.length - 1; i >= 0; i--) { | |
var toggle = toggles[i]; | |
toggleHandler(toggle); | |
}; |
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
@mixin font-smoothing($value: on) { | |
@if $value == on { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@else { | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: auto; | |
} | |
} |
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
// Drupal Overrides | |
ul.tabs.primary { | |
border-bottom: 0; | |
border-top: 1px solid #bbb; | |
text-align:right; | |
margin: 0; | |
li.active a { | |
border-bottom: 1px solid #bbb; | |
border-top: 1px solid #fff; | |
} |
OlderNewer