I hereby claim:
- I am migreva on github.
- I am migreva (https://keybase.io/migreva) on keybase.
- I have a public key ASCJcF5AaIsKLBKGiMg-qbrke5klL6CtwwkJ5sIWaMhMAAo
To claim this, I am signing this object:
// | |
// grunt-newer: | |
// Check for newer @import .less files example | |
// See: https://github.com/tschaub/grunt-newer/issues/29 | |
// | |
grunt.initConfig({ | |
// ... | |
newer: { | |
options: { | |
override: function(details, include) { |
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/PuerkitoBio/goquery" | |
) | |
func main() { |
I hereby claim:
To claim this, I am signing this object:
We're looking to onboard okta eventually to our microservices. Here I've collected some thoughts on how best to do this with the stack we have.
Echo has a concept of middleware, specifically sessions.
We will be able to leverage this in our servers, though we will need a database to store these sessions, probably.
Luckily, the underlying session library called gorilla
has a list of stores it plays nicely with.
/** | |
* Yo dawg I heard you like arrays, so if you put arrays in your | |
* arrays here's a function that can flatten it. O(n) complexity | |
* | |
* e.g flattenArray([[1,2,[3]],4]) -> [1,2,3,4] | |
* | |
* @param {Array} inputArray - Unflattened array | |
* @returns {Array} flattened array, bye bye pesky nested arrays | |
*/ | |
function flattenArray(inputArray, outputArray = []) { |
/** | |
* Project Euler, Problem 2 | |
* https://projecteuler.net/problem=2 | |
* | |
* Each new term in the Fibonacci sequence is generated by adding the previous | |
* two terms. By starting with 1 and 2, the first 10 terms will be: | |
* | |
* 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
* | |
* By considering the terms in the Fibonacci sequence whose values do not |
// copied from this SO post here: | |
// https://stackoverflow.com/a/27822785/1337683 | |
function isScroller(el) { | |
var isScrollableWidth, isScollableHeight, elStyle; | |
elStyle = window.getComputedStyle(el, null); // Note: IE9+ | |
if (elStyle.overflow === 'scroll' || | |
elStyle.overflowX === 'scroll' || | |
elStyle.overflowY === 'scroll') { | |
return true; |