Skip to content

Instantly share code, notes, and snippets.

View edilson's full-sized avatar
🎯
Focusing

Edilson Silva edilson

🎯
Focusing
View GitHub Profile
const body = new FormData();
body.append('name', activity_name);
body.append('data_type', 'gpx');
body.append('external_id', activity_id);
body.append(
'file',
Buffer.from(gpxFileString, 'utf-8'),
`activity_${activity_id}.gpx`
);
@edilson
edilson / strava_upload.js
Created September 23, 2021 20:04
Strava upload sample NodeJS
const body = new FormData();
body.append('data_type', 'gpx');
body.append('name', activity_name);
body.append('external_id', activity_id);
body.append('file', fs.readFileSync(gpxFilePath, { encoding: 'utf8' }), {
contentType: 'application/gpx+xml',
});
const stravaUploadResponse = await fetch(
@edilson
edilson / gist:f8ef4fa558a454c704a71cda8576219a
Created January 10, 2019 01:58
Erro ao tentar subir API instalura
:: Spring Boot :: (v1.4.1.RELEASE)
2019-01-09 22:52:08.151 INFO 14216 --- [ main] br.com.alura.instalura.Boot : Starting Boot v1.0.0-SNAPSHOT on LAPTOP-8AD6HOSH with PID 14216 (D:\instalura\instalura-api-master\instalura.jar started by edils in D:\instalura\instalura-api-master)
2019-01-09 22:52:08.163 INFO 14216 --- [ main] br.com.alura.instalura.Boot : No active profile set, falling back to default profiles: default
2019-01-09 22:52:08.370 INFO 14216 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4ccabbaa: startup date [Wed Jan 09 22:52:08 GFT 2019]; root of context hierarchy
2019-01-09 22:52:14.503 INFO 14216 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'corsFilter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireM
@charset "UTF-8";
header {
position: relative;
}
.menu-opcoes {
position: absolute;
bottom: 0;
right: 0;