Skip to content

Instantly share code, notes, and snippets.

View jen6's full-sized avatar
🔝
Growing Faster

SonGeon jen6

🔝
Growing Faster
View GitHub Profile
public class BusPostSetter {
public BusPostSetter(){}
public BusPostSetter(String Title, String Content, int Want) {}
public boolean post() {}
}
class BusList{
int Id, Want;
String Title, Content;
}
//글쓰기용
public class BusPostSetter {
public BusPostSetter(){}
public BusPostSetter(String Title, String Content, int Want) {}
public boolean post() {}
}
class BusList{
int Id, Want;
String Title, Content;
public class BusPostSetter {
public HttpClient http = new DefaultHttpClient();
public CookieStore cookieStore = new BasicCookieStore();
// 쿠키스토어랑 httpclient를 퍼블릭으로 선언
public RbPreference pre = new RbPreference(this);
// 프리레퍼런스 사용할 객체 선언
public BusPostSetter() {
}
package com.example.jen6.tester;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.util.Log;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.CookieStore;
import org.apache.http.client.HttpClient;
class LoginSession {
static String Session = "";
static public String get_session() {
if (Session == ""){
HttpClient http = new DefaultHttpClient();
CookieStore cookieStore = new BasicCookieStore();
String url = "http://makeall.ml:8989/login";
try{
HttpContext context = new BasicHttpContext();
HttpPost httpPost = new HttpPost(url);
package com.example.jen6.tester;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by jen6 on 2015-07-13.
*/
public class RbPreference {
class LoginSession {
static String Session = "";
static public String get_session() {
if (Session == "") {
HttpClient http = new DefaultHttpClient();
CookieStore cookieStore = new BasicCookieStore();
String url = "http://makeall.ml:8989/login";
try {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.section_1,container,false);
ListView mListView = (ListView) view.findViewById(R.id.mList);
BusListGetter get = new BusListGetter();
BusList[] bus_arr = get.Get(1);
mAdapter = new ListViewAdapter(getActivity());
mListView.setAdapter(mAdapter);
int signal_index = R.drawable.signal0;
for(int i = 0; i < bus_arr.length; i++) {
#pragma
#include <iostream>
#include <thread>
#include <mutex>
#include <future>
#include <condition_variable>
#include <deque>
namespace Jen
{
while (true)
{
if (!fgets(buf, MAX_SIZE, file_read)
|| ferror(file_read)
|| feof(file_read))
break;
fwrite(buf, sizeof(char), MAX_SIZE, file_write);
}
while (!feof(file_read))