Skip to content

Instantly share code, notes, and snippets.

View korinVR's full-sized avatar
🥽
VR

Katsuomi Kobayashi korinVR

🥽
VR
View GitHub Profile
@korinVR
korinVR / gulpfile.js
Last active September 16, 2016 04:31
Babel + Gulp + Watchify + BrowserSync
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();
@korinVR
korinVR / pretty.rb
Created November 19, 2013 08:39
Jekyll plugin: pretty URL (remove last index.html)
# 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
@korinVR
korinVR / open_url.py
Last active September 9, 2020 21:03
Sublime Text plugin : Open the URL under the cursor
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