I hereby claim:
- I am nuc on github.
- I am nuc (https://keybase.io/nuc) on keybase.
- I have a public key whose fingerprint is 85F6 ECCA 1936 DC65 BF91 859B B7AB F0C8 4AC0 1232
To claim this, I am signing this object:
| # Parses YouTube URLs directly or from iframe code. Handles: | |
| # * Address bar on YouTube url (ex: http://www.youtube.com/watch?v=ZFqlHhCNBOI) | |
| # * Direct http://youtu.be/ url (ex: http://youtu.be/ZFqlHhCNBOI) | |
| # * Full iframe embed code (ex: <iframe src="http://www.youtube.com/embed/ZFqlHhCNBOI">) | |
| # * Old <object> tag embed code (ex: <object><param name="movie" value="http://www.youtube.com/v/ZFqlHhCNBOI">...) | |
| /(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/ | |
| $5 #=> the video ID | |
| # test it on Rubular: http://rubular.com/r/eaJeSMkJvo |
| (function(){ | |
| "use strict"; | |
| document.addEventListener('keydown', function (event) { | |
| setTimeout(function () { | |
| var key, win, frameEl, activeEl, uri, msg; | |
| msg = ""; | |
| key = window.event ? event.keyCode : event.which; | |
| //Tab | |
| if (key === 9) { |
| /* eslint-disable no-sync */ | |
| const request = require('superagent') | |
| const path = require('path') | |
| const fs = require('fs') | |
| const ACCOUNT = 'account' | |
| const PROJECT = 'project-name' | |
| const TOKEN = 'your-token' | |
| const ASSET_URL = 'https://example.com/assets' | |
| const SOURCEMAPS_PATH = './temp' |
| .comPlainTextContentEditable { | |
| -webkit-user-modify: read-write-plaintext-only; | |
| } | |
| .comPlainTextContentEditable--has-placeholder::before { | |
| content: attr(placeholder); | |
| opacity: 0.5; | |
| color: inherit; | |
| cursor: text; | |
| } |
| /* eslint-disable no-console */ | |
| import React, { Component } from 'React' | |
| import _ from 'lodash' | |
| /* | |
| * Drop this mixin into a component that wastes | |
| * time according to Perf.getWastedTime() to find | |
| * out what state/props should be preserved. Once it | |
| * says "Update avoidable!" for {state, props}, | |
| * you should be able to use shouldComponentUpdate. |
| const calculateXORChecksum = array => | |
| array.reduce((checksum, item) => | |
| checksum ^ parseInt(item, 16) | |
| , 0).toString(16) |
I hereby claim:
To claim this, I am signing this object:
| require 'rubygems' | |
| require 'lifx' | |
| class Lifx | |
| attr_reader :client, :light | |
| def initialize | |
| @client = LIFX::Client.lan | |
| @client.discover! do |c| |
| $('#files_list > div > a[data-file-id]').each(function(index, item){TS.files.deleteFile($(item).data('file-id'))}) |
| " Change the color scheme from a list of color scheme names. | |
| " Version 2010-09-12 from http://vim.wikia.com/wiki/VimTip341 | |
| " Press key: | |
| " F8 next scheme | |
| " Shift-F8 previous scheme | |
| " Alt-F8 random scheme | |
| " Set the list of color schemes used by the above (default is 'all'): | |
| " :SetColors all (all $VIMRUNTIME/colors/*.vim) | |
| " :SetColors my (names built into script) | |
| " :SetColors blue slate ron (these schemes) |