Skip to content

Instantly share code, notes, and snippets.

View itsam's full-sized avatar

Yiannis Tsampoulatidis itsam

  • Thessaloniki Greece
View GitHub Profile
diff --git a/node_modules/react-native-maps/lib/components/Geojson.js b/node_modules/react-native-maps/lib/components/Geojson.js
index e72b56b..62fe68b 100644
--- a/node_modules/react-native-maps/lib/components/Geojson.js
+++ b/node_modules/react-native-maps/lib/components/Geojson.js
@@ -1,5 +1,7 @@
import React from 'react';
-import MapView from './MapView';
+import Marker from './MapMarker';
+import Polyline from './MapPolyline';
+import Polygon from './MapPolygon';
@itsam
itsam / RNNSideMenuController.m
Created January 22, 2020 00:58
fixes RNN sidemenu disabled option
- (void)side:(MMDrawerSide)side enabled:(BOOL)enabled {
switch (side) {
case MMDrawerSideRight:
self.rightSideEnabled = enabled;
self.openDrawerGestureModeMask = enabled ? MMOpenDrawerGestureModeAll : MMOpenDrawerGestureModeNone;
break;
case MMDrawerSideLeft:
self.leftSideEnabled = enabled;
self.openDrawerGestureModeMask = enabled ? MMOpenDrawerGestureModeAll : MMOpenDrawerGestureModeNone;
default:
#import "RNNSideMenuPresenter.h"
#import "RNNSideMenuController.h"
@implementation RNNSideMenuPresenter
-(instancetype)initWithDefaultOptions:(RNNNavigationOptions *)defaultOptions {
self = [super initWithDefaultOptions:defaultOptions];
return self;
}
@itsam
itsam / intervals
Created February 15, 2016 23:10
Get IMC statistics for intervals to measure performance
SELECT AVG(days_diff) AS avg_days, MIN(days_diff) AS min_days, MAX(days_diff) AS max_days, COUNT(issueid) AS count_issues,stepid, s.title AS steptitle, s.stepcolor,catid, c.title AS category
FROM
(
SELECT DISTINCT * FROM (
SELECT a.issueid, a.stepid, b.catid, a.created,
CASE WHEN (a.created - f.created) IS NULL THEN a.created + INTERVAL 1 SECOND ELSE f.created END AS vcreated,
CASE WHEN (a.created - f.created) IS NULL THEN 0 ELSE ABS(DATEDIFF(a.created, f.created)) END AS days_diff
@itsam
itsam / update_log.sql
Last active October 25, 2015 12:35
Change action to enum like values
UPDATE scsue_imc_log SET action='step'
WHERE
action = "Initial commit" OR
action = "Αρχική καταχώρηση" OR
action = "Η κατάσταση του αιτήματος μεταβλήθηκε" OR
action = "Step modified" OR
action = "Comentario Inicial" OR
action = "Hacer inicial" OR
action = "Paso modificado"
;