This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onGeomChange = (e) => { | |
/* | |
This function will dynamically split the polygon into two parts by a line and will follow geometry change event. | |
*/ | |
//Create jsts parser to read openlayers geometry | |
let parser = new jsts.io.OL3Parser(); | |
//Creating line geometry from draw intraction | |
let linestring = new ol.Feature({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Intersection(status) { | |
if ( arguments.length > 0 ) { | |
this.init(status); | |
} | |
} | |
/***** | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import * as THREE from "three"; | |
import { useThree, useFrame } from "react-three-fiber"; | |
import { useDrag, useMove } from "react-use-gesture"; | |
import lerp from "lerp"; | |
import gsap from "gsap"; | |
import _ from "lodash"; | |
import { useModel } from "../../state/Store"; | |
function findIntersectItems(array, activeFloor) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function range(start,end) { | |
if(start == end) { | |
return [start] | |
} | |
const printRange = (from, to) => { | |
if(to === 0) { | |
return []; | |
} | |
return Array((to - from) + 1).fill(null).map((_, i) => start + i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dayStart = "07:30"; | |
const dayEnd = "17:45"; | |
function scheduleMeeting(startTime,durationMinutes) { | |
let [startHour, startMin] = startTime.split(':'); | |
let durationHour = Math.floor(durationMinutes / 60); | |
let durationLeftMin = durationMinutes - durationHour * 60; | |
let [endStart, endMin] = [0,0]; | |
endHour = +startHour + durationHour; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Normal Linkedin logo | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Changes Linkedin's rainbow logo to a normal logo | |
// @author You | |
// @match https://www.linkedin.com/* | |
// @icon https://www.google.com/s2/favicons?domain=linkedin.com | |
// @grant none | |
// ==/UserScript== |