Skip to content

Instantly share code, notes, and snippets.

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

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:

<?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>
@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;
@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 / 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: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 / generate.php
Created September 24, 2012 19:35
Generate line numbers to Sublime VintageLines plugin
<?php
// Set the content-type
header('Content-Type: image/png');
// Replace with your own font and font-size
$font = 'UbuntuMono-R.ttf';
$fontsize = 11;
// Create the numbers directory if it doesn't exist
if(!is_dir(dirname(__FILE__) . '/numbers/')) {
@weslly
weslly / gist:2495073
Created April 26, 2012 01:33
example content for wordpress posts
The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.
<hr />
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
@weslly
weslly / dabblet.css
Created April 23, 2012 18:42
svbtle kudos
/**
* svbtle kudos
*/
.kudos {
margin: 300px;
width: 40px;
height: 40px;
border: 4px solid black;