Skip to content

Instantly share code, notes, and snippets.

View macalinao's full-sized avatar

Ian Macalinao macalinao

View GitHub Profile
func makeQuotientSubscalarStringMap(ss map[string]*apb.MatchSum_Subscalars, plays float64) map[string]*apb.MatchQuotient_Subscalars {
// goddamit go
// no fucking generics
// fucking piece of shit
ret := map[string]*apb.MatchQuotient_Subscalars{}
for key, s := range ss {
ret[key] = makeQuotientSubscalars(s, plays)
}
return ret
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 🔑 Felony (PGP made easy) v0.0.1
Comment: 👀 How do I use this? --> http://felony.io 😉
xsBNBFeEXioBCADuhVqfr32bTPLlCcWmo1/ThVLOZhtK/pWuYbp3YabzScT+
/ebB9ExZSShIXu3FvL/IvprEgq1x5+F8+E3335VoHsoYsDF7NVUqXt7jqlCS
TB1tjN1RnsYVKEucDClAR6c4ZLNxFEkA0+ySDNgU1Sdji8LZTNmKCz4j1tRL
3Gf07tKm4osvdAw7eliYwGILnI8vPlRJtCfZ5gQoNeAhcI1HvUOIw5KVTgKr
8j9m5XorYP/wnP3b/04leXhrAH3cEz9v8i6yqBcVf1djJAYRZLT3N8YT2fPq
bXoKJKNp/S+uRd775ttVKSmZVIVwhBrc6PygPPh+ZfmBDw6SNX9k0ulNABEB
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 🔑 Felony (PGP made easy) v0.0.1
Comment: 👀 How do I use this? --> http://felony.io 😉
xsBNBFeEXioBCADuhVqfr32bTPLlCcWmo1/ThVLOZhtK/pWuYbp3YabzScT+
/ebB9ExZSShIXu3FvL/IvprEgq1x5+F8+E3335VoHsoYsDF7NVUqXt7jqlCS
TB1tjN1RnsYVKEucDClAR6c4ZLNxFEkA0+ySDNgU1Sdji8LZTNmKCz4j1tRL
3Gf07tKm4osvdAw7eliYwGILnI8vPlRJtCfZ5gQoNeAhcI1HvUOIw5KVTgKr
8j9m5XorYP/wnP3b/04leXhrAH3cEz9v8i6yqBcVf1djJAYRZLT3N8YT2fPq
bXoKJKNp/S+uRd775ttVKSmZVIVwhBrc6PygPPh+ZfmBDw6SNX9k0ulNABEB
events: [
{
speaker: 'Ian',
text: 'Hello',
time: 0,
stats: {
openness: 50,
conscientiousness: 80,
extraversion: 30,
agreeableness: 40,
@macalinao
macalinao / sad.go
Created August 4, 2016 19:10
i cry every time
// StatusesWithIds finds all condition statuses that match the given ids.
func StatusesWithIds(in []*cpb.ConditionStatus, ids []*cpb.ConditionId) []*cpb.ConditionStatus {
// create our filter set
set := map[string]bool{}
for _, id := range ids {
set[util.StringifyID(id)] = true
}
// i.e. ids.map(util.StringifyID).toSet
var _ = require('lodash');
var P = require('bluebird');
var apac = require('apac');
var OperationHelper = apac.OperationHelper;
var opHelper = new OperationHelper({
awsId: process.env.AMAZON_AWS_ID,
awsSecret: process.env.AMAZON_AWS_SECRET,
assocId: process.env.AMAZON_SITE_ID
});
package ai.legends.athena.aggregates
import ai.legends.athena.utils.Combiners._
import ai.legends.athena.matches.Rune
import scala.collection.immutable.Map
case class RunesAggregate(
runes: Map[RuneSet, Int] = Map()
) {
package ai.legends.athena.aggregates
case class ChampionKDATotals (
assists: Long,
deaths: Long,
kills: Long,
killingSprees: Long,
pentaKills: Long,
quadraKills: Long,
tripleKills: Long,
# Riot API example requests
# To make full use of this document, use Emacs with the `restclient` package.
:base = http://localhost:3006
:baselol = :base/api/lol/:region
:region = na
# Featured games
GET :base/observer-mode/rest/featured
Riot-Region: :region
diff --git a/CNAME b/CNAME
new file mode 100644
index 0000000..cf75148
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+hackdfw.com
diff --git a/README.md b/README.md
index 2c56405..d5e216f 100644
--- a/README.md