Skip to content

Instantly share code, notes, and snippets.

View payingattention's full-sized avatar
🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)

// /∫ ∫∫ ∫prosodyVvVereableContext( (( [[ [( ( payingattention

🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)
View GitHub Profile
@payingattention
payingattention / about.md
Created August 9, 2011 15:36 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
<?php
/*
Plugin Name: Post Meta Revisions
Description: Revisions for the 'foo' post meta field
Version: 1.0
Author: John Blackbourn
Plugin URI: http://lud.icro.us/post-meta-revisions-wordpress
*/
// sign up
account.signUp('joe@example.com', 'secret');
// sign in
account.signIn('joe@example.com', 'secret');
// sign in via oauth
account.signInWith('twitter');
// sign out
// convert a dom element to a PDF and download it
convert( $('.invoice') ).to( 'invoice.pdf' ).download()
// convert another website to a png and show it on the page
convert( $('.invoice') ).to( 'invoice.pdf' ).prependTo( $('.screenshots') )
device('192.168.2.2')
.do( 'coffee' )
.then( wakeMeUpCallback )
// send text email
sendEmail({
subject: "Hello, World!",
text: "This mail has been sent from the frontend",
to: "joe@exam.pl"
})
// send multipart text / html email
sendEmail({
subject: "Hello, World!",
@payingattention
payingattention / shoestrap-custom-templates.php
Last active December 17, 2015 23:29 — forked from aristath/shoestrap-custom-templates.php
Shoestrap WordPress Plugin Drop-In Overrides Shoestrap WordPress Theme Defaults
<?php
/*
Plugin Name: Shoestrap Custom Templates
Plugin URI: http://shoestrap.org
Description: This plugin replaces the default templates with our custom ones using the hooks provided by the <a href="http://shoestrap.org/downloads/shoestrap">Shoestrap</a> theme
Version: 1.00
Author: Aristeides Stathopoulos
Author URI: http://aristeides.com, http://shoestrap.org/forums/topic/template-actions-file, https://gist.github.com/aristath/5496734, https://gist.github.com/payingattention/5689514
*/
<?php
/*
Plugin Name: Disable Wptexturize
Description: Removes most calls to this incredible slow function.
Version: 1.0
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
require 'digest/md5'
=begin
About:
This script automatically runs on a 2-second loop, searches the current directory for haml & sass files that have been modified since the last iteration and builds them as needed into a file with the same name minus the .haml/sass extension. I wrote it so I could use Haml & Sass to develop Wordpress themes.
How-to:
1) Name your source files with the extension you'd like them to have, then add ".haml" or ".sass" as appropriate...
For example: index.php.haml and styles.css.sass

###Invite your readers to leave you a Bitcoin tip on Reddit

Reddit's Bitcoin implementation is ideal for beginners. Here's how to get them to give it a try.

####Structure