- Download
.config__ccstatusline__settings.jsonto~/.config/ccstatusline/settings.json - Download
bashScripts__ccstatusline-usage.shto~/bashScripts/ccstatusline-usage.sh
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
| { | |
| "meta": { | |
| "theme": "kendall-fcamblor", | |
| "extras": { | |
| "looking_for": { | |
| "items": [ | |
| { | |
| "text": "**Staff Engineering** trajectory (adapting from ESN **service expertise** model to software editor structure - willing learning curve)" | |
| }, | |
| { |
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
| { | |
| "openPlannerGeneratedJson": "https://gist.githubusercontent.com/fcamblor/2b4cb4f3ee1f2861cfe2ebb434dc6c20/raw/z_openplanner-sunnytech-generated-schedule.json", | |
| "description": "", | |
| "keywords": [], | |
| "location": { | |
| "country": "France", | |
| "city": "Montpellier", | |
| "coords": { | |
| "latitude": 43.71636281966474, | |
| "longitude": 3.847967787856771 |
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
| template: | |
| # from https://community.home-assistant.io/t/enphase-envoy-with-energy-dashboard/328668 | |
| # Envoy's current_power_consumption / current_power_production are not "subtracting" solar production from it | |
| # So we need to deal with it ourselves | |
| - sensor: | |
| - name: Grid Import Power | |
| state_class: measurement | |
| icon: mdi:transmission-tower | |
| unit_of_measurement: W | |
| device_class: power |
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
| { | |
| "id": "devoxxpl23", | |
| "cfpId": "devoxxpl23", | |
| "cfpBaseUrl": "https://devoxxpl23.cfp.dev", | |
| "eventFamily": "devoxx", | |
| "headingTitle": "DevoxxPL 23", | |
| "keywords": [ | |
| "Devoxx", | |
| "Java", | |
| "Kotlin", |
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 computeSalariesPerXPResults(anneesXPCells, revenusCells, typesEntrepriseCells) { | |
| if(anneesXPCells.length !== revenusCells.length || anneesXPCells.length !== typesEntrepriseCells.length) { | |
| throw new Error("Different number of rows in inputs: "+JSON.stringify([anneesXPCells.length, revenusCells.length, typesEntrepriseCells.length])); | |
| } | |
| const distinctEntTypes = new Set(); | |
| const salariesPerXPResults = anneesXPCells.reduce((salariesPerXP, anneeXPRow, idx) => { | |
| const anneeXP = Number(anneeXPRow[0]); | |
| const salary = Number(revenusCells[idx][0]); |
How I generated this file :
- I imported file from https://infolingu.univ-mlv.fr/DonneesLinguistiques/Dictionnaires/telechargement.html
- I parsed it, extracted words, removed duplicates (through a
Set) and generated a JSON file format :
const fcontent = fs.readFileSync('./dela-fr-public.dic', 'utf16le')
const words = [...new Set(fcontent.split('\n').flatMap(line => line.split('.')[0].split(",").filter(v => !!v)))];
const singleWords = words.filter(w => w.indexOf(" ") === -1);
fs.writeFileSync("./words.json", JSON.stringify(words), 'utf16le')
fs.writeFileSync("./single-words.json", JSON.stringify(singleWords), 'utf16le')
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
| #!/usr/bin/env zx | |
| void async function() { | |
| await $`curl -sSL https://raw.githubusercontent.com/fcamblor/bitrise-zx-scripts/main/index.mjs > /tmp/index.mjs` | |
| const {config, cacheableCommand} = await import('/tmp/index.mjs'); | |
| config(process); | |
| await cacheableCommand({ | |
| cacheName:'cma-npm-packages', |
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 testingDirEntryFor(directoryName) { | |
| return new Promise((resolve, reject) => { | |
| window.resolveLocalFileSystemURL(cordova.file.dataDirectory, (rootDataDir) => { | |
| rootDataDir.getDirectory(directoryName, { create: true }, (dirEntry) => { | |
| resolve(dirEntry); | |
| }, (error) => reject(error)); | |
| }, (error) => reject(error)); | |
| }); | |
| } |
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
| async function loadScript(url) { | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = url; | |
| document.head.appendChild(script); | |
| return new Promise((resolve) => setTimeout(resolve, 1000)); | |
| } | |
| Promise.all([ | |
| loadScript("https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js") |
NewerOlder