Skip to content

Instantly share code, notes, and snippets.

View blogdarkspot's full-sized avatar
🏠
Working from home

Fábio Santana blogdarkspot

🏠
Working from home
View GitHub Profile
@blogdarkspot
blogdarkspot / antenna.cpp
Created September 18, 2016 18:23
problema da antenna
#include <iostream>
#include <vector>
#include <queue>
#include <string>
using namespace std;
struct door{
int _x;
#include <iostream>
#include <vector>
#include <queue>
#include <string>
using namespace std;
int main(int argc, char **argv) {
syntax = "Proto3";
package Tutorial;
message Person {
string name = 1;
int32 id = 2;
string email = 3;
}
enum PhoneType {
MOBILE = 0;
#include <iostream>
#include <fstream>
#include <string>
#include "addressbook.pb.h"
using namespace std;
void PromptForAddress(protobuf_example::Person * person)
{
cout << "Enter person ID number: ";
#include <iostream>
#include <fstream>
#include <string>
#include "addressbook.pb.h"
using namespace std;
void ListPeople( const protobuf_example::AddressBook& _address_book)
{
android {
...
dataBinding {
enabled = true
}
}
dependecies {
...
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="user"
type="com.example.fabio.databind.Person" />
</data>
<LinearLayout
android:orientation="vertical"
package com.example.fabio.databind
import android.databinding.DataBindingUtil
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.example.fabio.databind.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
#ifndef __ENTRYPOINT_H_
#define __ENTRYPOINT_H_
extern "C"
{
DECLSPEC bool StartDLL();
DECLSPEC bool StopDLL();
DECLSPEC bool InjectMock(void *mock);
}
#endif
Service *pService = NULL;
DECLSPEC bool StartDLL()
{
bool ret = true;
if(!pService)
{
if(!(pService = Service::getInstance()))
{
ret = false;