Skip to content

Instantly share code, notes, and snippets.

=== npm audit security report ===
# Run npm install npm-shrinkwrap@200.5.1 to resolve 33 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate │ ReDoS │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ brace-expansion │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ npm-shrinkwrap │
@jscheel
jscheel / chrome-node-devtools-refresh.sh
Created November 18, 2016 18:35
Temporary hack to refresh the node inspector devtools without having to worry about the constantly-changing uuid. Only works in OSX. Use an iTerm2 trigger to run script automatically.
#!/bin/bash
######################################################################################
# regex for iterm2:
# chrome-devtools\:\/\/devtools\/remote\/serve\_file\/\@[a-f0-9]*\/inspector\.html\?experiments\=true\&v8only\=true\&ws\=localhost\:9229\/[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
#
# command for iterm2:
# /path/to/script/chrome-devtools-refresh.sh "\0" [-h "example.com"]
######################################################################################
<ul>
<li>Favorite Number: {{favoriteNumber}}</li>
<li>
Travel Gear
<ul>
{% for item in travelGear %}
<li>{{ item[1] }}</li>
{% endfor %}
</ul>
</li>
email: <string (email_address)>
name: <string>
first_name: <string>
last_name: <string>
about: <string>
title: <string>
company: <string>
phone: <string>
location: <string>
website: <string>
var myCustomData = {
email: 'arthur.dent@example.org',
favoriteNumber: 42,
travelGear: ['towel', 'tea']
};
groove.widget('setCustomer', myCustomData);

Keybase proof

I hereby claim:

  • I am jscheel on github.
  • I am jscheel (https://keybase.io/jscheel) on keybase.
  • I have a public key whose fingerprint is 97C4 7CE2 7888 6D7A AC8A 302A 96A3 C8A6 771D 63F6

To claim this, I am signing this object:

@jscheel
jscheel / groove-widget-command-queue-example.html
Last active September 12, 2016 07:04
Demonstrates how to push additional commands to the widget command queue.
<button id="load">Load Widget</button>
<button id="open">Open Widget</button>
<!-- BEGIN GROOVE WIDGET CODE -->
<script id="grv-widget">
/*<![CDATA[*/
window.groove = window.groove || {}; groove.widget = function(){ groove._widgetQueue.push(Array.prototype.slice.call(arguments)); }; groove._widgetQueue = [];
groove.widget('setWidgetId', 'INSERT YOUR WIDGET ID HERE');
groove.widget('setAutoload', false);
!function(g,r,v){var a,c,n=r.createElement("iframe");(n.frameElement||n).style.cssText="width: 0; height: 0; border: 0",n.title="",n.role="presentation",n.src="javascript:false",r.body.appendChild(n);try{a=n.contentWindow.document}catch(b){c=r.domain;var d="javascript:document.write('<head><script>document.domain=\""+c+"\";</",i="script></head><body></body>')";n.src=d+i,a=n.contentWindow.document}var s="https:"==r.location.protocol?"https://":"http://",p="http://groove-widget-production.s3.amazonaws.com".replace("http://",s);n.className="grv-widget-tag",a.open()._l=function(){c&&(this.domain=c);var
@jscheel
jscheel / groove-turbolinks-embed.html
Last active May 21, 2022 00:08
Turbolinks-compatible version of the Groove support widget
@jscheel
jscheel / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jscheel
jscheel / fiddle.response.json
Created January 31, 2012 16:16 — forked from traviskroberts/gist:1711232
fiddle.response.json
[
{
"id": 1,
"account_id": 3,
"wine_id": 646,
"qty": 12,
"format": "bottle",
"vintage": 1982,
"created_at": "2012-01-30T16:26:22Z",
"updated_at": "2012-01-30T16:26:22Z",