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
const r = require('rethinkdb'); | |
const sampleSchema = { | |
name: 'mydb', | |
tables: [ | |
{ | |
name: 'users', | |
// Not really used but as a schema reference |
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
; -*- lexical-binding: t; -*- | |
(require 'dash) | |
(require 's) | |
(require 'smex) | |
(require 'promise) | |
(require 'stream) | |
(require 'transducer ) |
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
(require 'dash) | |
(require 's) | |
(require 'f) | |
(defface fmc/completion-label-face '((t (:weight bold :height 1.1))) | |
"Label face") | |
(defface fmc/completion-delimiter-face '((t (:weight light :height 0.9))) | |
"Delimiter face") |
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
(defvar fn/prodigy-command-name-prefix "fmpv/" | |
"The prefix when creating binding prodigy view commands.") | |
(defun fn/prodigy-switch-to-process-buffer (service) | |
"Just an wrapper for said function with SERVICE." | |
(prodigy-switch-to-process-buffer service)) | |
(defun fn/prodigy-prepared-switch-to-process-buffer (service) | |
"Another wrapper to make specific functions for viewing SERVICE." | |
(lexical-let* ((service-name (plist-get service :name)) |
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
(require 'f) | |
(defconst fn/relative-same-node "." | |
"Represents the same node on a path.") | |
(defconst fn/relative-parent-node ".." | |
"Represents the parent node on a path.") | |
(defun fn/relative-parent-node-thunk (&rest args) | |
"Always returns `fn/relative-parent-node'." |
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
(with-eval-after-load 'projectile | |
(defconst fn/project-file ".project.el" | |
"Project configuration file") | |
(defconst fn/project-local-file ".project-locals.el" | |
"Project local setting file") | |
(defconst fn/project-init-files (list fn/project-file fn/project-local-file) | |
"Project init files") |
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
(defun fn/orgtbl-to-yaml (table params) | |
"Convert an org table to yaml." | |
(lexical-let ((headers | |
(mapcar | |
(lambda (header) | |
(replace-regexp-in-string | |
" " "-" | |
(downcase header))) | |
(car table))) | |
(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
;;; magin.el --- Write git ignore files with a DSL -*- lexical-binding: t; -*- | |
;; | |
;; Filename: magin.el | |
;; Description: | |
;; Author: Francis Murillo | |
;; Maintainer: | |
;; Created: Wed Dec 28 21:36:00 2016 (+0800) | |
;; Version: 0.1 | |
;; Package-Requires: ((emacs "24.4")) | |
;; Last-Updated: |
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
;;; projin.el --- Write projectile ignore files with a DSL -*- lexical-binding: t; -*- | |
;; | |
;; Filename: projin.el | |
;; Description: | |
;; Author: Francis Murillo | |
;; Maintainer: | |
;; Created: Wed Dec 28 21:36:00 2016 (+0800) | |
;; Version: 0.1 | |
;; Package-Requires: ((emacs "24.4")) | |
;; Last-Updated: |
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
(cons "freenode" | |
(concat ;; freenode | |
(propertize | |
"free" 'face '(:foreground "#e6e6e6")) | |
(propertize | |
"node" 'face '(:foreground "#4beb4a")))) | |
(cons "emacs" | |
(propertize | |
"emacs" |
OlderNewer