Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Litt on code 👨‍💻

Siddhant Nandkishor Pagariya sidpagariya

💭
Litt on code 👨‍💻
View GitHub Profile
View backup-homebrew.sh
#!/bin/bash
brew_command=/usr/local/bin/brew
brew_cask_command="$brew_command cask"
echo '#!/bin/bash'
echo ''
echo 'trap ctrl_c INT'
echo 'function ctrl_c() {'
echo 'echo "** Trapped CTRL-C"'
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sidpagariya
sidpagariya / SnapShatter.java
Created Mar 25, 2018 — forked from anonymous/SnapShatter.java
Snapchat streak bot for Android based off of UIAutomation. Raw
View SnapShatter.java
package com.packageName.snapchatuiautomat;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.content.Context;
import android.content.Intent;
import android.os.RemoteException;
import android.support.test.InstrumentationRegistry;
View NSUserDefaults+UIColor.swift
extension NSUserDefaults {
func colorForKey(key: String) -> UIColor? {
var color: UIColor?
if let colorData = dataForKey(key) {
color = NSKeyedUnarchiver.unarchiveObjectWithData(colorData) as? UIColor
}
return color
}
You can’t perform that action at this time.