Skip to content

Instantly share code, notes, and snippets.

🙈
Just do it!

Hossain Khan amardeshbd

🙈
Just do it!
Block or report user

Report or block amardeshbd

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
View cast_receiver.js
'use strict';var cr$,cr$a=this,cr$aa=function(a){a=a.split(".");for(var b=cr$a,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b},cr$ba=function(){throw Error("unimplemented abstract method");},cr$b=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&
!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},cr$ca=function(a){var b=cr$b(a);return"array"==b||"object"==b&&"number"==typeof a.length},cr$c=function(a){return"string"==typeof a},cr$da=function(a){var b=typeof a;return"object"==b&&null!=a||"function
View 01_idea-opening-project.txt
2014-03-26 09:02:32
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):
"forward input" daemon prio=4 tid=0x00000000139d9000 nid=0x30e78 waiting on condition [0x0000000014f5e000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000bcb60008> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
@amardeshbd
amardeshbd / 01_idea-gradle-build-in-progress-before-frozen.txt
Created Mar 26, 2014
This is second try to generate Android Studio thread dump for the issue found at https://plus.google.com/+ashokraju/posts/1CJSqaX1Xxy
View 01_idea-gradle-build-in-progress-before-frozen.txt
2014-03-26 10:50:30
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):
"JobScheduler FJ pool 0/4" daemon prio=6 tid=0x000000001855f800 nid=0x35458 waiting on condition [0x000000001bbff000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000cf421118> (a jsr166e.ForkJoinPool)
at jsr166e.ForkJoinPool.awaitWork(ForkJoinPool.java:1756)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1694)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
View svn-backup-cron.sh
#!/bin/sh
################################################
#
# Backup SVN repos to local folder
#
# @author Hossain Khan
# @email contact [at] hossainkhan [dot] info
# @version v0.01
# @reldate 2010-03-27
################################################
View json-resume-themes.txt
#inline
jsonresume-theme-sceptile jsonresume-theme-elegant-ryantrinkle jsonresume-theme-classy jsonresume-theme-dark-classy jsonresume-theme-dark-classy-responsive jsonresume-theme-modern jsonresume-theme-contempo jsonresume-theme-nameme jsonresume-theme-kwan jsonresume-theme-elegant-tautologistics jsonresume-theme-bootstrap-icons jsonresume-theme-qlh jsonresume-theme-elegant-fr jsonresume-theme-wb-elegant jsonresume-theme-modern-extended jsonresume-theme-elegant-tarq jsonresume-theme-compact-extended jsonresume-theme-compact jsonresume-theme-striking jsonresume-theme-kendall-beardtree
#newline
jsonresume-theme-sceptile
jsonresume-theme-elegant-ryantrinkle
jsonresume-theme-classy
jsonresume-theme-dark-classy
jsonresume-theme-dark-classy-responsive
jsonresume-theme-modern
@amardeshbd
amardeshbd / chromecast-config.json
Last active Jan 3, 2016 — forked from nathanjones/chromecast-config.json
Updated list based as on January 20, 2014
View chromecast-config.json
{
"applications": [
{
"use_channel": true,
"allow_empty_post_data": true,
"app_name": "edaded98-5119-4c8a-afc1-de722da03562",
"url": "http://chromecast.redbull.tv/receiver.php"
},
{
@amardeshbd
amardeshbd / keybase.mb
Created May 14, 2016
Keybase identity proff
View keybase.mb
### Keybase proof
I hereby claim:
* I am amardeshbd on github.
* I am hossainkhan (https://keybase.io/hossainkhan) on keybase.
* I have a public key ASAHC_7nTgLPCysHlkmwnIH_25aD_Ah-jtCfZ2yQp8iI3Qo
To claim this, I am signing this object:
@amardeshbd
amardeshbd / api-spec_validation_test.sh
Last active Aug 21, 2016
Shell script that uses shUnit2 for validating OpenAPI specification file. This file is taken from https://github.com/amardeshbd/medium-api-specification and **modified** for embedding on web, see github project for details.
View api-spec_validation_test.sh
#!/bin/sh
# NOTE: This file is modified version taken from:
# https://github.com/amardeshbd/medium-api-specification/blob/master/api-spec_validation_test.sh
# Tests the swagger specificaton using online service
testOpenApiSpecValidity() {
expectedOutput="{}"
expectedOutputSize=${#expectedOutput}
@amardeshbd
amardeshbd / ApiClient.java
Last active Aug 23, 2016
Source Code for ApiClient.java - generated using swagger code gen tool. It uses Retrofit2 Java client library. NOTE: This file has slight modification to fix an issue detailed at https://github.com/amardeshbd/medium-api-android-sample
View ApiClient.java
package io.swagger.client;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder;
@amardeshbd
amardeshbd / travis-ci-build.yml
Last active Aug 28, 2016
Travis-CI build config file used for validating OpenAPI specification file. This file is taken from https://github.com/amardeshbd/medium-api-specification and **modified** for embedding on web, see github project for details.
View travis-ci-build.yml
language: bash
before_script:
# Load the shUnit2 for running shell-script unit test
- curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
script:
# Get proper branch name based on http://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
You can’t perform that action at this time.