Skip to content

Instantly share code, notes, and snippets.

View me97esn's full-sized avatar

Emil Stenberg me97esn

  • It-huset
  • Stockholm
View GitHub Profile
@me97esn
me97esn / gist:f7e0edccbd7327db247ba4f95d5f7e9c
Created April 20, 2023 07:54
Vim config ~/.config/nvim/init.vim
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-commentary'
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@me97esn
me97esn / keymap.cson
Created December 5, 2016 08:43
atom keymap
'atom-workspace atom-text-editor:not([mini])':
'ctrl-7': 'editor:toggle-line-comments'
'ctrl-1': 'standard-formatter:format'
'ctrl-shift-8': 'brackets:curlybrackets'
@me97esn
me97esn / snippets.cson
Last active February 9, 2017 11:33
atom snippets
'.source.js':
'module.exports':
'prefix': 'mod'
'body': 'module.exports = {}'
'description': 'CommonJS module exports'
'rightLabelHTML': '<span style="color:#ff0">Emil</span>'
'Tape test':
'prefix': 'test'
'body': """test('should ${1:do something}',t =>{
t.plan(1)
@me97esn
me97esn / .keymap
Last active August 29, 2015 14:18
keycode 8 =
keycode 9 = Escape NoSymbol Escape NoSymbol Escape Escape
keycode 10 = 1 exclam 1 exclam exclamdown onesuperior exclamdown onesuperior bracketleft braceleft 1 exclam
keycode 11 = 2 quotedbl 2 quotedbl at twosuperior at twosuperior 7 ampersand 2 at
keycode 12 = 3 numbersign 3 numbersign sterling threesuperior sterling threesuperior 5 percent 3 numbersign
keycode 13 = 4 currency 4 currency dollar onequarter dollar onequarter 3 numbersign 4 dollar
keycode 14 = 5 percent 5 percent EuroSign cent EuroSign cent 1 exclam 5 percent
keycode 15 = 6 ampersand 6 ampersand yen fiveeighths yen fiveeighths 9 parenleft dead_grave NoSymbol 6 asciicircum dead_circumflex dead_circumflex
keycode 16 = 7 slash 7 slash braceleft division braceleft division 0 parenright 7 ampersand
keycode 17 = 8 parenleft 8 parenleft bracketleft guillemotleft bracketleft guillemotleft 2 at 8 asterisk
@me97esn
me97esn / create_swedish_swype_dictionary.rb
Last active December 22, 2015 02:59
Script to create a swedish dictionary to be used with the iSwipe app to iphone
#! /Users/emilsandin/.rbenv/versions/2.0.0-preview1/bin/ruby
require 'plist'
require 'net/http'
a_ascii = "a".ord
url = "http://runeberg.org/words/ss100.txt"
content = Net::HTTP.get_response(URI.parse(url)).body
grouped_by_start_and_end_letters = content.encode("UTF-8", "ISO-8859-15").each_line.group_by {|s|
@me97esn
me97esn / routertest.js
Created August 27, 2013 13:47
An example on how to run a Jasmine test when the code under test is using require.js
define([
'../../../vendor/Squire',
'sinon'
],
function(
Squire, sinon
) {
describe("AppRouter routes", function() {
// set up the async spec