This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"); | |
var gutil = require("gulp-util"); | |
var notify = require('gulp-notify'); | |
var source = require("vinyl-source-stream"); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require("browserify"); | |
var watchify = require("watchify"); | |
var babelify = require("babelify"); | |
var browserSync = require("browser-sync").create(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pretty URL (remove last index.html) | |
# usage: {{ post.url | pretty }} | |
module Jekyll | |
module Pretty | |
def pretty(url) | |
if url[-10..-1] == "index.html" | |
url = url[0..-11] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
import webbrowser | |
class OpenUrlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
s = self.view.sel()[0] | |
# Expand selection to possible URL |
NewerOlder