Type p proj to jump to ~/Sites/my_project
Type p js to bring up a list of projects whose names contain 'js'
Type p proj to jump to ~/Sites/my_project
Type p js to bring up a list of projects whose names contain 'js'
| class String | |
| def asciify | |
| self.mb_chars.normalize(:kd).to_s | |
| end | |
| alias_method :unaccent, :asciify | |
| alias_method :remove_diacritics, :asciify | |
| end |
| <?php | |
| function get_current_depth() { | |
| global $wp_query; | |
| $object = $wp_query->get_queried_object(); | |
| $parent_id = $object->post_parent; | |
| $depth = 0; | |
| while ($parent_id > 0) { | |
| $page = get_page($parent_id); | |
| $parent_id = $page->post_parent; |
| (function() { | |
| function isHome() { | |
| return window.location.pathname === '/'; | |
| } | |
| function isSplash() { | |
| return window.location.pathname === '/splash'; | |
| } |
| UPDATE wp_options SET option_value = REPLACE(`option_value`, '${1:}', '${2:}'); | |
| UPDATE wp_posts SET post_content = REPLACE(`post_content`, '$1', '$2'); | |
| UPDATE wp_posts SET guid = REPLACE(`guid`, '$1', '$2'); |
| class Slideshow < Slice | |
| has_attachments :slides, :class_name => "Slide" | |
| end | |
| class Slide < Attachment | |
| field :caption | |
| field :link | |
| end |
Place the file above (ia3.patch) in the theme’s directory and run:
$ patch < ia3.patch
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Rikify</title> | |
| <style type="text/css"> | |
| #button { | |
| font-family: Lucida Grande; | |
| font-size: 11px; | |
| text-decoration: none; | |
| font-weight: bold; |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} =some.domain.com | |
| RewriteRule ^(.*)$ http://other.domain.com$1 |
echo 'na'