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
// 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 / Turn Off WPTexturizer Grammar Policing & Capitalization Sanitation Hypercorrections.md
Last active December 17, 2015 15:59
(a) stopping wp auto-correction into their cockney grammar proprietary and (b) formatting capitals like a natural thanks to http://wordpress.stackexchange.com/questions/5029/how-can-i-make-capital-letter-upper-case-permalinks helping wordpress stop stripping letters of their character. before wordpress lowers cases but now it stops turning lette…

about

(a) stopping wp auto-correction into their cockney grammar proprietary cause thank sci psy tech god http://core.trac.wordpress.org/ticket/19550#comment:11 by @toscho stops grammar compupolicing.

(b) formatting capitals like a natural thanks to http://wordpress.stackexchange.com/questions/5029/how-can-i-make-capital-letter-upper-case-permalinks helping wordpress stop stripping letters of their character. before wordpress lowers cases but now it stops turning letters down

COMPATIBLE VERSION: Wordpress 3.6 RC-1 (we have to update manually every time we update as per @toscho link.

@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
*/
@payingattention
payingattention / tilTrue.info.wordpressBackup.xml
Last active December 18, 2015 05:39
tilTrue.info WordPress eXtended RSS / XML Database ALL FREE Public Domain + Creative Commons (C0) Backup / Poor-Person Copyleft-Copyright Recorded Hirstory. So sci psy txty! [SQL: https://gist.github.com/payingattention/5394693]
This file has been truncated, but you can view the full file.
<!-- tilTrue.info WordPress eXtended RSS / XML Database ALL FREE Public Domain + Creative Commons (C0) Backup / Poor-Person Copyleft-Copyright Recorded Hirstory. So sci psy txty! [SQL: https://gist.github.com/payingattention/5394693] -->
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- generator="WordPress/3.7-beta2-25801" created="2013-11-12 23:09" -->
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
<?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

#con(tech)text #dataliberation #pseudocode pseudo code for saving and data liberating my posts on other sites so i have a memory, a backup, some insight into my lil big linear timeline human life.