Skip to content

Instantly share code, notes, and snippets.

Avatar

Prince desi-programmer

View GitHub Profile
@desi-programmer
desi-programmer / AndroidManifest.xml
Created Dec 10, 2021
Some possible Permission for android
View AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.baseflow.permissionhandler.example">
<!--
Internet permissions do not affect the `permission_handler` plugin, but are required if your app needs access to
the internet.
-->
<uses-permission android:name="android.permission.INTERNET"/>
@desi-programmer
desi-programmer / config.cson
Created Sep 10, 2021
Configuration for Different Code Editors. config.cson is for Atom
View config.cson
"*":
core:
telemetryConsent: "no"
themes: [
"one-dark-ui"
"base16-tomorrow-dark-theme"
]
editor:
defaultFontSize: 18
fontFamily: "FantasqueSansMono NF,Menlo, Consolas, DejaVu Sans Mono, monospace"
@desi-programmer
desi-programmer / api.js
Last active Sep 5, 2021
Simple Code Files for Flutter Node JS Pagination
View api.js
const express = require('express');
const router = express.Router();
const Ideas = require('../model/ideas');
// The Idea Model for reference
// const mongoose = require('mongoose');
// const ideaSchema = new mongoose.Schema({
// owned : {
@desi-programmer
desi-programmer / index.js
Created Aug 30, 2021
Node JS Express JS Sending Streamed Response
View index.js
const express = require('express');
const cors = require('cors');
const app = express();
app.use(express.json({ extended: true }));
app.use(cors());
// use browser to see the response
app.get('/stream', (req, res) => {
res.setHeader('Content-Type', 'application/json; charset=utf-8');