Skip to content

Instantly share code, notes, and snippets.

View ananthakumaran's full-sized avatar

Anantha Kumaran ananthakumaran

View GitHub Profile
(defface tree-sitter-hl-face:warning
'((default :inherit font-lock-warning-face))
"Face for parser errors"
:group 'tree-sitter-hl-faces)
(defun hook/tree-sitter-common ()
(unless font-lock-defaults
(setq font-lock-defaults '(nil)))
(setq tree-sitter-hl-use-font-lock-keywords nil)
(tree-sitter-mode +1)

Gitlab Merge Assistant

Gitlab provides a feature called semi-linear history merge requests which only allows fast forward merge. This ensures the target branch is always green.

If you have a mono repo or a repo with lot of committers, merging a reviewed MR into master branch can get tedious. As only one MR can be merged at a time and all the pending MRs will be invalidated after the

Tide

Build Status

TypeScript Interactive Development Environment for Emacs

screencast

Installation

Tide

Build Status

TypeScript Interactive Development Environment for Emacs

screencast

Installation

Tide

Build Status

TypeScript Interactive Development Environment for Emacs

screencast

Installation

Tide

Build Status

TypeScript Interactive Development Environment for Emacs

screencast

Installation

#!/bin/sh
if [ -n "${EXRM_INIT_TRACE}" ]; then
set -x
fi
SCRIPT_DIR="$(dirname "$0")"
RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
REL_NAME="expato"
RELEASES_DIR="$RELEASE_ROOT_DIR/releases"
@ananthakumaran
ananthakumaran / index.html
Created April 2, 2015 08:09
Path benchmark
<div>
<div class="delta">
<label>delta</label>
<input class="delta" type="range" min="1" max="100" value="50" />
<output></output>
</div>
<div class="paths">
<label>paths</label>
<input type="range" min="1" max="100" value="10" />
<output></output>
@mixin font-face($font-family, $filename) {
@font-face {
font-family: $font-family;
src: font-url("#{$filename}.eot");
src: font-url('#{$filename}.eot?#iefix') format('embedded-opentype'),
font-url('#{$filename}.svg##{$font-family}') format('svg'),
font-url('#{$filename}.woff') format('woff'),
font-url('#{$filename}.ttf') format('truetype');
font-weight: normal;
font-style: normal;
#!/bin/bash
args=$@
log_off() {
mysql $args <<<"SET GLOBAL general_log = 'OFF'"
echo 'set general_log off'
}
trap log_off SIGINT