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
function weightedAverage(v, w) { | |
var sum_v = 0; | |
var sum_w = 0; | |
if(!v || !w){ | |
return "#ERROR: You need 2 arguments."; | |
} | |
if (v.length != w.length) { | |
return "#ERROR: Incorrect number of values and weights"; | |
} | |
var i = v.length; |
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
define(function(require, exports, module){ | |
var React = require('react'); | |
var constants = require('constants'); | |
var _ = require('underscore'); | |
var motivationalLines = [ | |
'Life isn’t about getting and having, it’s about giving and being.', | |
'Whatever the mind of man can conceive and believe, it can achieve.', | |
'You miss 100% of the shots you don’t take.', | |
'Every strike brings me closer to the next home run.', | |
'The mind is everything. What you think you become.', |
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
// Generated on 2013-09-17 using generator-webapp 0.4.2 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
// limit max unit per wave to 50 | |
// begin by creating the cheapest units, when it reach 50 units and you still have hardness to spend | |
// then remove the first in the array and build a harder one. When all of the units are of one type it migrates | |
// to the other level. | |
var toSpawn = []; | |
var l = 0; | |
var max = 50; | |
var currentLevel = 0; | |
while(remainingHardness > 0){ | |
if(l < max){ |
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 BuildTemplate = ' \ | |
<h2 class="small-caps">build</h2> \ | |
'; | |
var BuildV = BaseV.extend({ | |
className: 'btn-group-vertical', | |
initialize: function(o){ | |
this.__player = o.player; |
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 Signal = function(){} | |
Signal.prototype = { | |
init: function(){ | |
this.listeners = []; | |
this.looping = false; | |
this.length = 0; | |
}, | |
add: function(method, applyOn){ |
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
SELECT cod_fam, | |
nome_fam, | |
id_vendedor, | |
nome_vendedor, | |
id_zona, | |
conta_cli, | |
sub_conta_cli, | |
nome_cli, | |
Sum(venda1) AS VENDAS1, | |
Sum(venda2) AS VENDAS2, |
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
SELECT cod_fam, | |
nome_fam, | |
id_vendedor, | |
nome_vendedor, | |
id_zona, | |
conta_cli, | |
sub_conta_cli, | |
nome_cli, | |
Sum(venda1) AS VENDAS1, | |
Sum(venda2) AS VENDAS2, |
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 React = require('react'); | |
var Colors = require('client/ui/Colors'); | |
var SmartCSS = require('SmartCSS'); | |
var ProgressBar = require('client/ui/generic/ProgressBar'); | |
var Icon = require('client/ui/icons/Icon'); | |
var tinycolor = require('tinycolor'); | |
var utils = require('utils'); | |
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
- Game: http://54.77.31.219/ | |
- Last version video: https://www.youtube.com/watch?v=5H3Pu4WFZD4 | |
- Community: https://plus.google.com/u/1/communities/105437932515232469714 |
NewerOlder