Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Carlos Fructuoso analistacarlosh

🎯
Focusing
View GitHub Profile
@analistacarlosh
analistacarlosh / submit.md
Created Jan 25, 2021 — forked from tanaikech/submit.md
Retrieving Access Token From OneDrive using Google Apps Script
View submit.md

Retrieving Access Token From OneDrive using Google Apps Script

Overview

This GAS sample is for retrieving access token to use OneDrive APIs using Google Apps Script.

In this script, the authorization code is automatically retrieved.

Demo

@analistacarlosh
analistacarlosh / submit.md
Created Jan 25, 2021 — forked from tanaikech/submit.md
Uploading Files to OneDrive Using Node.js
View submit.md

Upload contents for an item on OneDrive

In order to use this script, please retrieve client id, client secret and refresh token before. About this, you can see the detail information at https://gist.github.com/tanaikech/d9674f0ead7e3320c5e3184f5d1b05cc.

1. Simple item upload

This is for the simple item upload is available for items with less than 4 MB of content. The detail information is https://dev.onedrive.com/items/upload_put.htm.

var fs = require('fs');
var mime = require('mime');
var request = require('request');
@analistacarlosh
analistacarlosh / validationMiddleware.ts
Last active Mar 25, 2020
validationMiddleware + NodejS + Express
View validationMiddleware.ts
import 'reflect-metadata';
import { plainToClass } from 'class-transformer';
import { validate, ValidationError } from 'class-validator';
import { NextFunction, Request, RequestHandler, Response } from 'express';
import HttpException from '../exceptions/HttpException';
import { ClassType } from 'class-transformer/ClassTransformer';
/**
* A middleware that will verify the params in the request based on the DTO's class
@analistacarlosh
analistacarlosh / my_flutter_project_checklist.md
Last active Jan 8, 2020
my_flutter_project_checklist.md
View my_flutter_project_checklist.md

Project Check-List

Clean Archiecture

UI (View, State) 
<-> Domain (Business rules or externar sercice like Firebase)
<-> Data (Shared Preferences / Repository/ API and Local Data)

MVVM folder structure

View analysis_options.yaml
linter:
rules:
- always_declare_return_types
- camel_case_types
- empty_constructor_bodies
- annotate_overrides
- avoid_init_to_null
- slash_for_doc_comments
- sort_constructors_first
- unnecessary_brace_in_string_interps
View my_flutter_experiences.md

My Flutter experiences

1 - ABRH-SP Flutter App (published)

https://play.google.com/store/apps/details?id=br.com.findehr I developed this App three years ago with Ionic 1 and now I rebuilt the full App using Flutter. I used Flutter SDK, custom Layout (Column, Rows, Flexible), Forms, GPS library, http, Sqlite and Push notification with Firebase.

2 - Yasmin App Vídeo (Project in progress)

Screen record: https://www.dropbox.com/s/b0xrttw6157niv3/yasmin_app_002.webm?dl=0 Developed custom layout, basics animations in Flutter, Responsive Layout for SmarthPhone and Tablet.

@analistacarlosh
analistacarlosh / FlutterAndroidiOSAdaptiveStyle.dart
Last active Aug 13, 2019
FlutterAndroidiOSAdaptiveStyle.md
View FlutterAndroidiOSAdaptiveStyle.dart
// Copyright 2019 The Flutter Team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart' as foundation;
import 'package:flutter/material.dart';
import 'package:multiplatform/widgets.dart';
View Flutter-training.md
View general-architecture.md