Skip to content

Instantly share code, notes, and snippets.

View sentience's full-sized avatar
💭
Amplifying the Product Group at Culture Amp

Kevin Yank sentience

💭
Amplifying the Product Group at Culture Amp
View GitHub Profile
@thomasbachem
thomasbachem / Open in Google Meet Chrome App.md
Last active November 15, 2024 01:45
Always open Google Meet links in Google Meet Chrome app on macOS

Open Google Meet links in Google Meet Chrome app on macOS by default

I you prefer to have Google Meet links automatically open in the official Google Meet Chrome app on Mac with its own Dock icon instead of in a browser tab, this is the way to go:

Step 1: Setup Chrome App

Install the official Google Meet Chrome web app by:

  1. Navigating to meet.google.com
  2. Then either clicking on the install icon (computer screen with downward arrow) in Chrome's address bar or on "" ▸ "Save and share""Install page as app"

Step 2: Create AppleScript Proxy App

@Ashpork
Ashpork / HA-Power-sensors.yaml
Last active September 15, 2024 19:13
A snippet of the basic additional sensors configuration needed to track Panel production, on a SolarEdge single inverter, single battery system, along with the configuration used on the Power Flow Plus card.
template:
- sensor:
- name: "Solar Panel Production W"
unique_id: solar_panel_production_w
unit_of_measurement: "W"
icon: mdi:solar-power
state: >
{% set i1_dc_power = states('sensor.solaredge_i1_dc_power') | float(0) %}
{% set b1_dc_power = states('sensor.solaredge_b1_dc_power') | float(0) %}
@merlinmann
merlinmann / wisdom.md
Last active August 1, 2024 01:08
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

@Detavern
Detavern / README.md
Last active December 23, 2021 00:34
MEGAcmd startup on Synology DSM

Usage

Make sure you have:

  • installed MEGAcmd package in DSM package center.
  • enabled user home service which located at User->Advanced.
  • set up your MEGAcmd correctly according to MEGAcmd README.

Then:

@takumiirie
takumiirie / spreadsheet_conditional-formatting1.txt
Created January 26, 2018 08:53
Google Spreadsheet - Regex with Conditional Formatting
# set "Apply to range" to whereever you want to apply setting.
# set "Format cells if..." to "Custom formula is" and paste following code
# Following Forumula will detect if it's match with regex or not.
=REGEXMATCH(INDIRECT("R[0]C[0]", false),"<PUT YOUR REGEX HERE>") = true
# set your "formatting style"
That's it!
@DavidWells
DavidWells / css-with-react-checklist.md
Last active November 21, 2018 22:56
Lots of talk about different CSS solutions for React. This gist attempts to shed light on pros/cons of approaches.

Here is a checklist of all the things I need my CSS solution to handle.

I can explain any of the points. Leave a comment on the gist or tweet @DavidWells

Challenge: Take your favorite CSS solution and see how the checklist holds up.

  • Has ability Localize classes
  • Has ability to use global classes
  • Has ability to write raw CSS
  • Syntax highlighting and auto completion
@brunoguerra
brunoguerra / README.md
Last active July 2, 2024 06:14
GIT FETCH SPECIFIC COMMIT

make a new blank repository in the current directory

git init

add a remote

git remote add origin url://to/source/repository

fetch a commit (or branch or tag) of interest

Note: the full history of this commit will be retrieved

git fetch origin # SHA #

@yang-wei
yang-wei / destructuring.md
Last active November 3, 2024 16:23
Elm Destructuring (or Pattern Matching) cheatsheet

Should be work with 0.18

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !

Tuple

myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
@danielgtaylor
danielgtaylor / gist:0b60c2ed1f069f118562
Last active April 2, 2024 20:18
Moving to ES6 from CoffeeScript

Moving to ES6 from CoffeeScript

I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.

In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.

While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.

Punctuation

Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio

@agnoster
agnoster / README.md
Last active September 25, 2024 09:27
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark