This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// creating global parameters and start | |
// listening to 'port', we are creating an express | |
// server and then we are binding it with socket.io | |
var express = require('express'), | |
app = express(), | |
util = require('util'), | |
env = process.env.NODE_ENV || 'development', | |
server = require('http').createServer(app), | |
io = require('socket.io').listen(server), | |
gendb = require('./test/generator'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function readRows() { | |
// var SPREADSHEET_ID = ""; | |
var FOLDER_ID = ""; | |
var folder = DriveApp.getFolderById(FOLDER_ID); | |
moveOldKMLFilesToTrash(folder); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mydietitian.android.utils; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.content.SharedPreferences.Editor; | |
import com.mydietitian.android.activities.LoginActivity; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.app.ProgressDialog; | |
import android.os.Bundle; | |
import com.mydietitian.android.MDApplication; | |
import com.mydietitian.android.R; | |
import com.mydietitian.android.utils.DialogHelper; | |
import com.mydietitian.android.utils.DialogType; | |
import com.mydietitian.android.utils.Network; | |
import com.mydietitian.android.utils.SessionManager; | |
import retrofit.client.Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.jeffpotter.generaldietitian.adapter; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.nostra13.universalimageloader.core.DisplayImageOptions; | |
import com.nostra13.universalimageloader.core.ImageLoader; | |
import com.nostra13.universalimageloader.core.assist.ImageScaleType; | |
import com.nostra13.universalimageloader.core.assist.SimpleImageLoadingListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private int TYPE_MESSAGE = 1; | |
private int TYPE_ACTIVITY = 2; | |
private int TYPE_MEAL = 3; | |
private int TYPE_DRINK = 5 | |
private int TYPE_DAILY_INPUT = 4; | |
@SuppressWarnings("unchecked") | |
public TimeLineAdapter(Context mContext, int textViewResourceId, List<TimelineObject> timelineList, DailyInput dailyInput) { | |
super(mContext, textViewResourceId, timelineList); | |
this.timelineList = timelineList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TimeLineAdapter extends ArrayAdapter { | |
private final DailyInput dailyInput; | |
private LayoutInflater mInflater; | |
List<TimelineObject> timelineList = new ArrayList<TimelineObject>(); | |
private Context mContext; | |
private final int TYPE_MESSAGE = 1; | |
private final int TYPE_ACTIVITY = 2; | |
private final int TYPE_MEAL = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TimeLineAdapter extends ArrayAdapter { | |
private final DailyInput dailyInput; | |
private LayoutInflater mInflater; | |
List<TimelineObject> timelineList = new ArrayList<TimelineObject>(); | |
private Context mContext; | |
private final int TYPE_MESSAGE = 1; | |
private final int TYPE_ACTIVITY = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.jeffpotter.generaldietitian.models; | |
/** | |
* User: jpotts | |
* Date: 8/27/13 | |
* Time: 3:10 PM | |
*/ | |
public class ReportVariable { | |
String description; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.jeffpotter.generaldietitian.models; | |
import com.google.gson.annotations.SerializedName; | |
import java.security.SecureRandom; | |
import java.util.List; | |
/** | |
* User: jpotts | |
* Date: 8/27/13 |