Skip to content

Instantly share code, notes, and snippets.

Avatar

Weslly weslly

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

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:

View srt.tmLanguage
<?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
:first-child alternative (not really)
View dabblet.css
/* :first-child alternative (not really) */
ul {
list-style: none;
margin: 0;
}
li {
float: left;
width: 100px;
@weslly
weslly / gist:4714155
Last active Dec 12, 2015
bh_core.sublime-settings
View gist:4714155
{
// 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)
View index.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 Nov 23, 2012
Custom header snippet for wordpress
View gist:4136520
<?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 Sep 24, 2012
Generate line numbers to Sublime VintageLines plugin
View generate.php
<?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 Apr 26, 2012
example content for wordpress posts
View gist:2495073
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>
View dabblet.css
/**
* svbtle kudos
*/
.kudos {
margin: 300px;
width: 40px;
height: 40px;
border: 4px solid black;
You can’t perform that action at this time.