Skip to content

Instantly share code, notes, and snippets.

@gbajaj
gbajaj / dabblet.html
Created November 27, 2012 06:06
Untitled
<!-- content to be placed inside <body>…</body> -->
@gbajaj
gbajaj / dabblet.html
Created November 27, 2012 06:12
Untitled
#!/bin/bash
f=$(pwd)
mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi
# fake argv and argc in bash
argc=$#; argv[0]=$0 # argv[0] is a prog name
for foo in $( seq $argc )
do
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
public class FragmentUtils {
/**
* @param frag
* The Fragment whose parent is to be found
* @param callbackInterface
* The interface class that the parent should implement
* @return The parent of frag that implements the callbackInterface or null
package com.sjl.util;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import java.util.List;
package com.letsdecode.problems.recursion;
import java.util.ArrayList;
import java.util.List;
public class NQueeen {
int n;
boolean[][] a;
boolean truth[];
List<List<String>> list = new ArrayList<>();
@gbajaj
gbajaj / hockeyapp-uploader.sh
Created July 30, 2017 08:19 — forked from adascal/hockeyapp-uploader.sh
HockeyApp's Command Line Uploader is a shell script to upload your IPA or APK files to HockeyApp for monitoring and distribution.
#!/bin/sh
# locations of various tools
CURL=curl
SERVER_ENDPOINT=https://rink.hockeyapp.net/api/2/
# Put your HockeyApp APP_TOKEN here. Find it in your HockeyApp account settings.
APP_TOKEN=""
@gbajaj
gbajaj / gist:b9917610470d9cb75e66fc65d155cf60
Created July 8, 2019 20:15
Java Simple Integer Comparison
public class Main {
public static void main(String[] args) {
int a = 10;
int b = 10;
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
}
@gbajaj
gbajaj / intCompare.java
Created July 8, 2019 20:16
Java Simple Integer Comparison
public class Main {
public static void main(String[] args) {
int a = 10;
int b = 10;
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
}
@gbajaj
gbajaj / IntegerComparison.java
Created July 8, 2019 20:23
Compare Integers with Objects
public class Main {
public static void main(String[] args) {
Integer a = new Integer(10);
Integer b= new Integer(10);
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
}