Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Sasak RobertSasak

View GitHub Profile
@RobertSasak
RobertSasak / appcenterTime.sh
Last active Nov 17, 2021
Have you ever wonder what build taks takes the longest time?
View appcenterTime.sh
#!/bin/bash
# Usage appcenterTime.sh /path/to/folder/log/Build
converts()
{
local t=$1
local d=$((t/60/60/24))
local h=$((t/60/60%24))
View TimeLapse.ino
#include "esp_camera.h"
#include <WiFi.h>
#include "Arduino.h"
// Time
#include "time.h"
#include "lwip/err.h"
#include "lwip/apps/sntp.h"
// MicroSD
#include "driver/sdmmc_host.h"
#include "driver/sdmmc_defs.h"
@RobertSasak
RobertSasak / CustomUserLocation.js
Last active Mar 19, 2020
Rotate user location based on heading
View CustomUserLocation.js
import React from 'react';
import MapboxGL from '@react-native-mapbox-gl/maps';
import sheet from '../styles/sheet';
import myIcon from '../assets/example.png';
import BaseExamplePropTypes from './common/BaseExamplePropTypes';
import Page from './common/Page';
const mapStyles = {
@RobertSasak
RobertSasak / scale.js
Created Sep 28, 2018
Mapbox react-native map scale
View scale.js
import React from 'react'
import PropTypes from 'prop-types'
import {
View,
Text,
} from 'native-base'
import { primaryColor } from '../../constants'
const styles = {
View windMeter.ino
int windPin = D0;
int powerPin = D1;
int numOfAverageValues = 5;
void setup() {
setupWind();
}
void setupWind() {
pinMode(powerPin, OUTPUT);
View keybase.md

Keybase proof

I hereby claim:

  • I am robertsasak on github.
  • I am robertsasak (https://keybase.io/robertsasak) on keybase.
  • I have a public key whose fingerprint is D645 BF68 8563 1047 498D E49E CCAA 2E2C 1899 AF9C

To claim this, I am signing this object: