Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Shravan Jambukesan ShravanJ

🏠
Working from home
View GitHub Profile
@ShravanJ
ShravanJ / DeviceToken.cs
Created Oct 2, 2019
Get iOS 13 Device Token on Xamarin.iOS
View DeviceToken.cs
public override async void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
var token = "";
/* Tokens generated on devices running iOS 13+ follow a different format which requires conversion for the backend to process them
More info: https://nshipster.com/apns-device-tokens/
*/
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
{
byte[] result = new byte[deviceToken.Length];
Marshal.Copy(deviceToken.Bytes, result, 0, (int)deviceToken.Length);
@ShravanJ
ShravanJ / QueryAppStoreRecord.sh
Last active Feb 6, 2019
Get information about an App Store app record from the command line (requires curl and jq)
View QueryAppStoreRecord.sh
#!/bin/bash
# Requires curl and jq (https://stedolan.github.io/jq/)
# To run, make executable with chmod +x then execute with ./QuerryAppStoreRecord.sh com.company.app
# For example, ./QueryAppStoreRecord org.videolan.vlc-ios
curl -s https://itunes.apple.com/lookup?bundleId=$1 | jq '.'
View gist:c196e1300c67ecb2d2c7
/**CracklePop for hackerschool.com application
*@author Shravan Jambukesan
*/
public class CracklePop{
public static void main(String[] args) {
for (int x = 1; x <= 100; x++)
{
You can’t perform that action at this time.