Skip to content

Instantly share code, notes, and snippets.

@rleger
rleger / add-curly-braces.sublime-macro
Created January 4, 2015 19:34
Add curly braces Sublime text 3
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
@rleger
rleger / assign-vars-from-controller.sublime-macro
Created January 4, 2015 19:20
Initialize fields from php controller macro - Sublime text 3
[
{
"command": "escape"
},
{
"command": "expand_selection",
"args": {"to": "word"}
},
{
"args": null,
@rleger
rleger / Sublime text base16 Markup Theme
Created May 3, 2014 13:49
Sublime text base16 Markup Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>base16 Markup</string>
@rleger
rleger / PHP Delete File
Created April 20, 2014 10:12
PHP Delete File
<?php
/**
* Deleting file
* @param string $fullpath Filename with its full path
* @return array key => result
*/
function deleteFile( $fullpath ) {
if (file_exists($fullpath)) {
$hasBeenDeleted = unlink($fullpath);
@rleger
rleger / HTML 5 Start File
Last active December 19, 2015 12:09 — forked from peteymoore/gist:5392815
HTML 5 Start file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Template</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>