Skip to content

Instantly share code, notes, and snippets.

View bpj's full-sized avatar

Benct Philip Jonsson bpj

View GitHub Profile
@razius
razius / chrome-refresh.sh
Last active November 6, 2018 13:50
Watches the folder or files passed as arguments to the script and when detects a change it automatically refreshes the current selected Chrome tab or window.
#!/bin/bash
#
# Watches the folder or files passed as arguments to the script and when it
# detects a change it automatically refreshes the current selected Chrome tab or
# window.
#
# http://razius.com/articles/auto-refreshing-google-chrome-on-file-changes/
#
# Usage:
# ./chrome-refresh.sh /folder/to/watch /some/folder/file_to_watch.html
@losinggeneration
losinggeneration / moon.xml
Created January 15, 2014 06:44
A MoonScript syntax file for Kate
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
By Harley Laue <losinggeneration@gmail.com>
Based on the CoffeeScript syntax file by Max Shawabkeh (max99x@gmail.com)
and the Lua syntax file by Bruno Massa
-->
<language name="MoonScript"
version="1.0"
@efrederickson
efrederickson / RomanNumeralConverter.lua
Created November 15, 2012 18:40
Roman numeral conversion library in pure Lua
--[[
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000