λ export CHROME_PATH="/Applications/Google Chrome.app"
λ nix-shell --pure --keep CHROME_PATH --run 'marp hello.md'
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
{ config, lib, pkgs, ... }: | |
let | |
libCrypto = with pkgs; stdenv.mkDerivation rec { | |
name = "${pname}-${version}"; | |
pname = "minecraft-bedrock-server-libcrypto"; | |
version = "1.16-201.02"; | |
src = fetchurl { | |
url = "https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.201.02.zip"; |
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
PID = /tmp/awesome-golang-project.pid | |
GO_FILES = $(wildcard *.go) | |
serve: | |
@make restart | |
@fswatch -o . | xargs -n1 -I{} make restart || make kill | |
kill: | |
@kill `cat $(PID)` || true |
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
# Parse a yarn.lock file using pure Nix | |
# yarn.lock v1 files are basically YAML with support for having multiple keys for a single value in a map and without array support. | |
# Inspired by https://github.com/yarnpkg/yarn/blob/158d96dce95313d9a00218302631cd263877d164/src/lockfile/parse.js | |
with builtins; | |
let | |
# Add index to a list of elements | |
enumerate = list: genList (i: ({ inherit i; e = elemAt list i; })) (length list); | |
mkToken = type: value: { inherit type value; }; | |
parseLockfile = str: let |
I hereby claim:
- I am olebedev on github.
- I am ole6edev (https://keybase.io/ole6edev) on keybase.
- I have a public key ASBG9e39P1XIcu91VeAIBbpqHDf-ZTAlmwPz9XC8YG6GTgo
To claim this, I am signing this object:
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
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
{ fetchurl, fetchgit }: | |
self: | |
super: | |
let | |
registries = { | |
yarn = n: | |
v: | |
"https://registry.yarnpkg.com/${n}/-/${n}-${v}.tgz"; | |
npm = n: | |
v: |
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
'use strict'; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
const handler = async (event, context) => { | |
return { | |
ok: true, | |
event, | |
context, | |
}; |
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
.apikey |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
NewerOlder