Skip to content

Instantly share code, notes, and snippets.

" Setup NeoBundle ----------------------------------------------------------{{{
if (!isdirectory(expand("$HOME/.config/nvim/bundle/repos/github.com/dein.vim")))
call system(expand("mkdir -p $HOME/.config/nvim/bundle/repos/github.com"))
call system(expand("git clone https://github.com/Shougo/dein.vim $HOME/.config/nvim/bundle/repos/github.com/dein.vim"))
endif
" Required:
if &compatible
set nocompatible
endif
set runtimepath+=~/.config/nvim/bundle/repos/github.com/dein.vim/
import {App, IonicApp, Platform} from 'ionic-framework/ionic';
import {GettingStartedPage} from './pages/getting-started/getting-started';
import {ListPage} from './pages/list/list';
@App({
templateUrl: 'build/app.html',
config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
class MyApp {
#!/bin/bash
### Customization:
blue="\033[0;34m"
brightblue="\033[1;34m"
cyan="\033[0;36m"
brightcyan="\033[1;36m"
green="\033[0;32m"
brightgreen="\033[1;32m"
red="\033[0;31m"
angular.module('starter', ['ionic', 'ngAudio'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
StatusBar.styleDefault();
}
echom 'hello'
syntax region bracketFold start=/\[/ end=/]/ transparent fold
set foldmethod=syntax
var test2 = function() {
};
/**
* test
**/
var test = \[
]
# Disable smart dashes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
.directive('navBarClass', function() {
return {
restrict: 'A',
compile: function(element, attrs) {
// We need to be able to add a class the cached nav-bar
// Which provides the background color
var cachedNavBar = document.querySelector('.nav-bar-block[nav-bar="cached"]');
var cachedHeaderBar = cachedNavBar.querySelector('.bar-header');
#!/usr/bin/env node
var gulp = require('gulp');
var path = require('path');
var rootdir = process.argv[2];
require(path.join(rootdir, 'gulpfile.js'));
gulp.start('sass');
import {Injectable, Pipe} from 'angular2/core';
@Injectable()
@Pipe({ name: 'filter' })
export class FilterArrayPipe {
transform(value, args) {
if (!args[0]) {
return value;
} else if (value) {
return value.filter(item => {
for (let key in item) {