This file contains 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
$.getScript('https://www.swarminteractive.com/js/vm.js';, function(e) { | |
swarms.each(function(i) { | |
window.openthis = $(this).attr('id'); | |
window.client = null; | |
window.width = null; | |
if (openthis.length) { | |
window.client = 4251; | |
window.width = $(this).width(); | |
window.secure = true; |
This file contains 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
<div id="vm"></div> | |
<script type="text/javascript" src="https://www.swarminteractive.com/js/vm.js"></script> | |
<script type="text/javascript">client="CLIENT_ID"; secure=true; width=580; vm_open();</script> |
This file contains 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
Below are directions for embedding ViewMedica on a single page. You can then create links that will open that single embed to all of the animations in your personal ViewMedica library. | |
# 1. Create a page with the main ViewMedica embed | |
You can retrieve this information from your ViewMedica account at http://swarminteractive.com/vm/. After you log in click on the "Installation Support" tab. The code you want will look something like this: | |
------------------------------------------------------------------ | |
<!-- ViewMedica Embed Start --> | |
<div id="vm"></div> | |
<script type="text/javascript" src="http://www.swarminteractive.com/js/vm.js"></script> |
This file contains 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
" Cursor to yellow on insert mode | |
" Blue on command/other mode | |
" Note the use of hex codes (ie 3971ED) | |
if exists('$TMUX') | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\033]Pl3971ED\033\\" | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\033]PlFBA922\033\\" | |
silent !echo -ne "\<Esc>Ptmux;\<Esc>\033]Pl3971ED\033\\" | |
autocmd VimLeave * silent !echo -ne "\<Esc>Ptmux;\<Esc>\033]Pl3971ED\033\\" | |
else | |
let &t_EI = "\033]Pl3971ED\033\\" |
This file contains 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
app.controller('BaseController', function() { | |
this.message = "Ready"; | |
this.players = data; | |
//this.players.fieldGoalPercentage = this.players.fieldGoals / this.players.fieldGoalsAttempted; | |
//this doesn't work because this.players is an array of players | |
//so it's not assigning to everyone in the array | |
//if you wanted to use this method youd have to do a loop | |
// something like for(var i in this.players) { this.players[i].fieldGoalPercentage = ... } | |
This file contains 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
// Show and hide functions | |
this.moreInfo = function(playerLastName){ | |
//toggles player details | |
this.showPlayerDetails = !this.showPlayerDetails; | |
this.playerLast = playerLastName; | |
console.log(playerLastName); | |
for (var i = 0; i < this.players.length; i++) { | |
// console.log(i); | |
if (playerLastName == this.players[i].last) { |
This file contains 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 app = angular.module('basketball', []); | |
app.controller('BasketballController', function() { | |
console.log("success!"); | |
}); |
This file contains 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
let mapleader = "," | |
set smoothscroll | |
let scrollstep = 100 | |
let barposition = "bottom" | |
map <Leader>r reloadTabUncached | |
map gb :buffer<Space> | |
map B :bookmarks! <Space> | |
map P :pintab<CR> | |
map p :unpintab<CR> |