Skip to content

Instantly share code, notes, and snippets.

@igorgue
igorgue / nvim_init.vim
Last active August 31, 2020 04:28
Configuration for nvim I also use nvim-gtk
call plug#begin('~/.config/nvim/plugged')
" Keep Plug commands between plug#begin/end.
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'itchyny/lightline.vim'
Plug 'chriskempson/vim-tomorrow-theme'
Plug 'preservim/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-git'
@carlos-jenkins
carlos-jenkins / kuraterm.glade
Last active April 2, 2023 13:28
Example of a Gtk application using a VTE terminal widget written in Python 3
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<requires lib="vte-2.91" version="0.52"/>
<object class="GtkWindow" id="window">
<property name="can_focus">False</property>
<signal name="delete-event" handler="stop" swapped="no"/>
<child>
<placeholder/>
@bruncun
bruncun / create.js.erb
Last active August 2, 2016 16:33
Render Partials for jQuery UJS
(function () {
var partials = {
avatar: '<%= j render partial: "avatar", locals: { avatar: @profile.avatar } %>',
avatarForm: '<%= j render partial: "form" %>'
}
$.rails.renderPartials(partials);
})();
@tanyuan
tanyuan / smart-caps-lock.md
Last active April 24, 2024 15:22
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
using System;
using Gtk;
using Glade;
using Gecko;
// 2007, Igor Guerrero Fonseca
// A simple Gecko(Mozilla) browser
// using the Gtk# toolkit and Glade#(XML GUI for Gnome) tool
// and Gecko#(Mozilla C# binding)
// TODO: There's a lot of things that can be done in this program but,