Etags for Emacs
ctags -e -R --exclude=.git
This is going to generate a TAGS file in project root
Related cards:
Nicely formatted colored git log
I was struggle to set up a nicely formatted git log for a while. What I wanted to achive is to be able to quickly overlook the history including the
branch structure, authors, time of commits, remote and local branches. Here is what I currently ...
Force Launcyh to use a specific browser even if running through ssh -X
If using zeus
in that terminal issue the command below:
export BROWSER='/usr/bin/konqueror'
than in another terminal run
zeus cucumber features/holly____.feature
BROWSER will take precedence over xdg-open
and - by using...
Emacs keybinding link collection
https://www.emacswiki.org/emacs/EmacsNewbieKeyReference#toc9
https://tuhdo.github.io/c-ide.html
Join previous line: M-^
Join next line: C-1 M-^
Load TAGS file in emacs manually
M-x visit-tags-table
You need to point to the directory in which ETAGS file generated and it will be loaded.
Asssign Batmanjs model option to a select element
Given the following js model:
class MyApp.Post extends Batman.Model
@encode options
Given the server side json (generated with rabl):
object @post
attributes :id, :category
node(:categories) {
Category::OPTIONS...
ActiveRecord union with Arel
I had to create a complex SQL query with rails that must return an ActiveRecord::Relation
After reading over Dan Shultz presentation about Arel i decided to follow the solution h...
How to restore kde klipper confirm dialog to defaults (KDE4)
I asked the same question from myself and it took some time to find a proper solution.
KDE config settings stored in ~/.share/config
and klippers' in ~/.share/config/klipperrc
In that file there is configuration group called Notifica...
ActiveRecord chaining multiple union with Arel
It seems chain uinon with union is possible with newer versions of Arel. But i currently stucked with 3.0.2 so this is what i come up with:
beer = Beer.arel_table
union1 = Beer.where(name: "Oberon").union(Beer.where(name: "Two Hearted"))...