Skip to content

Instantly share code, notes, and snippets.

View kostafey's full-sized avatar

kostafey kostafey

View GitHub Profile
<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE hrd PUBLIC "-//Cail Lomecb//DTD Colorer HRD take5//EN"
"http://colorer.sf.net/2003/hrd.dtd">
<hrd xmlns="http://colorer.sf.net/2003/hrd">
<assign name="def:Text" fore="#55cc66" back="#001800"/>
<assign name="def:HorzCross" fore="#e1ebe0" back="#80003300"/>
<assign name="def:VertCross" fore="#e1ebe0" back="#80003300"/>
<assign name="def:Intersect" fore="#e1ebe0" back="#80003300"/>
<assign name="def:Mark" fore="#c0001800" back="#c055cc66"/>
@kostafey
kostafey / gitgrep.go
Last active February 27, 2018 16:39
gitgrep.go
package main
import (
"fmt";
"os";
"os/exec";
"io/ioutil";
"path/filepath";
"github.com/fatih/color";
)
/**
* Concat paths as you expected.
*/
def concat (paths: String*): String = {
(paths.length match {
case 0 => Paths.get("")
case 1 => Paths.get(paths(0))
case _ => Paths.get(
paths.foldLeft("")((acc: String, next: String) =>
if (next == "..") {
;;; common-mode-line.el --- mode-line common for all windows.
;; Copyright (C) 2017 Constantin Kulikov
;;
;; Author: Constantin Kulikov (Bad_ptr) <zxnotdead@gmail.com>
;; Version: 0.1
;; Package-Requires: ()
;; Date: 2017/01/24 16:22:13
;; License: GPL either version 2 or any later version
;; Keywords: frames, windows, mode-line, convenience
@kostafey
kostafey / gist:8594475
Created January 24, 2014 09:29
Emacs CUA infinite override key delay test.
(require 'lorem-ipsum)
(fset 'lorem-insert
[?\M-x ?L ?o ?r ?e ?m ?- ?i ?p ?s ?u ?m ?- ?i ?n ?s ?e ?r ?t ?- ?p ?a
tab return])
(fset 'key-home [C-home])
(fset 'select-word-right [C-S-right])
(fset 'select-word-left [C-S-left])
(fset 'select-word-left [C-S-left])
(fset 'select-line-right [S-end])