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
class EntryHandler(InboundMailHandler): | |
""" | |
Process inbound emails as entries into the database. | |
Every email is a new post. User must login to web interface | |
to edit any post details. | |
message object: | |
- subject | |
- sender |
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 | |
/** | |
* Loads any layout files(.php) contained inside the theme folders. | |
* | |
* @package wolf | |
* @subpackage plugin.layout_loader | |
* | |
* @author Adrian Unger <spam{at}staydecent.ca> | |
* @version 1.1 |
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 | |
/* | |
Function taken from http://core.trac.wordpress.org/changeset/15753 | |
Awaiting release of WP 3.1.0 | |
Credits: scribu | |
*/ | |
if ( ! function_exists('remove_menu_page') ) { | |
/** | |
* Remove a top level admin menu |
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
jQuery(document).ready(function($) { | |
var video = $('.video'); | |
var vCount = 0; // Or own counter, for counting | |
var chapters = { | |
// seconds : selector | |
// I forget what data types JS has.... LOLZ | |
// Pythonz in my brain | |
1 : 'one-second' |
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 | |
private function set_password($raw_password) { | |
/* | |
Sets the password to a string of random sha1 salt | |
and encrypted password. | |
Separated by '$' | |
*/ | |
$salt = substr(sha1(genRandomString().genRandomString()), 0, 5); | |
$hash = sha1($salt.$raw_password); |
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
/* Media queries used on blog.staydecent.ca by Adrian Unger | |
check my full source at: | |
http://blog.staydecent.ca/static/css/style-0.1.6.css */ | |
@media only screen and (min-width:768px) and (max-width:1269px) { | |
/* In my particular design, I used a fluid grid limited to a | |
max-width of 1140px, while (if there is enough room) | |
pushing the menu outside of layout, requiring a total | |
limit of at least 1270px. | |
So, this first query applies to any screen-width less |
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 (!ctype_digit($videolink)) : | |
// has chars other than digits == YouTube | |
?> | |
<div class="video column six<?php echo ($video_count === $last) ? ' last' : ''; ?>"> | |
<a class="videopopup" href="http://youtube.com/v/<?php echo $videolink; ?>"> | |
<img src="http://img.youtube.com/vi/<?php echo $videolink; ?>/0.jpg"> | |
</a> | |
</div> | |
<?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
Show hidden characters
{ | |
"disable_tab_abbreviations_for_scopes": "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
#!/bin/bash | |
# Concat our shit | |
declare -a libsBefore | |
declare -a helperFiles | |
libsBefore=( | |
'jquery.min.js' | |
'underscore-min.js' | |
'backbone-min.js' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>OceanFade-Light</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
OlderNewer