Skip to content

Instantly share code, notes, and snippets.

Firoze Rakib firoze

  • Mobiquity Inc.
Block or report user

Report or block firoze

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@firoze
firoze / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@firoze
firoze / jenkins_android_gradle_buildNum
Last active Feb 28, 2018
[Android Gradle] Auto-Increment version code/name in AndroidManifest/Gradle before Jenkins Build
View jenkins_android_gradle_buildNum
import java.util.regex.Pattern
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
buildscript {
repositories {
mavenCentral()
}
@firoze
firoze / AsyncGetLocationForStoreTask
Created Dec 11, 2014
AsyncTask that gets Lat/Long using Geocoder first, otherwise makes HTTP call to Google Geocoding API to do the same (inspired by @kentarosu)
View AsyncGetLocationForStoreTask
class AsyncGetLocationForStoreTask extends AsyncTask<String, Integer, Location> {
private ProgressDialog pDialog;
private String str;
public AsyncGetLocationForStoreTask(String s) {
str = s;
}
@Override
View git-loglive
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
View gist:f1fa582000ecd817547c
Thepathof
therighteousmanis
besetonallsidesbytheiniq
uitiesoftheself ishandth
etyrannyofevi lmen.Bl
essedishewho,in thenam
eofcharityandgoo dwill
,shepherdst heweak throughthev alley
ofdarkness,forheist rulyhisbrother' skee
perandthefinderof lostchildren.AndIwill
@firoze
firoze / java_sha1
Created Jan 15, 2015
SHA1 Some String in Java
View java_sha1
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class HashTextTest {
/**
* @param args
* @throws NoSuchAlgorithmException
*/
public static void main(String[] args) throws NoSuchAlgorithmException {
@firoze
firoze / instaService
Last active Aug 29, 2015
Cordova Instagram wrapper
View instaService
angular.module("ycf").factory("ycfInstagram", function($q, social, groupVerification, loadingDialog, validationAlert, $ionicPopup) {
var insta = {};
insta.msg = "Support my YC Fundraiser!";
insta.post = function(type) {
if (type == "marketing") {
return insta.market();
} else {
return insta.invite();
View delay.promise.js
function delay(t){
return new Promise(function(resolve){
return setTimeout(resolve, t);
});
}
function logHi(){
console.log('hi');
}
You can’t perform that action at this time.