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
case MotionEvent.ACTION_UP: { | |
for (int a = 0; a < MoveList.size(); a++) { | |
String zxc = MoveList.get(a).toString(); | |
qwe = qwe + zxc + "\n"; | |
} | |
MyActivity.prevtextview.setText("Prev_angle: " + String.valueOf(mPrevAngle)); | |
MyActivity.currtextview.setText("Curr_angle List: " + String.valueOf(qwe)); |
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 lightblue | |
server_sock = lightblue.socket() | |
server_sock.bind(("", 0)) | |
server_sock.listen(1) | |
lightblue.advertise("RFCOMM mini server", server_sock, lightblue.RFCOMM) | |
client_sock, client_info = server_sock.accept() | |
print "Accepted connection from ", client_info |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <regex> | |
/* run this program using the console pauser or add your own getch, system("pause") or input loop */ | |
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems){ | |
std::stringstream ss(s); | |
std::string item; | |
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
//If we will use Paginator component in many actions add it to $components field: | |
public $components = array('Paginator'); | |
//otherwise do it locally, inside action: | |
$this->Paginator = $this->Components->load('Paginator'); | |
//optionally we can set conditions etc. (like in finding): |
NewerOlder