Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View RobertSasak's full-sized avatar

Robert Sasak RobertSasak

View GitHub Profile
@RobertSasak
RobertSasak / scale.js
Created September 28, 2018 05:59
Mapbox react-native map scale
import React from 'react'
import PropTypes from 'prop-types'
import {
View,
Text,
} from 'native-base'
import { primaryColor } from '../../constants'
const styles = {
@RobertSasak
RobertSasak / appcenterTime.sh
Last active November 17, 2021 09:14
Have you ever wonder what build taks takes the longest time?
#!/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))
#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 March 19, 2020 08:29
Rotate user location based on heading
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 = {
int windPin = D0;
int powerPin = D1;
int numOfAverageValues = 5;
void setup() {
setupWind();
}
void setupWind() {
pinMode(powerPin, OUTPUT);

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: