Skip to content

Instantly share code, notes, and snippets.

@bassettsj
bassettsj / Example.kt
Created January 25, 2024 22:33
MoveTalkbackFocus
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.focusable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36","lighthouseVersion":"3.0.3","fetchTime":"2018-11-02T17:45:46.305Z","requestedUrl":"https://www.upwork.com/messages/rooms/room_578b844dc53304bf000fa13a4b43b1b0","finalUrl":"https://www.upwork.com/messages/rooms/room_578b844dc53304bf000fa13a4b43b1b0","runWarnings":[],"audits":{"first-contentful-paint":{"id":"first-contentful-paint","title":"First Contentful Paint","description":"First contentful paint marks the time at which the first text/image is painted. [Learn more](https://developers.google.com/web/fundamentals/performance/user-centric-performance-metrics#first_paint_and_first_contentful_paint).","score":0.86,"scoreDisplayMode":"numeric","rawValue":2527.524,"displayValue":["%10d ms",2527.524]},"first-meaningful-paint":{"id":"first-meaningful-paint","title":"First Meaningful Paint","description":"First Meaningful Paint measures when the primary content of a page is visible.
This file has been truncated, but you can view the full file.
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3474.0 Safari/537.36",
"lighthouseVersion": "2.9.4",
"generatedTime": "2018-06-28T15:44:23.717Z",
"initialUrl": "https://www.upwork.com/e/1553858/offers/v2/new?contractor=5759729&show-team-selection=yes",
"url": "https://www.upwork.com/e/1553858/offers/v2/new?contractor=5759729&show-team-selection=yes",
"runWarnings": [],
"audits": {
"is-on-https": {
"score": true,
@bassettsj
bassettsj / Root.jsx
Last active June 11, 2018 17:58
Fractal React Applications
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import React from 'react';
import AsyncLoader from './async-loader';
const MessagesApp = () => <AsyncLoader load={() => import('./messages')} />;
const SettingsApp = () => <AsyncLoader load={() => import('./settings')} />;
// Piglatin
// 1. if a word begins with a consonant, append it to the end and add ay
// 2. if not add way
const test = require('tape');
function translateWord(word) {
let isCalitalized = /^[A-Z]/.test(word);
let result = word.toLowerCase();
const beginsWithConsonant = /^([^aeiou])(.*)$/;
const test = require('tape');
class Iterator {
hasNext() {
// Your code here
}
next() {
// Your code here
}
}
@bassettsj
bassettsj / ListTest.js
Created August 18, 2016 17:34
react-toolbox-list
class ListTest extends React.Component {
state = {
checkbox: false
};
handleCheckboxChange = () => {
this.setState({checkbox: !this.state.checkbox});
};
render () {
{
"new-project-builder": {
"verticals": ["staffing"]
},
"alert-test": {
"users": ["3663", "1"]
},
"environment-feature": {
"envrionments": [
"gigwalk-python-app-server"
@autobind
onClick(e: SyntheticEvent): void {
e.preventDefault();
const elTarget = e.currentTarget;
if (elTarget instanceof HTMLElement) {
const classList = elTarget.classList;
// only allow steps that are in the past or have errors to be edited
if (classList.contains('c--past') || classList.contains('c--error')) {
const stepID = parseInt(`${elTarget.dataset.id}`, 10);
Using worker: worker-linux-docker-31df4ab2.prod.travis-ci.com:travis-linux-16
Build system information
Build language: node_js
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu