Skip to content

Instantly share code, notes, and snippets.

View trinadhkoya's full-sized avatar
💭
I may be slow to respond.

trinadhkoya trinadhkoya

💭
I may be slow to respond.
View GitHub Profile
@trinadhkoya
trinadhkoya / build.gradle
Created September 10, 2019 08:53
app level
defaultConfig {
applicationId "com.vicinia.tinmen"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.getVersionCode()
versionCode vcode
versionName "4.0"
multiDexEnabled true
}
const doDownloadPDF = () => async dispatch => {
let filename_attachment = '1';
let ext = '.pdf';
let base64Str = res.base64();
let pdfLocation = DocumentDir + '/' + filename_attachment + ext;
await RNFetchBlob.fs.writeFile(pdfLocation, base64Str, 'base64').then((res) => {
// eslint-disable-next-line no-console
console.log(res)
}, (err) => {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var temp = [1, 2, 4, 5, 6, 8, 2, 7, 2];
var encountered = [];
function f(a) {
let min = -1;
for (let i = 0; i < a.length; i++) {
let id = i + 1;
while (id !== 0) {
id = a.indexOf(a[i], id) + 1;
import React from 'react';
import { View, Text, FlatList } from 'react-native';
const App = () => {
const items = [
{ id: '1', title: 'Item 1', description: 'Description 1', price: '$10' },
{ id: '2', title: 'Item 2', description: 'Description 2', price: '$20' },
{ id: '3', title: 'Item 3', description: 'Description 3', price: '$30' }
];