This file contains 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
require 'kramdown' | |
puts Kramdown::Document.new(File.open('test.md').read).to_html |
This file contains 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
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */ | |
{ | |
/* | |
* Keybindings for emacs emulation. | |
* | |
* WARNING! After Mountain Lion, this file cannot be symbolic linked to another file, | |
* you need to put this file in ~/Library/KeyBindings/DefaultKeyBinding.dict directly | |
* | |
* Reference: |
This file contains 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
def updateBuildVersion(currentVersion, updateType) { | |
def versionMatcher = currentVersion =~ /^(\d+)\.(\d+)\.(\d+)$/ | |
def major = versionMatcher[0][1].toInteger() | |
def minor = versionMatcher[0][2].toInteger() | |
def patch = versionMatcher[0][3].toInteger() | |
if (updateType == 'patch') | |
patch += 1 | |
else if (updateType == 'minor') | |
minor += 1 |
This file contains 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
def line | |
new File("test.txt").withReader { line = it.readLine() } | |
println line |
NewerOlder