Skip to content

Instantly share code, notes, and snippets.

View fernandolopes's full-sized avatar

FERNANDO LOPES DA SILVA fernandolopes

View GitHub Profile
@fernandolopes
fernandolopes / cs
Created May 18, 2021 17:40
appsettings.Development.json
public class InjectorData
{
public static void RegisterServices(IConfiguration Configuration, IServiceCollection services)
{
//Database
string conn = Configuration.GetConnectionString("SQLDatabase");
var username = Environment.GetEnvironmentVariable("username");
var password = Environment.GetEnvironmentVariable("password");
var host = Environment.GetEnvironmentVariable("HOST");
conn = $"Host={host};User ID={username};Password={password};{conn}";
@fernandolopes
fernandolopes / btn_bg.xml
Created October 19, 2018 20:33
background do botão
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorPrimaryDark" android:state_pressed="true"/>
<item android:drawable="@color/colorPrimaryDark" android:state_focused="true"/>
<item android:drawable="@color/colorAccent"/>
</selector>
@fernandolopes
fernandolopes / Valor.java
Created October 17, 2018 21:33
Model Valor
package com.example.fernando.myapplication.models;
/**
* Created by Fernando on 16/10/2018.
*/
public class Valor {
private float Valor;
private boolean IsChecked;
@fernandolopes
fernandolopes / Partida.java
Created October 17, 2018 21:32
Model Partida
package com.example.fernando.myapplication.models;
/**
* Created by Fernando on 16/10/2018.
*/
public class Partida {
private Long Id;
private Valor[] valores;
private String Time1;
package com.example.fernando.myapplication;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.TextView;
@fernandolopes
fernandolopes / MainActivity.java
Last active October 17, 2018 21:29
MainActivity
package com.example.fernando.myapplication;
import android.content.Context;
import android.database.DataSetObserver;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
@fernandolopes
fernandolopes / xml
Created October 17, 2018 14:48
Lista
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:background="#000"
android:layout_height="match_parent"
tools:context="com.example.fernando.myapplication.MainActivity"
@fernandolopes
fernandolopes / xml
Created October 17, 2018 14:47
Adapter
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#9C9C9C"
>
<LinearLayout
using (var client = new HttpClient(HttpClientHandler))
{
client.DefaultRequestHeaders.Add("clientId", ClientId);
client.DefaultRequestHeaders.Add("accessToken", AccessToken);
client.BaseAddress = UriBase;
HttpRequestMessage request = new HttpRequestMessage(
HttpMethod.Delete,
$"holmes/api/document/{Id}"
);
'use strict';
/**
* @ngdoc function
* @name VR.controller:ChecklistoperadorCtrl
* @description
* # ChecklistoperadorCtrl
* Controller of the VR
*/
angular.module('VR')