Skip to content

Instantly share code, notes, and snippets.

View jdelStrother's full-sized avatar
👋

Jonathan del Strother jdelStrother

👋
View GitHub Profile
/***/ "03A+":
/*!********************************************!*\
!*** ./node_modules/lodash/isArguments.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "JTzB"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "ExA7");
diff --git a/spec/features/indices/channel_index_spec.rb b/spec/features/indices/channel_index_spec.rb
index 4f1bc6c6d6..2b01215980 100644
--- a/spec/features/indices/channel_index_spec.rb
+++ b/spec/features/indices/channel_index_spec.rb
@@ -65,8 +65,12 @@
end
specify "marking a channel for deletion removes it from the index" do
+ clip = channel.audio_clips.sudo_make
expect(Channel.search(nil, retry_stale: false)).to include(channel)
def flatten_to_form_value_pairs(params)
params.to_query.split("&").map { |component| component.split("=").map { |s| Rack::Utils.unescape(s) } }
end
params = {post: {title: "foo", category_ids: [1,2,3]}}
flatten_to_form_value_pairs(params)
def hidden_field_tags(params)
# flatten out nested hashes into simple key-value pairs
flat_params = params.to_query.split("&").map { |component| component.split("=").map { |s| Rack::Utils.unescape(s) } }
safe_join flat_params.map { |k, v| hidden_field_tag(k, v, id: nil) }
end
params = {post: {title: "foo", category_ids: [1,2,3]}}
hidden_field_tags(params)
FROM ruby:2.4
# Versions: https://pypi.python.org/pypi/awscli#downloads
ENV AWS_CLI_VERSION 1.11.178
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python-dev build-essential groff less && \
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
Capybara.register_driver :chrome do |app|
require 'selenium-webdriver'
client = Selenium::WebDriver::Remote::Http::Default.new
opts = {
chrome_options: {
# Canary has a couple of benefits right now - eg screenshots actually work.
binary: "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
args: %w[headless]
}
}
;;; packages.el --- flow-type layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Jonathan del Strother <jon@jons-mbp-4.local>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; packages.el --- flow-type layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Jonathan del Strother <jon@jons-mbp-4.local>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

Keybase proof

I hereby claim:

  • I am jdelstrother on github.
  • I am jdelstrother (https://keybase.io/jdelstrother) on keybase.
  • I have a public key ASAS4qH7bLsSpwWyxAbW3yYMGOalcNXaqew6aoYzQjp7rQo

To claim this, I am signing this object:

CATEGORIES = [
"Sports",
"Entertainment",
"Comedy",
"News & Politics",
"Business",
"Society & Culture",
"Technology",
"Health & Fitness",
"en Español",