This file contains 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 map = new mapboxgl.Map(mergedOptions) | |
map.on("style.load", function () { | |
map.setFilter("layer-with-polygons", [ | |
"==", | |
["get", "City"], | |
"Budapest", | |
]) | |
}) | |
map.on("load", () => { | |
let features = map.querySourceFeatures("composite", { |
This file contains 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 Airtable = require('airtable'); | |
const fs = require('fs'); | |
const AIRTABLE_API_KEY = 'keybqbYGu7ewvtNfh'; | |
Airtable.configure({ apiKey: AIRTABLE_API_KEY, endpointUrl: 'https://api.airtable.com' }); | |
const tableId = 'applVr5WzyjAo4xZS'; | |
const base = Airtable.base(tableId); | |
const groupBy = (arr, groupByField) => { | |
return arr.reduce((acc, item) => { |
This file contains 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
#!/bin/bash | |
USL="tcdsvuzjyhfknbxgpmera,.;oil[]wq\/'" | |
ISL="אבגדהוזחטיכלמנסעפצקרשתץףםןך]['\/.," | |
CURRENT=`nohup gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().currentSource.index"` | |
xdotool sleep 0.125 getwindowfocus key Shift+Home | |
if [ "$CURRENT" == "(true, '1')" ]; then |
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks |
This file contains 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
/** | |
* Serially executes a promise returning function over an array of inputs, | |
* Each time waiting for {chunkSize} inputs execution to resolve before | |
* executing fn over the next inputs chunk. | |
* @param {A promise returning function} fn | |
* @param {Number} chunkSize | |
* @param {An array where each item is an input to fn} inputs | |
*/ | |
function chunkedExecution(fn, chunkSize, inputs) { | |
const chunks = R.splitEvery(chunkSize, inputs); |
This file contains 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"; | |
function getAllInputs(target) { | |
const domData = new FormData(target); | |
const data = {}; | |
[...domData.keys()].forEach(key => data[key] = domData.get(key)); | |
return data; | |
} | |
function getSingleInput(target) { |
This file contains 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
{ | |
"name": "grumshi", | |
"version": "0.1.0", | |
"private": true, | |
"devDependencies": { | |
"@kadira/storybook": "^2.21.0", | |
"algebra.js": "^0.2.5", | |
"chai": "^3.5.0", | |
"enzyme": "^2.4.1", | |
"react-addons-test-utils": "^15.3.2", |