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
#IfWinActive, Dota 2 | |
!Tab::Send {Tab} | |
Tab::Send {Tab} |
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
'use strict' | |
// to run- install node.js, save this to a folder, and then run: | |
// npm install median | |
// node dota.js | |
let median = require('median'); | |
// defaults (change these to fit your taste) | |
let start_mmr = 4400; |
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() { | |
function CommandIQ() { | |
// Constants / Configuration | |
var API_VERSION = 1 | |
// Libraries... need to move elsewhere | |
var Base64 = { | |
// private property | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", |
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
/*! | |
* jQuery.textcomplete.js | |
* | |
* Repositiory: https://github.com/yuku-t/jquery-textcomplete | |
* License: MIT | |
* Author: Yuku Takahashi | |
*/ | |
;(function ($) { |
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
.controller('ComparisonCtrl', ['$scope', '$rootScope', function($scope, $rootScope) { | |
var get_content_value_set = function() | |
{ | |
return $scope.events[$scope.event.key].segments[$scope.segment_index].conditions[$scope.condition.key].content_value_set; | |
} | |
var clear_empty_sets = function() | |
{ | |
if (find_comparison_set_by_value('').set != null) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>AngularJS Plunker</title> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script> | |
<script> | |
angular.module('broken', []) | |
.controller('MainCtrl', function ($scope, $location) { }); |
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 BaseView = Backbone.View.extend({ | |
initialize: function(options) { | |
this.init_loader(); | |
} | |
init_loader: function() { | |
this.loader = {}; | |
Backbone.View.prototype.on('workstart', this.start_work, this); | |
Backbone.View.prototype.on('workcomplete', this.end_work, this); | |
this.loader = new LoaderView(); |
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
/* | |
* Copyright 1999-2012 TeaLeaf Technology, Inc. | |
* All rights reserved. | |
* | |
*/ | |
var fs = require('fs'); | |
function SimpleLogger(logName, logDir, rollDays, consoleOutput) { | |
if(logDir == undefined || logDir == '') |
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
$.validator.setDefaults({ | |
errorElement:"label", | |
errorClass:"error", | |
validClass:"success", | |
highlight: function(element, errorClass, validClass) { | |
if (element.type === 'radio') { | |
this.findByName(element.name).parents('.control-group').addClass(errorClass).removeClass(validClass); | |
} else { | |
$(element).parents('.control-group').addClass(errorClass).removeClass(validClass); | |
} |