Skip to content

Instantly share code, notes, and snippets.

View joshuaNjordan85's full-sized avatar

Joshua N. Jordan joshuaNjordan85

View GitHub Profile
" put this line first in ~/.vimrc
set nocompatible | filetype indent plugin on | syn on
fun! SetupVAM()
let c = get(g:, 'vim_addon_manager', {})
let g:vim_addon_manager = c
let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons'
" most used options you may want to use:
" let c.log_to_buf = 1
" let c.auto_install = 0
(register-handler :submit-chat
validate-schema-mw
(fn [db [_ chat-msg]]
(let [wolo-id (:active-wolo db)
wolo (filter #(= (:id %) wolo-id) (:wolos db))
chats (:chats wolo)]
(prn "what is wolo" wolo "what are chats" chats)
(conj chats {:usr (gensym "Testing")
:msg chat-msg}))))
@joshuaNjordan85
joshuaNjordan85 / gist:16e194d848c04b9880821d6f0b271104
Created July 26, 2016 19:14
lein figwheel ios/android after 1.9.0-alpha10 upgrade
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: fipp.visit, being replaced by: #'fipp.visit/boolean?
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: figwheel-sidecar.config-check.type-check, being replaced by: #'figwheel-sidecar.config-check.type-check/boolean?
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/boolean?
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/boolean?
WARNING: bounded-count already refers to: #'clojure.core/bounded-count in namespace: clojure.core.async, being replaced by: #'clojure.core.async/bounded-count
Looks like our analyzer is using a redundant reference to boolean?
(deftest test-routing
(checking (str "that when route-to is dispatched, the view"
"routed-to is added to the view-history and"
" that when route-back is dispatched, the view"
" routed to is the previous view in the view-"
"history") 100
[routing-events (s/gen ::route-to-events)]
(reset-db!)
(run! dispatch-sync routing-events)
(let [without-last-route (pop routing-events)
(deftest test-route-back
(checking (str "that when route-back is dispatched, the view"
" routed to is the previous view in the view-"
"history") 1
[routes (s/gen (vec views-set))]
(.log js/console routes)))
;;; package --- init.el
;;; Commentary:
;;; Code:
(setq message-log-max 10000)
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("melpa-stable" . "https://stable.melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(unless (file-directory-p "~/.emacs.d/elpa/archives")

Keybase proof

I hereby claim:

  • I am joshuanjordan85 on github.
  • I am jjordan (https://keybase.io/jjordan) on keybase.
  • I have a public key ASCT9fJUmOmqNlB7gsgDIyQRC_OKZpzznHT1vz18O8QDLwo

To claim this, I am signing this object:

@joshuaNjordan85
joshuaNjordan85 / functions.tf
Created March 18, 2020 14:37
GCP functions deployment example
resource "google_cloudfunctions_function" "list_oacs" {
name = "oacbotlist"
description = "functionality related to listing oacs in the library"
runtime = "nodejs10"
region = "us-east1"
project = var.PROJECT_NAME
service_account_email = var.SERVICE_ACCOUNT_EMAIL
available_memory_mb = 128
source_archive_bucket = google_storage_bucket.ops_functions.name
source_archive_object = google_storage_bucket_object.oacbot_list_archive.name
name: 'Deploy Functions'
on:
push:
branches:
- "production"
paths:
- "infrastructure/*.tf"
pull_request:
branches:
- "master"