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
# source: https://blog.thomasheartman.com/posts/building-a-custom-nixos-installer | |
# set nix channel appropriately | |
# verify: | |
# nix-channel --list | |
# update: | |
# nix-channel --update nixpkgs | |
# build: | |
# nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix |
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
{ lib | |
, stdenv | |
, fetchFromGitHub | |
, flatbuffers | |
, libb2 | |
, libuv | |
, lmdb | |
, openssl | |
, perl | |
, perlPackages |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
qwerty_to_colemak = { | |
'Q': 'Q', | |
'W': 'W', | |
'E': 'F', | |
'R': 'P', | |
'T': 'G', | |
'Y': 'J', | |
'U': 'L', | |
'I': 'U', | |
'O': 'Y', |
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
# -*- coding: utf-8 -*- | |
# Sample Python code for youtube.subscriptions.list | |
# See instructions for running these code samples locally: | |
# https://developers.google.com/explorer-help/guides/code_samples#python | |
import os | |
import json | |
import google_auth_oauthlib.flow |
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
[Unit] | |
Description=Maloja self-hosted music scrobble database | |
Documentation=https://github.com/krateng/maloja | |
After=network.target | |
[Service] | |
Type=forking | |
Environment=HOME=/dev/null | |
SuccessExitStatus=1 | |
ExecStart=/usr/local/bin/maloja start |
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
#define ALT_TAB M(KC_ALT_TAB) // Macro for Alt-Tab | |
enum macro_keycodes { | |
KC_ALT_TAB | |
}; | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
[0] = LAYOUT( | |
KC_MUTE, KC_ESC, KC_MPLY, \ | |
MO(1), KC_UP, ALT_TAB, \ |
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
;;;;;;;;;;;;;;;; | |
;; ELPA setup ;; | |
;;;;;;;;;;;;;;;; | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib | |
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))) | |
(package-initialize) |
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 skimage.exposure as skex | |
import cellprofiler | |
from cellprofiler.image import Image | |
adj = skex.adjust_sigmoid(cp_image_in.get_image(),cutoff=0.001,gain=30) | |
adj = skex.equalize_adapthist(adj) | |
cp_image_out = Image(adj,parent_image=cp_image_in) |
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
'''<b>RunScript</b> - an easy way to write scripts for CellProfiler | |
<hr> | |
This module allows you to write small python scripts that are run as part | |
of the CellProfiler pipeline. | |
''' | |
################################# | |
# | |
# Imports from useful Python libraries | |
# | |
################################# |