• to the beginning
    home
  • my work
    portfolio
  • rss syndication
    entries
  • rss syndication
    comments
  • to the bottom
    down
#ekynoxe
development / design / photography / (and a bit of triathlon)
Archives for posts with tag: syntax

WordPress wp_enque_scripts in functions.php

August 18, 11 //
0

The functions.php file should be known to everyone developing a wordpress theme, as it’s a neat way to group all your theme’s utilities, as well as load special files, scripts and override the default, out-of-the-box wordpress functions and loaded javascript files.

However, there are a few things one need to remember when writing code in that file, and it’s not always easy to understand why. Specifically, registering and enqueueing scripts can be a bit tricky if you don’t understand how the functions.php file is loaded.

One of the biggest problem is understanding the scope and load/execution time time of what is in that file. I’ve scratched my head a few times on it, and hopefully, I now understand it better and will manage to write it down correctly! (more…)

Percent w and other ruby percent syntax

March 9, 11 //
1

If you can’t find what you want to know about ruby percent notations ( %w, %q, %r, %x), then have a look over there:

http://old.blog.jimhoskins.com/?p=8

Jim has obviously some other information sources than Google (where trying to search for %w is like trying to find your way in a dense steam room!)

The way to remember things is easy though:

  • %w is for White-spaced delimited arrays
  • %q works like Quotes
  • %r wraps up nicely Regular expressions
  • %x simply eXecutes system calls
  • Links

    • ekynoxe portfolio
    • Tom Hume
  • Tag Cloud

    agreement Apache authlogic behaviour Betfair contact form 7 contract CSS cycling deployment design development DNS frustration gentoo git gitosis ironman javascript job mobile motivation Orange organisation photoshop php plugin racing responsibility ruby running security Spain swimming syntax texture thoughts training travel triathlon UX wordpress work xdebug Zend
  • Categories

    • Apache
    • authlogic
    • Betfair
    • code
    • conferences
    • CSS
    • cycling
    • design
    • git
    • javascript
    • mobile
    • Orange
    • photoshop
    • potd
    • ruby
    • thoughts
    • tools
    • travel
    • triathlon
    • Uncategorized
    • UX
    • wordpress
    • work project
    • Zend
Wu Wei by Jeff Ngan.
back to the top