Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am suzak on github.
  • I am suzak (https://keybase.io/suzak) on keybase.
  • I have a public key ASCWCKaDDrtlObTRU1MjrHPg90CNuSiukn0nOvNGFR7TGQo

To claim this, I am signing this object:

indexer = {
id: 'scala',
name: 'Scala',
icon: 'https://www.zdrojak.cz/wp-content/uploads/2014/07/scala-icon.png',
index: function (ctx) {
return ctx.fetchDocument('http://www.scala-lang.org/api/current/').then(function (document) {
Array.from(document.querySelectorAll('li.pack')).map(function (pack) {
ctx.pushIndex(pack.title, pack.querySelector('a.tplshow').href);
Array.from(pack.querySelector('.templates').querySelectorAll('li')).map(function (it) {
diff --git a/git-submodule.sh b/git-submodule.sh
index d189a24..1ab1f70 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -121,12 +121,29 @@ module_clone()
path=$1
url=$2
reference="$3"
+ submodulecachedir=$(git config --path submodule.cachedir)
@suzak
suzak / app.pl
Created August 1, 2011 14:46
Text::Xslate: Oops: Refers to unallocated local variable 0 (> -1)
#!perl
use strict;
use warnings;
use Data::Section::Simple;
use List::Util ();
use Text::Xslate;
my $tx = Text::Xslate->new(
path => Data::Section::Simple->new->get_data_section,
#!/bin/sh
#
# git-submodules.sh: add, init, update or list git submodules
#
# Copyright (c) 2007 Lars Hjemli
dashless=$(basename "$0" | sed -e 's/-/ /')
USAGE="[--quiet] add [-b branch] [-f|--force] [--reference <repository>] [--] <repository> [<path>]
or: $dashless [--quiet] status [--cached] [--recursive] [--] [<path>...]
or: $dashless [--quiet] init [--] [<path>...]