Skip to content

Instantly share code, notes, and snippets.

@thunderrabbit
thunderrabbit / .block
Last active November 22, 2021 23:29 — forked from mbostock/.block
Collision Detection
license: gpl-3.0
redirect: https://observablehq.com/@d3/collision-detection/2
@thunderrabbit
thunderrabbit / .emacs
Last active July 8, 2017 12:26
Would like to specify multiple tags
(defvar journal-site-location "~/journal/"
"The location of the journal files.")
(defun journal-new-post (title tags yyyy mm dd)
"Create a new journal post for today with TITLE and TAG."
(interactive (list
(read-string "Title: ")
(journal-read-tags)
(read-string (format "Year (%s): " (format-time-string "%Y")) nil nil (format-time-string "%Y"))
(read-string (format "Month (%s): " (format-time-string "%m")) nil nil (format-time-string "%m"))
@thunderrabbit
thunderrabbit / .emacs
Created July 8, 2017 05:07
Would like to specify multiple tags
(defvar journal-site-location "~/journal/"
"The location of the journal files.")
(defun journal-new-post (title tags yyyy mm dd)
"Create a new journal post for today with TITLE and TAG."
(interactive (list
(read-string "Title: ")
(read-string "Tag: ")
(read-string (format "Year (%s): " (format-time-string "%Y")) nil nil (format-time-string "%Y"))
(read-string (format "Month (%s): " (format-time-string "%m")) nil nil (format-time-string "%m"))
Verifying that "14A96SQ2a9iFr7yvPQLBhn6h6LCLC9wpMg.id" is my Blockstack ID. https://onename.com/14A96SQ2a9iFr7yvPQLBhn6h6LCLC9wpMg

Keybase proof

I hereby claim:

  • I am thunderrabbit on github.
  • I am thunderrabbit (https://keybase.io/thunderrabbit) on keybase.
  • I have a public key whose fingerprint is 7D79 6ECE 0434 1608 5F0D FB2B 540A 67A9 C4E3 F653

To claim this, I am signing this object:

AddForeignkeysToUsersTable

	public function up()
	{
		Schema::table('users', function($table) {
			$table->foreign('department_id')->references('id')->on('departments');
			$table->foreign('role_id')->references('id')->on('roles');
		});
	}
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">Comix Sample</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59">
@thunderrabbit
thunderrabbit / index.html
Last active December 13, 2015 16:39 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">