Skip to content

Instantly share code, notes, and snippets.

View notactuallypagemcconnell's full-sized avatar

Page Bobby McConnell Grayson notactuallypagemcconnell

View GitHub Profile

Spacemacs: A quick intro from a Vim person who used to not like Spacemacs

Installation

Follow their docs. They worked fine for me on OSX and Linux. They are here

Opening Spacemacs

So, this is pretty easy. You cd to where ya feel like editing some code and doing things in general.

{
"ettes": [
"the existence a(n) aigrette implies the existence of a(n) aigr",
"the existence a(n) aiguillette implies the existence of a(n) aiguill",
"the existence a(n) ailette implies the existence of a(n) ail",
"the existence a(n) alette implies the existence of a(n) al",
"the existence a(n) ambrette implies the existence of a(n) ambr",
"the existence a(n) amourette implies the existence of a(n) amour",
"the existence a(n) amphorette implies the existence of a(n) amphor",
"the existence a(n) amusette implies the existence of a(n) amus",
@notactuallypagemcconnell
notactuallypagemcconnell / dialog.html
Created May 15, 2019 17:03 — forked from arthurattwell/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<div style="font-family: sans-serif;">
<? var data = valid(); ?>
<form id="form" name="form">
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?>
<? for (var i = 0; i < data.length; i++) { ?>
<? for (var j = 0; j < data[i].length; j++) { ?>
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br>
<? } ?>
<? } ?>
<? } else { ?>
class NilWhatAreYouDoingStahp
attr_accessor :not_nil
def initialize
@not_nil = "I'm not nil! I'm a value!"
end
def wat
if not_nil.nil?
not_nil = "Ok, now I'm not nil."
# have this dep for dev AND test, not just test
# https://github.com/lpil/mix-test.watch/blob/master/lib/mix_test_watch/path.ex
defmodule Foobar.Recompiler do
use GenServer
def start_link(args) do
GenServer.start_link(__MODULE__, args)
end
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install youtube-dl
cd ~/Desktop
youtube-dl <REPLACE_THIS_WITH_YOUR_YOUTUBE_LINK>
require 'fiddle'
require 'pry'
User = Struct.new :name
class NullUser < NilClass
def self.new(*args, &block)
obj = Object.new
obj_ptr = Fiddle::Pointer.new 2*obj.object_id
klass_ptr = Fiddle::Pointer.new 2*self.object_id