Skip to content

Instantly share code, notes, and snippets.

View DanCarlyon's full-sized avatar

Dan Carlyon DanCarlyon

View GitHub Profile
@DanCarlyon
DanCarlyon / 2021-04-11.log
Created April 11, 2021 10:31
Client log for 11/04/21
This file has been truncated, but you can view the full file.
[08:55:11] [main/INFO]: ModLauncher running: args [--username, DanCarlyon, --version, forge-36.1.2, --gameDir, I:\Twitch\Minecraft\Instances\All the Mods 6 - ATM6 - 1.16.5, --assetsDir, I:\Twitch\Minecraft\Install\assets, --assetIndex, 1.16, --uuid, 60c8248e815747738f3ae89bebf8bc7f, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 1024, --height, 768, --launchTarget, fmlclient, --fml.forgeVersion, 36.1.2, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550]
[08:55:11] [main/INFO]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation
[08:55:11] [main/WARN]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED
[08:55:12] [main/INFO]: Added Lets Encrypt root certificates as additional trust
[08:55:12] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/I:/Twitch/Minecraft/Install/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT
[08:55:14] [main/INFO]
@DanCarlyon
DanCarlyon / API.swift
Last active August 29, 2015 14:07 — forked from higepon/API.swift
//
// API.swift
//
// Created by Taro Minowa on 6/10/14.
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved.
//
import Foundation
typealias JSONDictionary = Dictionary<String, AnyObject>

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter