Skip to content

Instantly share code, notes, and snippets.

// uzywanie a1 a2 poza funkcją -- przesłanie tablicy i
#include<iostream>
using namespace std;
float *f(float *(tab[]), int length, float **pMin, float **pMax);
int main() {
//float tab[] = {9, 2, 5, 2, 5, 21};
//cout << tab[0] << endl << *(tab+0) << endl << *(tab+1) << endl;
UISwipeGestureRecognizer *swipeGestureLeft = [[UISwipeGestureRecognizer alloc]
initWithTarget:self action:@selector(handleSwipeGestureLeft:)];
[self.view addGestureRecognizer:swipeGestureLeft];
swipeGestureLeft.direction = UISwipeGestureRecognizerDirectionLeft;
[swipeGestureLeft release];
UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc]
initWithTarget:self action:@selector(handleSwipeGesture:)];
swipeGesture.direction = UISwipeGestureRecognizerDirectionRight;
[self.view addGestureRecognizer:swipeGesture];
{
added = {
1481 = {
"easiness_factor" = "2.5";
"last_interval_in_days" = 0;
"next_repetition_date" = 1417260013;
"phrase_descriptor_id" = 3072;
"repetition_count" = 0;
"temporary_id" = 1481;
};
Tuż przed chwilą:
JSON: (z pull'owania &from=0
2014-11-29 02:07:49.573 Twigit[2994:83979] {
changes = (
);
"current_version" = 1;
}
2014-11-29 02:01:22.285 Twigit[2994:83979] PARAMS
{
added = {
1392 = {
"easiness_factor" = "2.5";
"last_interval_in_days" = 0;
"next_repetition_date" = 1417222882;
"phrase_descriptor_id" = 3106;
"repetition_count" = 0;
"temporary_id" = 1392;
JSON: {
changes = (
{
"_id" = {
"$oid" = 546d0bae1770fe0bec54884a;
};
"_revision_date" = "1416433022.588966";
"_user_id" = {
"$oid" = 544df1291770fe63af94cc49;
};
{
"_id" = {
"$oid" = 54607e5d1770fe788b61fdab;
};
"_revision_date" = "1415609949.781673";
"_user_id" = {
"$oid" = 544df1291770fe63af94cc49;
};
"_version_id" = 709;
added = (
Wysyłam:
{
added = (
);
"my_version_id" = 141;
removed = (
82
);
updated = {
NSDictionary *params = @{
@"added" : @[
],
@"removed" : @[],
@"updated" : @{
@"3" : [repetition_phrase_descriptor createDictionaryFromFields]
},
@"my_version_id" : self.currentUser.version_id
};
@interface Twigit_text_descriptor: NSObject
// Everything is copied form the row from text_descriptors table's row
@property (nonatomic) NSInteger id; // refactor
@property (nonatomic, strong) NSString *author;
@property (nonatomic, strong) NSString *title;
@property (nonatomic) NSInteger sentences_count;
@property (nonatomic) BOOL was_purchased;
@property (nonatomic) NSInteger price_tier;