An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
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 ru.mastermmo.rhumester; | |
import android.graphics.Bitmap; | |
import android.nfc.Tag; | |
import android.support.annotation.Nullable; | |
import android.util.Log; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
import java.util.ArrayList; |
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
class ServerTails | |
{ | |
@SerializedName("user_id") | |
private int user_id; | |
@SerializedName("body") | |
private String body; | |
@SerializedName("post_id") | |
private int post_id; |
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 ru.mastermmo.rhumester; | |
import android.graphics.Bitmap; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
public class Post | |
{ | |
//@SerializedName("postId") |
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 ru.mastermmo.rhumester; | |
import android.graphics.Bitmap; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
public class Post | |
{ | |
@SerializedName("postId") |
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
Правила платформы | |
Размещая приложение в игровом разделе на сайте, в мобильных клиентах или в мобильном html5-каталоге, Вы получаете доступ к многомиллионной аудитории. Важнее всего для нас — не обмануть доверие и ожидания этих людей, поэтому мы хотим предлагать им только надежные и проработанные приложения. Более того, мы чувствуем ответственность перед серьёзными разработчиками, которые уже вложили душу в свой продукт и хотят, чтобы он был окружен приложениями, соответствующими по качеству. | |
В процессе модерации мы придерживаемся общего свода правил. Однако, некоторые пункты имеют смысл только для одной платформы. Так, под «приложением, размещенным на vk.com» следует понимать приложение, доступное пользователям в основной версии сайта ВКонтакте. «Приложение, размещенное в мобильном каталоге ВКонтакте» — это приложение, доступное пользователям из игрового раздела официальных мобильных клиентов. «Приложение, размещенное в мобильном html5-каталоге» — приложение, доступное пользователям официальных мобильных кл |
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
// | |
// __SINGLETON_HPP__ | |
// | |
// The MIT License (MIT) | |
// Copyright (c) <2013> <Jiang Bian [email protected]> | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
// Example program | |
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
# define SIZE 10 | |
# define NPROCS 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
Data List | |
{ | |
List = c_nil ++ double * List .c_cons; | |
} | |
Data SearchTree | |
{ | |
SearchTree = c_tnil ++ double * SearchTree * SearchTree .c_branch; | |
} |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <pvm3.h> | |
#include <unistd.h> | |
using namespace std; | |
# define SIZE 1000 |