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
/** | |
* Get property names of an object | |
* @return array Property names, else error message. | |
*/ | |
function getPropertyNames($object = null) | |
{ | |
if (!$object) { | |
return array('getPropertyNames() was passed an empty object.'); | |
} |
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; | |
/** | |
* Redirects Controller | This controller is designed to work in conjunction | |
* with `routes.php` by routing the desired URL to a new one. E.g., | |
* redirecting '/keepinitreal' to the static directory '/mycard/loyalty-card'. | |
* | |
* ```php |
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
$(document).ready(function() { | |
// Default tracking settings | |
var slider_event = 'slide'; | |
var slider_source = 'navigation'; | |
// Create slideshow instances | |
var $s = $('.slideshow').slides({ | |
onupdate: function(slide_index) { | |
// Track based on slider_event | |
if (slider_source !== 'link') { |
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 | |
/** | |
* Rounds value up to next quarter integer | |
* @param mixed $n | |
* @return float | |
*/ | |
function roundUpToQuarter($n) | |
{ | |
if ( ! is_numeric($n)) { return $n; } |
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
# Password protect a directory using basic authentication | |
# https://wiki.apache.org/httpd/PasswordBasicAuth | |
AuthType Basic | |
AuthName "Restricted Files" | |
AuthUserFile /var/www/vhosts/.htpasswd | |
Require valid-user | |
# To update the user's password, use the following: | |
# htpasswd /var/www/vhosts/.htpasswd username |
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
# Getting up and running with Ruby on Rails | |
TODO: Polish and send to Cayla | |
## Let’s get introduced to the Terminal! | |
- Open Spotlight and type in `terminal` | |
- You should see the application come up — open it | |
- Tada! You’ve opened the app and can start running fancy computer commands now |
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
/** | |
* Accessible hover styles. Applies :hover styles to :focus and :active. | |
* http://24ways.org/2007/css-for-accessibility | |
*/ | |
@mixin hover { | |
&:focus, &:hover, &:active { | |
@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
/********************************************************** | |
ADOBE SYSTEMS INCORPORATED | |
Copyright 2005-2010 Adobe Systems Incorporated | |
All Rights Reserved | |
NOTICE: Adobe permits you to use, modify, and | |
distribute this file in accordance with the terms | |
of the Adobe license agreement accompanying it. | |
If you have received this file from a source |
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
<!-- Found at http://stackoverflow.com/a/14593540/1786459 --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.strikethrough { | |
position: relative; | |
} |
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
/* base font size + viewport height + viewport width */ | |
h1 { | |
font-size: calc(2rem + 4vh + 4vw); | |
} | |
/* responsive font-size responsive */ | |
html { | |
font-size: calc(100% + .2vh + .2vw); | |
} |
OlderNewer