Skip to content

Instantly share code, notes, and snippets.

View lautis's full-sized avatar

Ville Lautanala lautis

View GitHub Profile
>>>>> Creating Makefile for ruby version 2.1.2 on x86_64-darwin13.0 <<<<<
creating Makefile
compiling cache8.c
compiling circarray.c
compiling compat.c
compiling dump.c
compiling err.c
compiling fast.c
compiling hash.c
compiling hash_test.c

Keybase proof

I hereby claim:

  • I am lautis on github.
  • I am lautis (https://keybase.io/lautis) on keybase.
  • I have a public key whose fingerprint is 01BC 7733 C8F8 5811 C0AB EEFC 291A A536 6CDC 744C

To claim this, I am signing this object:

@lautis
lautis / benchmark.html
Created January 17, 2014 10:18
Flowdock-Text PR #6 benchmark
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="flowdock-text.js" type="text/javascript" charset="utf-8"></script>
<script src="flowdock-text-old.js" type="text/javascript" charset="utf-8"></script>
<script src="benchmark.js"></script>
<script>
function run(suite) {
class Some
initialize: (@value) ->
getOrElse: -> @value
filter: (f) ->
if f @value
new Some(@value)
else
None
map: (f) ->
f @value
@lautis
lautis / css_asset_path_compressor.rb
Created August 9, 2011 13:11
Rails 3.1 CSS compressor to replace url(asset.png) with real asset path
class CssAssetPathCompressor
include Sprockets::Helpers::RailsHelper
ReplaceRexeg = /url\(["']?([^\)\?"']+)(\?[^"']*)?["']?\)/i
def initialize(compressor)
@compressor = compressor
end
def compress(css)
rewrite(css)
git_set() {
/usr/bin/env git config --global $@
}
git_ignore() {
if grep "^$1$" $HOME/.gitignore; then
return
fi
echo $1 >> $HOME/.gitignore
}
git_set() {
/usr/bin/env git config --global $@
}
git_ignore() {
if grep "^$1$" $HOME/.gitignore; then
return
fi
echo $1 >> $HOME/.gitignore
}