Skip to content

Instantly share code, notes, and snippets.

View lenards's full-sized avatar

Andrew Lenards lenards

  • Tucson, AZ
View GitHub Profile
/* Styles for hiding the native radio button */
input[type='radio'].check-custom {
top: 0;
left: 0;
width: 0;
height: 0;
opacity: 0;
filter: alpha(opacity=0);
position: absolute;
visibility: hidden;
@lenards
lenards / elm-0-19-elm-install-attempt
Last active March 20, 2019 00:42
This is the output from `elm.cmd install` as of elm 0.19 (0.19-bugfix6). The `package` command is no longer available, and `elm install :package-name` is only used when you are installing to the Elm module manifest, aka `elm.json`. See the note about how the command doesn't use the same approach as `npm install`.
> ..\node_modules\.bin\elm.cmd install
-- INSTALL WHAT? ---------------------------------------------------------------
I am expecting commands like:
elm install elm/http
elm install elm/json
elm install elm/random
@lenards
lenards / elm-resources.md
Last active August 20, 2018 23:03
A short list for a brief "experience report" talk in August 2018 on my first 5 months coding in Elm
@lenards
lenards / just_enough_elm.md
Last active October 27, 2021 11:50
A short introduction to Elm syntax and operations reworked and heavily borrowed from Holden Karau's "Scala Crash Course"

Just Enough Elm

Elm is a functional programming language that compiles to JavaScript. You can build websites and web applications using it. You can reliably refactor them as the needs and features grow and/or change. It has a goal is simplicity, and it is not just for beginniners.

In short...

  • Reliable refactoring
  • Friendly error messages
  • Enforced semantic versioning (in libraries)
  • No runtime errors (in practice)
@lenards
lenards / openrc-test-example.sh
Created May 26, 2018 23:30
Here are the examples that I was using that have made up, Star Wars inspired, values
#!/usr/bin/env bash
# To use an OpenStack cloud you need to authenticate against the Identity
# service named keystone, which returns a **Token** and **Service Catalog**.
# The catalog contains the endpoints for all services the user/tenant has
# access to - such as Compute, Image Service, Identity, Object Storage, Block
# Storage, and Networking (code-named nova, glance, keystone, swift,
# cinder, and neutron).
#
# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other
# OpenStack API is version 3. For example, your cloud provider may implement

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com/myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo.

How do I add images to a wiki page?

You need to clone the wiki repo and edit it on your system.

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('<URL>') does not match the recipient window's origin ('<URL>').
25Error parsing header X-XSS-Protection: 1; mode=block; report=<URL>: insecure reporting URL for secure page at character position 22. The default protections will be applied.
mBm9DZ7FONk:1 Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character position 22. The default protections will be applied.
BQK3BiMlXe8:1 Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character position 22. The default protections will be applied.
tHLRexgkOzk?rel=0&wmode=opaque&enablejsapi=1:1 Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character positio
PS C:\WINDOWS\system32> choco install microsoftazurestorageexplorer
Chocolatey v0.10.8
Installing the following packages:
microsoftazurestorageexplorer
By installing you accept licenses for the packages.
Progress: Downloading microsoftazurestorageexplorer 0.9.4.20180213... 100%
microsoftazurestorageexplorer v0.9.4.20180213 [Approved]
microsoftazurestorageexplorer package files install completed. Performing other installation steps.
The package microsoftazurestorageexplorer wants to run 'chocolateyInstall.ps1'.
@lenards
lenards / functions.js
Created February 27, 2018 03:22
If we could accept "terminate" as an "instance_action" within Atmosphere API, then you'd be able to handle delete as an update of the end-date attribute.
import InstanceConstants from "constants/InstanceConstants";
import Instance from "models/Instance";
import InstanceState from "models/InstanceState";
import InstanceActionRequest from "models/InstanceActionRequest";
import Utils from "../Utils";
// we define a "function" constructor that will create a closure for an actionName
// and the closure will take one argument, the instance
@lenards
lenards / output.out
Created December 1, 2017 21:12
Sample shell output from working on the lore-quickstart
✔ ~/devel
13:58 $ lore
Usage: $ <command>
Commands:
new Create a new application
extract Create files that mirror the blueprint behavior
generate Generate common project files
Options: