Skip to content

Instantly share code, notes, and snippets.

@adhumi
adhumi / share-extensions.json
Last active October 9, 2024 07:31
List of share extensions bundle ids
{
"Facebook": "com.apple.UIKit.activity.PostToFacebook",
"Facebook Messenger": "com.facebook.Messenger.ShareExtension",
"Twitter": "com.apple.UIKit.activity.PostToTwitter",
"Tweetbot": "com.tapbots.Tweetbot4.shareextension",
"WhatsApp": "net.whatsapp.WhatsApp.ShareExtension",
"WeChat": "com.tencent.xin.sharetimeline",
"Snap": "com.toyopagroup.picaboo.share",
"Microsoft Outlook": "com.microsoft.Office.Outlook.compose-shareextension",
"Pocket": "com.ideashower.ReadItLaterPro.AddToPocketExtension",
@adhumi
adhumi / cleanup_git_branches
Created August 3, 2016 09:09
A script to easily cleanup the branches of a git repository
#! /bin/sh
# cleanup_git_branches <folder>
pwd=$(pwd)
cd $1
for branch in $(git branch | cut -c 3-); do
printf "Delete \e[32m$branch\e[0m ? (y/n, default 'no') "
read var
typedef int(^Block)(void);
Block b[3];
for (int i = 0; i < 3; i++)
b[i] = ^{return i;};
for (int i = 0; i < 3; i++)
NSLog(@"%d", b[i]());