I hereby claim:
- I am peterjmag on github.
- I am peterjmag (https://keybase.io/peterjmag) on keybase.
- I have a public key ASDAoPJh__ZwSZSf0VIIEw1bixU74lkzTQgDaqcmY_Xbwwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$ yarn test | |
yarn run v1.19.2 | |
$ cross-env NODE_ENV=test CI=true tsdx test packages | |
PASS packages/component-component/__tests__/component-component.test.tsx | |
PASS packages/tooltip/__tests__/tooltip.test.tsx | |
PASS packages/combobox/__tests__/combobox.test.tsx | |
PASS packages/slider/__tests__/slider.test.tsx | |
FAIL packages/tabs/__tests__/tabs.test.tsx | |
● <Tabs /> › focuses the correct tab with keyboard navigation (vertical orientation) |
import json | |
import sqlite3 | |
import zlib | |
# ~/Library/Safari/CloudTabs.db | |
# Ref: https://www.reddit.com/r/mac/comments/89qx5n/iphone_safari_tabs_into_text_list_via_icloud/ | |
db = sqlite3.connect('CloudTabs.db') | |
tabs = [] |
#!/usr/bin/env node | |
/* | |
Generate a markdown links list from iCloud tabs, on macOS | |
Usage: | |
./icloudtabs2md.js > icloudtabs.md | |
./icloudtabs2md.js | pbcopy | |
Require: |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
onSelect(sizeValue) { | |
this.get('onSelectSize')(sizeValue); | |
} | |
} | |
}); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
init() { | |
this._super(...arguments); | |
this.set('items', [ | |
'this is a default value', | |
'it shouldn’t appear if `items` is passed in from the parent' | |
]); | |
} |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
someComputedProperty: Ember.computed('item.label', function() { | |
const item = this.get('item'); | |
Ember.Logger.log('someComputedProperty', item.label); | |
return `${item.label} ${new Date}`; | |
}) |
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var SomeComponent = require('./SomeComponent'); | |
ReactDOM.render( | |
<SomeComponent />, | |
document.getElementById('content') | |
); |
Copy the following snippet:
<meta name="twitter:label1" value="Reading time">
<meta name="twitter:data1" value="3 mins 🕑">
<meta name="twitter:label2" value="Recommends">
<meta name="twitter:data2" value="171 💚">
Paste it into Slack and hit send. (You can use @slackbot as a sort of sandbox if you don’t want to spam your team.)
You should see this:
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |