Skip to content

Instantly share code, notes, and snippets.

@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

iOS9 fixes for Ionic

iOS9 introduces some breaking changes as well as a new security model for apps. If your app requires any http requests, the request will fail once they are recompiled locally.

For acces to any external URLs, simply add the follow to the platform/ios/<app-name>/Resources/<app-name>-Info.plist

<key>NSAppTransportSecurity</key>
angular.module('sfViewCtrlDirective', [])
.directive('open', OpenDirective);
function OpenDirective() {
return {
restrict: 'A',
link: function($scope, $element, $attr) {
console.log('device is ready');
$element.on('click', function() {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
app.factory("HelloWorldService",['$q',function($q){
var worker = new Worker('doWork.js');
var defer = $q.defer();
worker.addEventListener('message', function(e) {
console.log('Worker said: ', e.data);
defer.resolve(e.data);
}, false);
return {
// Type definitions for Ionic
// Project: http://ionicframework.com
// Definitions by: Spencer Williams <https://github.com/spencerwi/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module ionic {
module actionSheet {
interface IonicActionSheetService {
@mhartington
mhartington / app.js
Last active October 1, 2015 13:23
Rotation in ios
// This needs to be outside of your main angular.module declaration
function shouldRotateToOrientation(degrees) {
return true;
}
angular.module('myApp', ['ionic'])