Skip to content

Instantly share code, notes, and snippets.

@taycaldwell
taycaldwell / cbw.svg
Created July 19, 2022 20:39
Coinbase Wallet Icon (SVG)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"info": "Info",
"data": [
{
"author": "Author",
"quotes": [
"Test 1!",
"Test 2!"
]
}
import net.rithms.riot.api.ApiConfig;
import net.rithms.riot.api.RiotApi;
import net.rithms.riot.api.RiotApiException;
import net.rithms.riot.api.endpoints.stats.dto.AggregatedStats;
import net.rithms.riot.api.endpoints.stats.dto.RankedStats;
import net.rithms.riot.constant.Region;
/**
* This is a simple example using the RiotApi to request summoner information for a few given summoner names
*/
@taycaldwell
taycaldwell / Example.java
Last active May 24, 2017 03:02
Champion, spell, item image name examples
package testing;
import java.util.Map;
import constant.Region;
import constant.staticdata.ChampData;
import constant.staticdata.ItemListData;
import constant.staticdata.SpellData;
import dto.Static.Champion;
import dto.Static.ChampionList;
@taycaldwell
taycaldwell / gist:016092ce6d20f122d6bc
Created May 10, 2015 17:15
Output for queues and league example
Name: Doublelift
Queue: RANKED_SOLO_5x5
Tier: CHALLENGER
Division: I
Wins: 110
Losses: 45
League Points: 1269
----------------------
Name: Acolyte of Peng
Queue: RANKED_TEAM_5x5
@taycaldwell
taycaldwell / Example.java
Created May 10, 2015 17:14
riot-api-java queue leagues and teams example (5/10/15)
package testing;
import java.util.List;
import java.util.Map;
import constant.Region;
import dto.League.League;
import dto.League.LeagueEntry;
import dto.Match.MatchDetail;
import dto.Match.Team;
@taycaldwell
taycaldwell / Example.java
Last active August 29, 2015 14:20
riot-api-java example (5/9/2015)
package testing;
import java.util.List;
import constant.Region;
import dto.Match.MatchDetail;
import dto.Match.Team;
import dto.MatchHistory.MatchSummary;
import dto.MatchHistory.Participant;
import dto.MatchHistory.ParticipantStats;
import dto.MatchHistory.PlayerHistory;
@taycaldwell
taycaldwell / gist:f04a53165b646af92f5a
Last active August 29, 2015 14:20
names of hearthstone enums
(268, 'DevState')
(197, 'Charge')
(32, 'TriggerVisual')
(370, 'AffectedBySpellPower')
(293, 'Morph')
(45, 'Health')
(47, 'Atk')
(48, 'Cost')
(183, 'CardSet')
(184, 'CardTextInHand')
@taycaldwell
taycaldwell / gist:1cf02ff2effed7970005
Last active August 29, 2015 14:20
print enum => name dict for hearthstone card XML data
from bs4 import BeautifulSoup
import glob
enum_id_dict = {}
for f in glob.glob('cardxml0/TextAsset/*txt'):
with open(f) as cardfile:
cardsoup = BeautifulSoup(cardfile.read(), features="xml")
card = cardsoup.find('Entity')
@taycaldwell
taycaldwell / Example.cs
Created April 26, 2015 11:02
object and is keyword example in C#
object range = howeverYouGetThisValue();
if (range is List)
{
Console.WriteLine("Non-self targeting spell.");
}
else
{
Console.WriteLine("Self targeting spell.");
}