Skip to content

Instantly share code, notes, and snippets.

@Meettya
Meettya / gist:1770551
Created February 8, 2012 15:45
rvm install 1.9.3 error log
<... skip ...>
compiling stubs.c
In file included from stubs.c:8:
stubs.h:1:17: error: tcl.h: No such file or directory
In file included from stubs.c:8:
stubs.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
stubs.h:10: error: expected ‘)’ before ‘*’ token
stubs.h:11: error: expected ‘)’ before ‘*’ token
stubs.c:16:16: error: tk.h: No such file or directory
@Meettya
Meettya / namespaces.coffee
Created February 4, 2012 00:05 — forked from StanAngeloff/namespaces.coffee
A quick and dirty way to use namespaces in CoffeeScript
# Code:
#
namespace = (target, name, block) ->
[target, name, block] = [exports ? window, arguments...] if arguments.length < 3
top = target
target = target[item] or= {} for item in name.split '.'
block target, top
# Usage:
#
@Meettya
Meettya / gist:1732961
Created February 3, 2012 22:00 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
@Meettya
Meettya / convert-bath2.sh
Created January 28, 2012 16:24
simply paralell bash bath image resizer
#!/bin/bash
#===================================
#
# This command resize all images
# in this dir and all sub dirs
# For common purpose.
#
# GNU Parallel version
# http://www.gnu.org/software/parallel/
@Meettya
Meettya / convert-bath.sh
Created January 28, 2012 11:18
simply bash bath image resizer
#!/bin/bash
#===================================
#
# This command resize all images
# in this dir and all sub dirs
# For common purpose
#
# usage:
# convert-bath.sh dirname
@Meettya
Meettya / test_indexing.pl
Created December 30, 2011 14:47
test indexing compare compile regex and others features
use IO::File;
use File::Slurp;
#use re 'debug';
#use Smart::Comments;
use English qw(-no_match_vars);
use Data::Dumper 'Dumper';
use Benchmark qw/cmpthese timethese/;
my $cnt = 30;
my $testfile = 'test.xml';
@Meettya
Meettya / simple_example3.pl
Created December 21, 2011 08:57
Change logger but nor realized Ilogger
#! /usr/bin/env perl
use v5.10;
use warnings;
#===================================
package ClobalConstructor;
#===================================
use Moo;
@Meettya
Meettya / simple_example2.pl
Created December 21, 2011 08:47
Change logger
#! /usr/bin/env perl
use v5.10;
use warnings;
#===================================
package ClobalConstructor;
#===================================
use Moo;
@Meettya
Meettya / gist:1489873
Created December 17, 2011 10:17
SQL::Interp example2
"UPDATE table SET login=?, password=?, user=? WHERE y <> ? AND z IN (?, ?, ?)"
[
[0] "foo",
[1] 12345,
[2] "Bar Bazz",
[3] 26,
[4] 3,
[5] 4,
[6] 5
]
@Meettya
Meettya / sql_interp_example.pl
Created December 17, 2011 10:15
SQL::Interp example
#!/usr/bin/env perl
use v5.14;
use warnings;
# develop mode
use Smart::Comments;
use Data::Printer;
use SQL::Interp ':all';