Skip to content

Instantly share code, notes, and snippets.

@tanis2000
tanis2000 / IabHelper-broken.java
Created February 5, 2014 14:16
Original Marketbilling querySkuDetails (broken)
int querySkuDetails(String itemType, Inventory inv, List<String> moreSkus)
throws RemoteException, JSONException {
logDebug("Querying SKU details.");
ArrayList<String> skuList = new ArrayList<String>();
skuList.addAll(inv.getAllOwnedSkus(itemType));
if (moreSkus != null) {
for (String sku : moreSkus) {
if (!skuList.contains(sku)) {
skuList.add(sku);
}
@tanis2000
tanis2000 / IabHelper.java
Created February 5, 2014 14:19
Working querySkuDetails for marketbilling
int querySkuDetails(String itemType, Inventory inv, List<String> moreSkus)
throws RemoteException, JSONException {
logDebug("Querying SKU details.");
ArrayList<String> skuList = new ArrayList<String>();
skuList.addAll(inv.getAllOwnedSkus(itemType));
if (moreSkus != null) {
for (String sku : moreSkus) {
if (!skuList.contains(sku)) {
skuList.add(sku);
}
// Cerulean 3.0.2
// Bootswatch
// -----------------------------------------------------
.btn-shadow(@color) {
#gradient > .vertical-three-colors(lighten(@color, 8%), @color, 60%, darken(@color, 4%));
filter: none;
border-bottom: 1px solid darken(@color, 10%);
}
@import "/packages/bootstrap3-less/lib/less/bootstrap.lessimport";
@import "variables.lessimport";
@import "bootswatch.lessimport";
@import "bootstrap-social.lessimport";
#login-buttons-image-facebook{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAq0lEQVQ4jWP8//8/AyWAhYGBgcEmauYZBgYGYxL1nj2yLN2ECcohVTNcDwsxKlXlhRm6yzwZRAS5GRgYGBhsombC5ZhwaUIGyJrRAVEuwGYzSS7AB/C64MiydKx8ZJfgNeDN+68MDAwIL8D4RLsgIHsJis0wPjKgOAyoE4hcnGwMGkpiBBUbacvA2TfuvaKiC759/3X23NUnOPMDtgTEwMBwloGBgYGR0uwMAGOPLJS9mkQHAAAAAElFTkSuQmCC)}#login-buttons-image-twitter{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAByklEQVQ4jaVTz0sbQRh92V10l006GaKJCtEtmqMYU0Qpwqb4B6zgXdT0WEr7B0ih4MGLP05CUWMvHkQwglhvGhsvKmJOBhTUQjWU2slilKarrAfdZROTQ8m7fPMx33szb75vXKZpohpwVbEBCNaCMUYopXppAWOMxDNsOPf3H1WIeDoSURYYYwQAKKW6y7KgLe2vam11KyMRZcEpEP6SOkwbUgc4ATAKUF8YW2fXhZejvaHPsc7gvH2DnCfQGEtdxrd/5NRJteUDpVTf+5kLp2WlA6JsCyZv9ChplPKdTfJZkYWhEF3bvnV3fb36NZSY3dP6Q/5V4hFvIAaKPckE8W5pLBIQdwHAthBdPtpJuhpeAwDu74DrP4/R1/Ts4cwBWg/gN+DowoSqTBPezAMAeAHw+suSw4Q7schFApF6af19a+2yLVIB7xR+0Zk75yCveu82FMnMViKHCXcSa3PPV
@tanis2000
tanis2000 / response.json
Created April 24, 2014 14:09
JSON response for Wain
{
"DailyGoalDetails": [
{
"DailyGoal": {
"ActivityUnit": {
"ActivityUnitId": 1,
"Name": "BEATS"
},
"DailyGoalId": 1,
"ActivityUnitId": 1,
@tanis2000
tanis2000 / mapping.txt
Created April 24, 2014 14:17
RestKit mapping
This file has been truncated, but you can view the full file.
2014-04-24 15:56:28.962 Megared Dev[26554:60b] D restkit.object_mapping:RKMapperOperation.m:378 Executing mapping operation for representation: {
DailyGoalDetails = (
{
AvgActivityTime = 12;
DailyGoal = {
ActivityUnit = {
ActivityUnitId = 1;
Name = BEATS;
};
ActivityUnitId = 1;
@tanis2000
tanis2000 / small.json
Created April 24, 2014 14:29
small json
{
"DailyGoalDetails": [
{
"DailyGoal": {
"ActivityUnit": {
"ActivityUnitId": 1,
"Name": "BEATS"
},
"DailyGoalId": 1,
"ActivityUnitId": 1,
@tanis2000
tanis2000 / trace.txt
Created April 24, 2014 14:30
mapping
2014-04-24 16:29:39.927 Megared Dev[28623:60b] D restkit.object_mapping:RKMapperOperation.m:377 Executing mapping operation for representation: {
DailyGoalDetails = (
{
AvgActivityTime = 12;
DailyGoal = {
ActivityUnit = {
ActivityUnitId = 1;
Name = BEATS;
};
ActivityUnitId = 1;
@tanis2000
tanis2000 / onesession.json
Created April 24, 2014 14:38
one session
{
"DailyGoalDetails": [
{
"DailyGoal": {
"ActivityUnit": {
"ActivityUnitId": 1,
"Name": "BEATS"
},
"DailyGoalId": 1,
"ActivityUnitId": 1,