Skip to content

Instantly share code, notes, and snippets.

View talut's full-sized avatar
🇹🇷

Talut TASGIRAN talut

🇹🇷
View GitHub Profile
@talut
talut / pinView.js
Created July 13, 2018 07:46
PinView Basic Usage
import PinView from 'react-native-pin-view'
// ...
<PinView
password={ [1, 3, 5, 7, 9] }
onSuccess={ ()=>{alert("SUCCESS")} }
onFailure={ ()=>{alert("FAILURE")} }
/>
@talut
talut / gettingProvider
Created April 16, 2018 13:58
Android provider criteria
/**
* Get provider name.
* @return Name of best suiting provider.
* */
String getProviderName() {
LocationManager locationManager = (LocationManager) this
.getSystemService(Context.LOCATION_SERVICE);
Criteria criteria = new Criteria();
criteria.setPowerRequirement(Criteria.POWER_LOW); // Chose your desired power consumption level.
@talut
talut / react-native-simple-card-view-example.js
Last active February 20, 2018 14:37
react-native-simple-card-view-example for medium @talut
import React, { Component } from 'react';
import {Platform,StyleSheet,Text,View,Dimensions} from 'react-native';
import { CardViewWithIcon } from "react-native-simple-card-view";
type Props = {};
export default class App extends Component<Props> {
constructor(props) {
super(props);
this.state = ({
github : 0,
}
@talut
talut / Node-fetch Post (for golang rest-api)
Created September 6, 2017 14:21
Node-fetch Post (for golang rest-api)
const FormData = require('form-data');
const data = new FormData();
data.append('email', "demo@demo.com");
data.append('password', "demo123");
fetch('http://localhost:5656/', { method: 'POST', body: data })
.then(function(res) {
return res.json();
}).then(function(json) {
console.log(json);
});