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
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
The following settings establish system-global key bindings for the key | |
combinations ^⌘↑, ^⌘→, ^⌘↓, and ^⌘← that are mapped to no operation ("noop"). | |
Simply having these declared as valid keystrokes at the OS level eliminates the | |
system beep that occurs even when a Chromium app accepts and handles the keystroke. | |
In order to establish this, create or update ~/Library/KeyBindings/DefaultKeyBinding.dict | |
and restart any applications where you want to use these keystrokes. |
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
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:-//gabrielecanepa//EN | |
X-WR-CALNAME:Italy Holidays | |
X-WR-CALDESC:Public Holidays in Italy. | |
REFRESH-INTERVAL;VALUE=DURATION:PT48H | |
X-PUBLISHED-TTL:PT48H | |
CALSCALE:GREGORIAN | |
METHOD:PUBLISH | |
BEGIN:VEVENT |
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 algoliasearch from 'algoliasearch' | |
const INDEX_NAME = 'SOURCE_INDEX_NAME' // e.g. 01uat_hmkw_en | |
const QUERY_SUGGESTIONS_INDEX_NAME = 'QUERY_SUGGESTIONS_INDEX_NAME' // e.g. 01uat_hmkw_en_query | |
const NEW_QUERY_SUGGESTIONS_INDEX_NAME = 'NEW_QUERY_SUGGESTIONS_INDEX_NAME' // e.g. 01uat_hmkw_en_query_suggestions | |
const FACET_NAME = 'CATEGORY_FACET_NAME' // e.g. field_category_name.lvl0 | |
const client = algoliasearch('APP_ID', 'API_KEY') | |
const querySuggestionsIndex = client.initIndex(QUERY_SUGGESTIONS_INDEX_NAME) | |
const newQuerySuggestionsIndex = client.initIndex(NEW_QUERY_SUGGESTIONS_INDEX_NAME) |
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 algoliasearch from 'algoliasearch' | |
import searchInsights from 'search-insights' | |
import { chunks } from './utils.js' | |
const APP_ID = 'YOUR_APP_ID' | |
const API_KEY = 'YOUR_SEARCH_API_KEY' | |
const INDEX_NAME = 'YOUR_INDEX_NAME' | |
const FACET_NAME = 'categories' // change this value according to your configuration | |
const client = algoliasearch(APP_ID, API_KEY) |
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
/** | |
* Script to copy Algolia's settings, synonyms and rules from one index to all others in the same application. | |
*/ | |
import algoliasearch from 'algoliasearch' | |
const client = algoliasearch('APP_ID', 'ADMIN_API_KEY') | |
const sourceIndex = client.initIndex('SOURCE_INDEX_NAME') | |
const copySettings = async (source, 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
// 1. null vs. undefined | |
// null is a value, representing "nothing" | |
// undefined means that the variable was never assigned | |
const nullValue = null | |
const undefinedValue = undefined | |
let name // I declare this variable, but I don't assign it | |
console.log(name) // => undefined |
NewerOlder