Skip to content

Instantly share code, notes, and snippets.

View ecdundar's full-sized avatar

ecdundar

View GitHub Profile
@ecdundar
ecdundar / sites.cleanup
Last active August 29, 2015 14:27 — forked from yurifedoseev/sites.cleanup
Delete all sites from IIS express configuration
appcmd.exe list site /xml | appcmd delete site /in
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
namespace MyProject.Controllers
{
+ <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_notif"/>
+ <service android:name="com.evollu.react.fcm.MessagingService" android:enabled="true" android:exported="true">
+ <intent-filter>
+ <action android:name="com.google.firebase.MESSAGING_EVENT"/>
+ </intent-filter>
+ </service>
+ <service android:name="com.evollu.react.fcm.InstanceIdService" android:exported="false">
+ <intent-filter>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<application>
<receiver android:name="com.evollu.react.fcm.FIRLocalMessagingPublisher"/>
<receiver android:enabled="true" android:exported="true" android:name="com.evollu.react.fcm.FIRSystemBootEventReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
@ecdundar
ecdundar / build.gradle
Created February 18, 2019 06:32
react-native-maps node modules build.gradle
apply plugin: 'com.android.library'
apply from: 'gradle-maven-push.gradle'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
import React from 'react';
import { TouchableOpacity, Text, StyleSheet } from 'react-native';
const BBButon = props => {
return (
<TouchableOpacity style={styles.button} onPress={props.itemClick}>
<Text style={styles.text}>{props.title}</Text>
</TouchableOpacity>
);
};
@ecdundar
ecdundar / BBText.js
Created February 25, 2019 07:24
BBText
import React from 'react';
import { TouchableHighlight, Text, StyleSheet } from 'react-native';
const BBText = props => {
return <Text style={styles.text}>{props.text}</Text>;
};
const styles = StyleSheet.create({
text: {
color: '#111825',
import React from 'react';
import { View, TextInput } from 'react-native';
const BBTextInput = props => {
return (
<View
style={{
marginLeft: 35,
marginRight: 35,
marginTop: 10,
borderColor: '#007FFF',
import React from 'react';
import {View, Text, StyleSheet, Image ,PermissionsAndroid,Platform} from 'react-native';
export default class App extends React.Component {
state = {
currentLongitude: 'unknown',
currentLatitude: 'unknown',
}
componentDidMount = () => {
@ecdundar
ecdundar / build.gradle
Created February 27, 2019 08:39
Fingerprint SDK
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
}