This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echom 'hello' | |
| syntax region bracketFold start=/\[/ end=/]/ transparent fold | |
| set foldmethod=syntax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var test2 = function() { | |
| }; | |
| /** | |
| * test | |
| **/ | |
| var test = \[ | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Disable smart dashes as they’re annoying when typing code | |
| defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |