Skip to content

Instantly share code, notes, and snippets.

@neilcarpenter
neilcarpenter / gist:7eff92f090b9dda5572f
Last active February 24, 2016 15:40
Tweet response with video
{
"created_at": "Wed Feb 24 15:39:04 +0000 2016",
"id": 702518110369259500,
"id_str": "702518110369259520",
"text": "big video https://t.co/ZnoHgXAbva",
"source": "<a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
@neilcarpenter
neilcarpenter / gist:677aeab3d11ffc01f6de
Created May 1, 2015 11:26
Highlight react-rendered elements
setInterval(function() { Array.prototype.slice.call(document.querySelectorAll('[data-reactid]')).forEach(function(element) { element.style.background = 'rgba(255,0,0,0.1)'; }) }, 500);
@neilcarpenter
neilcarpenter / gist:8979ea9ed91b10e36af9
Created March 5, 2015 11:03
Enable Emmet in .JSX files, using Babel JSX Syntax highlighter
// add to Preferences > Key Bindings - User
// see http://stackoverflow.com/a/26619524 for context
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"