Mix.install(
[
{:midiex, "~> 0.6.1"},
{:instructor, "~> 0.0.5"}
],
config: [
instructor: [
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
{ | |
description = "Monorepo"; | |
inputs = { | |
fenix = { | |
url = "github:nix-community/fenix"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
nixpkgs.url = "nixpkgs/nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; |
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
{ pkgs ? import <nixpkgs> { } }: | |
with pkgs; | |
let | |
subprocess32 = python38Packages.buildPythonPackage rec { | |
pname = "subprocess32"; | |
version = "3.5.4"; | |
src = python38Packages.fetchPypi { | |
inherit pname version; | |
sha256 = |
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
#!/usr/bin/bash | |
# install dependencies | |
sudo add-apt-repository ppa:neovim-ppa/stable | |
sudo add-apt-repository ppa:lazygit-team/release | |
sudo apt-get update | |
sudo apt-get install -y git \ | |
curl \ | |
zsh \ | |
direnv \ |
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 { useEffect } from "react"; | |
const useOnClickOutside = (ref, handler) => { | |
useEffect(() => { | |
const listener = (event) => { | |
if (!ref.current || ref.current.contains(event.target)) { | |
return; | |
} | |
handler(event); |
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 { useEffect } from "react"; | |
const useOnClickOutside = (ref, handler) => { | |
useEffect(() => { | |
const listener = (event) => { | |
if (!ref.current || ref.current.contains(event.target)) { | |
return; | |
} | |
handler(event); |
NewerOlder