Skip to content

Instantly share code, notes, and snippets.

View DanCarlyon's full-sized avatar

Dan Carlyon DanCarlyon

View GitHub Profile
@DanCarlyon
DanCarlyon / forscan_wine.md
Created February 2, 2025 23:07 — forked from jcpsimmons/forscan_wine.md
Forscan on MacOS Montery with wine/wineskin

Info

Forking this for posterity - this is the only thing that worked for me

I can confirm that this works with the following setup:

  • Forscan version 2.3.45
  • Sonoma
  • M3 chip
  • This Adapter
  • 2021 Ford Bronco Big Bend 7 Speed Manual
@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