Skip to content

Instantly share code, notes, and snippets.

View vineetchoudhary's full-sized avatar

Vineet Choudhary vineetchoudhary

View GitHub Profile
@vineetchoudhary
vineetchoudhary / clear-cache.m
Created February 1, 2017 06:17
Clear cache objective-c
+ (void)removeAllStoredCredentials{
// Delete any cached URLrequests!
NSURLCache *sharedCache = [NSURLCache sharedURLCache];
[sharedCache removeAllCachedResponses];
// Also delete all stored cookies!
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
NSArray *cookies = [cookieStorage cookies];
id cookie;
for (cookie in cookies) {
# SWAMI KARUPPASWAMI THUNNAI
# ============================================================
# Simple yet Hackable! WhatsApp API [UNOFFICIAL] for Python3
# Note: The author gives permission to use it under Apache 2.0
# Special Thanks To: alecxe, For reviewing my code!
# ============================================================
import time
import datetime as dt
@vineetchoudhary
vineetchoudhary / fix-xcode.rb
Created March 16, 2016 13:10 — forked from markrickert/fix-xcode.rb
Quick fix to all your Xcode SDK issues. When you update Xcode, just run this script and all is well.
#!/usr/bin/env ruby
# fix-xcode
# Mark Rickert <mjar81@gmail.com>
# Symlinks all your old SDKs to Xcode.app every time it is updated.
# Create a directory called /SDKs and run this script.
#
# Each time you upgrade Xcode, run fix-xcode.
@vineetchoudhary
vineetchoudhary / RealmExtension.cs
Last active September 21, 2023 12:50
Get a standalone / unmanaged / Clone RealmObject using Realm Xamarin
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using Realms;
namespace ProjectName.Core.Extensions
{
public static class RealmExtension
{