Skip to content

Instantly share code, notes, and snippets.

@weslly
weslly / gist:4136520
Created November 23, 2012 17:13
Custom header snippet for wordpress
<?php
$defaults = array(
'default-image' => get_template_directory_uri() . '/assets/img/logo.png',
'flex-height' => true,
'flex-width' => true,
'width' => 280,
'height' => 70,
'header-text' => false,
'uploads' => true,
);
@weslly
weslly / index.php
Last active December 10, 2015 01:49 — forked from anonymous/archive-work.php
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one. For example, Twenty Twelve already
* has tag.php for Tag archives, category.php for Category archives, and
@weslly
weslly / gist:4714155
Last active December 12, 2015 04:28
bh_core.sublime-settings
{
// Path to find icons at
"icon_path": "BracketHighlighter/icons",
// When only either the left or right bracket can be found
// this defines if the unmatched bracket should be shown.
"show_unmatched" : true,
// High visibilty style and color for high visibility mode
// (solid|outline|underline)
@weslly
weslly / dabblet.css
Created May 20, 2013 00:57
:first-child alternative (not really)
/* :first-child alternative (not really) */
ul {
list-style: none;
margin: 0;
}
li {
float: left;
width: 100px;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>srt</string>
</array>
<key>name</key>
<string>SRT</string>

Keybase proof

I hereby claim:

  • I am weslly on github.
  • I am weslly (https://keybase.io/weslly) on keybase.
  • I have a public key whose fingerprint is 93D2 0EE0 94E7 0D9B 1C36 8E3D 732B 30E4 555D 7C3C

To claim this, I am signing this object:

%YAML 1.2
---
name: PHP (Fixed)
file_extensions:
- php
first_line_match: '^#!.*(?<!-)php[0-9]{0,1}\b'
scope: embedding.php
contexts:
main:
- match: ''