Skip to content

Instantly share code, notes, and snippets.

💻
Refactoring

João Palma joaowd

💻
Refactoring
Block or report user

Report or block joaowd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View listenBLE.dart
Future<void> _listenToDeviceData() async {
try {
final Stream<Uint8List> dataStream = await _bluetoothService.listenDevice(_connectedDeviceBleId);
_dataSubscription = dataStream?.listen((Uint8List data) async {
if(_sessionConnectionState == SessionConnectionState.exerciseStarted) {
final ByteData byteData = Uint8List.fromList(data).buffer.asByteData();
for(int i = 0; i < 3; i++) {
_timelapse += 0.0125;
View login.swift
public class LoginViewController : FormBaseViewController<LoginViewModel>, UITextFieldDelegate {
private let _imageView = UIImageView(image: #imageLiteral(resourceName: "logo_blue_2"), contentMode: .scaleAspectFit)
private let _signInButton = UIButton(title: "Sign In", titleColor: UIColor.Theme.white,
font: .systemFont(ofSize: 16), backgroundColor: UIColor.Theme.mainBlue)
private let _signInKeyboardButton = UIButton(title: "Sign In", titleColor: UIColor.Theme.white,
font: .systemFont(ofSize: 16), backgroundColor: UIColor.Theme.mainBlue)
View Notes.java
package com.simplenotes.RESTAPI.Models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
View user.java
package com.simplenotes.RESTAPI.Models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
View l10nservice.dart
class Location {
final Locale locale;
Location(this.locale);
static Location of(BuildContext context) {
return Localizations.of<Location>(context, Location);
}
Map<String, String> _localizedValues;
View card.dart
Stack(
alignment: AlignmentDirectional.centerStart,
children: <Widget>[
Positioned(
top: 0,
bottom: 0,
left: 0,
width: 40,
child:Container(
color: AppColors.darkRedColor,
View slider.dart
return Stack(
children: <Widget>[
SizedBox(
child: Align(
alignment: Alignment.centerRight,
child: Padding(
padding: const EdgeInsets.only(top: 5, right: 70),
child: Text(_timeLabel, style: AppTextStyle.label14Grey))
)),
SizedBox(
View Android when try to connect to device (full log)
D/PluginScaffold(12964): invoke { channel: com.pycampers.rx_ble, method: requestAccess(), args: null }
I/zygote (12964): Do partial code cache collection, code=19KB, data=30KB
I/zygote (12964): After code cache collection, code=19KB, data=30KB
I/zygote (12964): Increasing code cache capacity to 128KB
D/PluginScaffold(12964): onListen { channel: com.pycampers.rx_ble/scan, args: {scanMode=1, deviceName=null, deviceId=null} }
D/BluetoothAdapter(12964): isLeEnabled(): ON
D/BluetoothLeScanner(12964): onScannerRegistered() - status=0 scannerId=7 mScannerId=0
D/PluginScaffold(12964): invoke { channel: com.pycampers.rx_ble, method: stopScan(), args: null }
D/BluetoothAdapter(12964): isLeEnabled(): ON
D/PluginScaffold(12964): piping exception to flutter (java.lang.RuntimeException)
View iOS error when trying to deploy
CocoaPods' output:
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
A plugin_scaffold
A rx_ble
R flutter_bluetooth_serial
View webservice.cs
using System;
using System.Diagnostics;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using LetterApp.Core.Exceptions;
using LetterApp.Core.Helpers;
You can’t perform that action at this time.