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
<?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
*/
@kentbrew
kentbrew / RedditTipButton.md
Last active December 29, 2015 21:09
Invite your readers to leave you a Bitcoin tip on Reddit

###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

@h4cc
h4cc / install_hal.sh
Last active February 19, 2016 20:24
Making Amazon Instant Video work with Ubuntu Linux. Explanation: The Amazon Flash player needs HAL to display the DRM protected video.
# Try to install HAL
apt-get install hal
# If there is no "hal" package available, try this:
add-apt-repository ppa:mjblenner/ppa-hal
apt-get update
apt-get install hal

With tears we see medics.t

#Wedic #Medic

A scholarly appropach to Emotional-Informational Security Apparatus Apparent Madus Operaendie

Temporary

Window
@gr2m
gr2m / convert_dreamcode.js
Last active August 29, 2016 09:01
Imagine you could convert all kind of things to all kind of different things, e.g. taking a screenshot of a dom element or converting another website to a screenshot. Forks & comments much appreciated! #nobackend #dreamcode
// convert a dom element to a PDF and download it
convert( $('.invoice') ).to( 'invoice.pdf' ).download()
// alternatively
download( convert( $('.invoice') ).to( 'invoice.pdf' ) )
// convert another website to a png and show it on the page
convert( 'http://exam.pl/page' ).toImage().then( $('.screenshots').append )
// attach a file to an email
@gr2m
gr2m / control_devices.dreamcode.js
Last active August 29, 2016 09:01
Imagine you could control other devices with a simple JavaScript API, right from your browser.
// Ask the coffee machine at IP 192.168.2.2 to do its job
device('192.168.2.2')
.do( 'coffee' )
.then( wakeMeUpCallback )
// turn all lights on
device.findAll('light').do('turnOn')
@peterkappus
peterkappus / haml-sass builder
Created August 24, 2011 23:33
Haml/Sass builder script (great for Wordpress themes & other HTML-like templates)
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
@jacquescrocker
jacquescrocker / database.rb
Created April 10, 2011 19:50
configures padrino to use config/mongoid.yml
# config/database.rb
config_file = Padrino.root("config", "mongoid.yml")
if File.exists?(config_file)
settings = YAML.load(ERB.new(File.read(config_file)).result)[Padrino.env.to_s]
::Mongoid.from_hash(settings) if settings.present?
end
@johnbillion
johnbillion / gist:5225514
Last active May 29, 2019 12:56
Post Meta Revisions
<?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
*/