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
JSONAPIObject: | |
description: Includes the current JSON:API version for this specification as well as optional meta information | |
type: object | |
required: | |
- version | |
properties: | |
version: | |
type: string | |
default: '1.0' | |
example: '1.0' |
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
production/ | |
ansible_hosts # inventory file for production servers | |
group_vars/ | |
group1 # here we assign variables to particular groups for production | |
group2 # "" | |
host_vars/ | |
hostname1 # if production systems need specific variables, put them here | |
hostname2 # "" | |
files/ |
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/bash | |
# Firefox Multifix | |
# | |
# Run this bash script from within the folder that contains your Firefox apps, | |
# and every Firefox app in the current folder will be modified to automatically | |
# launch using a version-named profile. For example, "Firefox 2.0.app" will use | |
# the "Firefox 2.0" profile, etc. | |
# | |
# Usage: |
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
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
Answer: | |
bar[foo ? 'doSomething' : 'doSomethingElse'](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
<?php | |
class Default_Controller_Action_Helper_FileCache extends | |
Zend_Controller_Action_Helper_Abstract | |
{ | |
protected $_cache; | |
public function load($file, $id) | |
{ | |
return $this->getCache($file)->load($id); | |
} |