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
[push] | |
default = current | |
[core] | |
trustctime = false | |
editor = vim | |
filemode = false | |
ignorecase = true | |
autocrlf = true | |
[color] | |
ui = true |
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
function addOptionsToSelect($select, selectedItems){ | |
var options = ['opt1', 'opt2', 'opt3']; | |
selectedItems = selectedItems || []; | |
var $currentOpt, currentOptionName, isSelected; | |
for(var i = 0, len = options.length; i < len; i++){ | |
currentOptionName = options[i]; | |
isSelected = selectedItems.indexOf(currentOptionName) > -1; | |
$currentOpt = $('<option>', {value: currentOptionName, selected: isSelected}).text(currentOptionName); | |
$select.append($currentOpt); | |
} |
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
/* | |
* Shim for things not defined in IE8 | |
* | |
*/ | |
/* | |
Fix Event.preventDefault | |
*/ | |
if (!Event.prototype.preventDefault) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<TaskOptions> | |
<TaskOptions> | |
<option name="arguments" value="C:\Users\mdvorscak\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js specs" /> | |
<option name="checkSyntaxErrors" value="false" /> | |
<option name="description" value="Automatically run jasmine tests using gulp" /> | |
<option name="exitCodeBehavior" value="ERROR" /> | |
<option name="fileExtension" value="js" /> | |
<option name="immediateSync" value="true" /> | |
<option name="name" value="Auto Test runner" /> |
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
Setting up WebStorm | |
1. Download + Install webstorm (https://www.jetbrains.com/webstorm/) | |
2. Download + Install NodeJS (https://nodejs.org/download/) | |
3. Download + Install Git (http://git-scm.com/downloads) | |
4. Install bower <npm i bower -g> | |
5. Add node and npm to your path: | |
a. see http://stackoverflow.com/questions/21732447/bower-command-not-found-windows | |
b. Paths to add "C:\Program Files (x86)\nodejs;C:\Users\{username}\AppData\Roaming\npm" | |
6. Restart WebStorm |
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
" URL: http://vim.wikia.com/wiki/Example_vimrc | |
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode | |
" Description: A minimal, but feature rich, example .vimrc. If you are a | |
" newbie, basing your first .vimrc on this file is a good choice. | |
" If you're a more advanced user, building your own .vimrc based | |
" on this file is still a good idea. | |
"------------------------------------------------------------ | |
" Features {{{1 | |
" |
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
alias ..='cdl ..' | |
alias ...='cdl ../..' | |
alias ....='cdl ../../..' | |
alias .....='cdl ../../../..' | |
alias .4='cdl ../../../../' | |
alias .5='cdl ../../../../..' | |
alias cim='vim' | |
alias root='sudo su' | |
alias v='vim' | |
alias la='ls -A' |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../ace-element/ace-element.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> |
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
<link rel="import" href="../code-mirror/code-mirror.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |