This file contains 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 BusPostSetter { | |
public BusPostSetter(){} | |
public BusPostSetter(String Title, String Content, int Want) {} | |
public boolean post() {} | |
} | |
class BusList{ | |
int Id, Want; | |
String Title, Content; | |
} |
This file contains 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 BusPostSetter { | |
public BusPostSetter(){} | |
public BusPostSetter(String Title, String Content, int Want) {} | |
public boolean post() {} | |
} | |
class BusList{ | |
int Id, Want; | |
String Title, Content; |
This file contains 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 BusPostSetter { | |
public HttpClient http = new DefaultHttpClient(); | |
public CookieStore cookieStore = new BasicCookieStore(); | |
// μΏ ν€μ€ν μ΄λ httpclientλ₯Ό νΌλΈλ¦μΌλ‘ μ μΈ | |
public RbPreference pre = new RbPreference(this); | |
// ν리λ νΌλ°μ€ μ¬μ©ν κ°μ²΄ μ μΈ | |
public BusPostSetter() { | |
} |
This file contains 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.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; |
This file contains 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
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); |
This file contains 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.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 { |
This file contains 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
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 { |
This file contains 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 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++) { |
This file contains 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
#pragma | |
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <future> | |
#include <condition_variable> | |
#include <deque> | |
namespace Jen | |
{ |
This file contains 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
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)) |
OlderNewer