Skip to content

Instantly share code, notes, and snippets.

Snow Leo ships with ctags not suitable for Ruby development. Ie if you try to generate tags recursively, it will error out:
$ ctags -R
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
$ which ctags
/usr/bin/ctags
homebrew to the rescue:

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@hugozap
hugozap / Bot.js
Created April 18, 2016 20:18 — forked from PhilippLgh/Bot.js
A Telegram Speech-To-Text bot that uses Watson
var Bot = require('node-telegram-bot-api')
var watson = require('watson-developer-cloud');
var request = require('request');
var config = require('./config');
var speech_to_text = watson.speech_to_text({
username: config.watson.username,
password: config.watson.password,
version: 'v1',
url: 'https://stream.watsonplatform.net/speech-to-text/api'
@hugozap
hugozap / gist:4416811
Last active December 10, 2015 09:49 — forked from anonymous/gist:4416767
var minimatch = require('minimatch');
minimatch('myfile.js',"**.js"); //true