---
title: "Search"
date: 1999-01-01
layout: page
exclude_search: true
---
{{< searchpage >}}
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
{ | |
"always_prompt_for_file_reload": true, | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme", | |
"detect_indentation": true, | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"font_size": 13, | |
"highlight_line": true, |
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
<script src="https://unpkg.com/lunr@2.3.8/lunr.js"></script> | |
<script src="/search.js"></script> | |
<div> | |
<input id="search-input" type="text" placeholder="What are you looking for?" name="search-input" class="form-control"> | |
</div> | |
<div id="search-results" class="container"></div> |
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 idx = null; | |
var resultDetails = []; | |
var $searchResults; | |
var $searchInput; | |
var $headerSearch; | |
window.onload = function () { | |
var request = new XMLHttpRequest(); | |
var query = ''; |
The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
I hereby claim:
- I am mwalters on github.
- I am mwalters (https://keybase.io/mwalters) on keybase.
- I have a public key ASAQVv2A6RsGKKnexzIGfI_xQbLWw1kK8gmLYYhTo6Cj-Qo
To claim this, I am signing this 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
tag_version="$1" | |
cd wp && git fetch --tags && git checkout $tag_version && cd .. && git add wp && git commit -m "Updates WordPress to version: $tag_version" && git push |
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 | |
// CONFIG: Path to Controllers, including trailing slash | |
$contollerPath = './Controllers/'; | |
// If there is a query string, then get its position so it can be separated from the Controller/Method requested | |
if (strpos($_SERVER['REQUEST_URI'], '?')) { | |
$queryOffset = strpos($_SERVER['REQUEST_URI'], '?') - ($_SERVER['REQUEST_URI'] + 1); | |
} else { | |
$queryOffset = strlen($_SERVER['REQUEST_URI']); |
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
/* For modern browsers */ | |
.cf:before,.cf:after {content:"";display:table;} | |
.cf:after {clear:both;} | |
/* For IE 6/7 (trigger hasLayout) */ | |
.cf {zoom:1;} |
Ok, crash course in jQuery and stuff:
jQuery makes a global object, typically referenced by "$". There's also something called no-conflict mode where you'd reference it by "jQuery", but you won't see that too often in what we're doing, but just in case you encounter it, essentially these are the same:
$('.article')
jQuery('.article')
NewerOlder