Git Product home page Git Product logo

sp_general.tmbundle's Introduction

SP General

Just a few helpers I like to keep around for development.

Tidy

Allows for the use of tidy with a specific config. If you look at it you can figure out where to put your config.

PHP Unserialize & Serialize

Uses PHP's serialize and a custom serialize snippet to allow for easy viewing and/or modification of Serialized data.

JSON Decode

Uses PHP's JSON decode function to allow for easy viewing of JSON encoded data.

\n to line break

Quick SED one liner to translate \n chars in to real line breaks and \t chars in to real tabs. Helps when viewing serialized data or data that's been shoved to the error log.

strip blank lines

Strip all blank lines in a document.

Base64 Encode

Base 64 encode the contents of the file.

Append to end of line(s)

Allows for text to be appended to all of the selected lines.

Copy File Path

Copy the path to the current file to the clipboard.

Open File as Project

Reopens the current file's parent folder as a project (if the file is not within a project window already). Handy for when you've remote edited a file using an FTP editor but need to open more files and want them all to come in to a single project window.

PayPeriod

Takes a CSV formatted in the CF recent line items format and condenses it down to just the hours recorded and adds in a total. That's all I'm gonna say about that.

urlDecode

Uses PHP's urldecode function to show the decoded version of an encoded URL.

CURL url

Does what it says. Takes the current word (whether highlighted or wether the carat is just within the url) and attempts to curl it. No attempt is made to check for a valid url before running curl. Result is returned in a new document.

If current word contains credentials, (ie: "user:pass@http://example.com") then curl will attempt to send user:pass credentials.

Tally Estimate Hours

Adds the Tally of hours in a CF formatted Estimate document.

Required Document Format

# My Project Development Plan
_2010-05-11_

---

## Section One

- bullet
- another bullet

### Sub-section one

blah

### Sub-section two

blah, aigh’t?!

### Time

36 hrs
8 hrs testing
12 hrs revisions 

---

Result

The following section is added to the end of the file. Previous Totals sections are removed, no matter where they're found in the document.

## Totals

- time: 104.0 hrs
- time testing: 42.0 hrs testing
- time revisions: 42.0 hrs revisions
- total: 188.0 hrs

~shawn

sp_general.tmbundle's People

Contributors

gipetto avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

goeko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.