Skip to content

Instantly share code, notes, and snippets.

View huxaiphaer's full-sized avatar
⚔️
Code Mutant

LUTAAYA HUZAIFAH IDRIS huxaiphaer

⚔️
Code Mutant
View GitHub Profile
@huxaiphaer
huxaiphaer / gist:0f99ece9a61867b85e353158508033b5
Created December 13, 2018 11:34
Shared preference Issue
// CHECKSTYLE:OFF
package com.andela.mrm.room_availability;
import android.content.Context;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.media.ToneGenerator;
import android.os.Bundle;
import android.os.Handler;
package com.andela.mrm.room_availability.room_availability_utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Process;
import android.support.constraint.ConstraintLayout;
import android.view.View;
import com.andela.mrm.room_events.CalendarEvent;
import com.andela.mrm.room_setup.country.CountryActivity;
@huxaiphaer
huxaiphaer / Location.xaml
Last active April 21, 2019 12:28
Can't bind
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:Naxam.Controls.Mapbox.Forms;assembly=Naxam.Mapbox.Forms"
xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
xmlns:controls1="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView"
x:Class="Via.Views.Location">
<ContentView.Content>
<AbsoluteLayout>
import reduxThunk from 'redux-thunk';
import * as moxios from 'moxios';
import configurestore from 'redux-mock-store';
import {APIKey, LANGUAGE,URL} from "../../utils/ApiKey";
import {fetchMovies} from "../../actions/searchActions";
import {FETCH_MOVIES} from "../../actions/types";
const middlewares = [reduxThunk];
const mockStore = configurestore(middlewares);
describe('search action', () => {
yarn test --coverage --watchAll=false
Widget _detailsList(Article article, ScrollController scrollController) {
return Container(
child: ListView(
shrinkWrap: true,
physics: ScrollPhysics(),
padding: EdgeInsets.only(top: 00.0),
children: <Widget>[
Container(
margin: EdgeInsets.only(
top: 30.0, left: 20.0, right: 20.0, bottom: 20.0),
<template>
<v-col class="pa-lg-10">
<v-card class=" mx-auto">
<form class="pa-10">
<p class="reg-text">Java MeetUp Registration</p>
<v-text-field v-model="name" label="Name" required></v-text-field>
<v-text-field v-model="email" label="E-mail" required></v-text-field>
<v-text-field v-model="address" label="Address" required></v-text-field>
<v-text-field v-model="phoneNumber" label="Phone Number"></v-text-field>
class Home extends StatefulWidget {
@override
_Home createState() => _Home();
}
class _Home extends State<Home> {
Color primary = const Color(0xFF292B2C);
List<Widget> pageList = List<Widget>();
int _selectedPage = 0;
class ProfilePreferencesBloc {
final _user = BehaviorSubject<AuthResponse>();
static const String USER = "USER";
//Getters
Stream<AuthResponse> get user => _user.stream;
//Setters
Function(AuthResponse) get changeUserProfileDetails => _user.sink.add;
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:newvisionapp/src/models/authentication/google_auth_response.dart';
import 'package:newvisionapp/src/resources/local_providers/profile_preference_provider.dart';
import 'package:newvisionapp/src/resources/repository/profile/change_name_repository.dart';
import 'package:newvisionapp/src/ui/profile/edit_profile.dart';
import 'package:progress_indicators/progress_indicators.dart';
import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart';