Skip to content

Instantly share code, notes, and snippets.

@mhartington
mhartington / gist:07c529ed839e5265263f
Last active August 29, 2015 14:10
Emmet.vim function
" Remapping <C-y>, just doesn't cut it.
" This is a bit better and works for
" angular directives or web components
function! s:expand_html_tab()
" try to determine if we're within quotes or tags.
" if so, assume we're in an emmet fill area.
let line = getline('.')
if col('.') < len(line)
let line = matchstr(line, '[">][^<"]*\%'.col('.').'c[^>"]*[<"]')
.platform-android4_1 {
/*Any styles for android 4.1*/
}
.platform-android4_3 {
/*Any styles for android 4.3*/
}
.platform-android4_4 {
/*Any styles for android 4.4*/
This file has been truncated, but you can view the full file.
2001 silly mapToRegistry name array-union
2002 silly mapToRegistry using default registry
2003 silly mapToRegistry registry https://registry.npmjs.org/
2004 silly mapToRegistry uri https://registry.npmjs.org/array-union
2005 verbose addNameRange registry:https://registry.npmjs.org/array-union already in flight; waiting
2006 http 304 https://registry.npmjs.org/minimist
2007 silly get cb [ 304,
2007 silly get { date: 'Thu, 09 Apr 2015 22:00:46 GMT',
2007 silly get server: 'Apache',
2007 silly get via: '1.1 varnish',
/Users/mhartington/.config/tmux-status.conf:30: invalid or unknown command: set-window-option -qg window-status-format "#[fg=colour18 bg=colour18] | #[fg=white, bg=colour18] #I | ${PWD##/*/} #[fg=colour18, bg=colour18] | "                                                                                                                                             [0/0]
/Users/mhartington/.config/tmux-status.conf:31: invalid or unknown command: set-window-option -qg window-status-current-format "#[fg=colour18, bg=blue] | #[fg=white, bg=blue] #I |  ${PWD##/*/} #[fg=blue, bg=colour18] | "
@mhartington
mhartington / canDrag.js
Created April 22, 2015 00:20
Dynamically allow ion-items dragging
angular.module('canDragDirective', [ionic])
.directive('isPurchased', function($timeout, $ionicListDelegate) {
return {
restrict: 'A',
link: function($scope, $element) {
$timeout(function() {
var elm = $element[0];
ionic.on('touch', function() {
// Simple way to check if the item is already purchased
@mhartington
mhartington / index.md
Created May 10, 2015 22:09
Fast search with ctrlP and vim
  • install the silver searcher
brew install the_silver_searcher
  • Add this to your .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""
@mhartington
mhartington / base16-flat-dark.el
Created May 22, 2015 17:55
base16 flat-dark for emacs
;; Base16 Flat (https://github.com/chriskempson/base16)
;; Scheme: Chris Kempson (http://chriskempson.com)
;;; base16-flat-dark-theme.el
;;; Code:
(deftheme base16-flat-dark)
(let ((base00 "#2C3E50")
@mhartington
mhartington / gem_make.out
Created June 23, 2015 21:46
vimdeck install error
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for xcrun... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for snprintf() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for AcquireImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no

Given the follow window status in tmux

set-window-option -qg window-status-format "#[fg=colour237 bg=colour237]|#[fg=white bg=colour237] #I | #W #[fg=colour237 bg=colour237]|"

It seems that I am unable to change the activity styles at all.

setw -g window-status-activity-style fg=white,bold,bg=colour160

Test is a test of gist.vim