Skip to content

Instantly share code, notes, and snippets.

View qaid's full-sized avatar

Qa'id Jacobs qaid

View GitHub Profile
@qaid
qaid / obsidian-web-clipper.js
Last active January 3, 2023 17:06 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@qaid
qaid / why-bother-writing-about-your-development-and-design-work.md
Created November 12, 2015 11:23
Text for Medium post about writing about your work

My 4-point argument for encouraging the teams I join to scrawl their brains out. Literally. And literarily.

1. Apparently, It’s What Awesome and Smart People Do

Look at these amazing company blogs - I am constantly learning from and returning to these; they are an excellent reference:

@qaid
qaid / gist:1f7f9029b2bd0aee9d28
Last active August 29, 2015 14:22
Store.js content for Treehouse Ember course (Loading Arrays of JavaScript objects)
// Props to @eric_follows (twitter) for putting in the work in the Treehouse comments typing this text up
var posts = [
{
id: '1',
title: "I love blood",
body: "I awoke in my own bed. If it be that I had not dreamt, the Count must have carried me here. I tried to satisfy myself on the subject, but could not arrive at any unquestionable result. To be sure, there were certain small evidences, such as that my clothes were folded and laid by in a manner which was not my habit. My watch was still unwound, and I am rigorously accustomed to wind it the last thing before going to bed, and many such details. But these things are no proof, for they may have been evidences that my mind was not as usual, and, for some cause or another, I had certainly been much upset. I must watch for proof. Of one thing I am glad. If it was the Count who carried me here and undressed me, he must have been hurried in his task, for my pockets are intact. I am sure this diary would have been a mystery to him which he wou
@qaid
qaid / wpdate.sublime-snippet
Created February 11, 2013 21:14
Sublime Text 2 snippet for inserting PHP auto date disply function (using in Wordpress)
<snippet>
<content><![CDATA[
<?php echo date('Y'); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>wpdate</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
<description>WP code for auto year</description>
</snippet>
@qaid
qaid / html.sublime-snippet
Created February 11, 2013 21:11
Sublime Text 2 snippet for HTML5 structure with fields for description, title, author element, body
<snippet>
<content><![CDATA[<!doctype html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="$1">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>${2:Untitled}</title>
<link rel=stylesheet href="css/style.css">
<link rel="author" href="$3">
@qaid
qaid / ST 2 Useful Shortcuts.md
Created February 11, 2013 20:50
Sublime Text 2 - Useful shortcuts (re-created in MarkDown)

Sublime Text 2 - Useful Shortcuts (Mac OS X)

(forked from @lucasfais)

General

  • ⌘T (go to file)
  • ⌘⌃P (go to project)
  • ⌘R (go to methods)
  • ⌃G (go to line)
@qaid
qaid / sublime-text-2-preferred-packages.md
Created February 11, 2013 20:27
ST2: My Preferred Packages

Sublime Text 2 Preferred Packages

Code Writing and Syntax

  • Alignment
  • Emmet
  • Sublime-Better-Coffeescript
  • Sass
  • Beautify Ruby

Code Analysis