Skip to content

Instantly share code, notes, and snippets.

View ThisIsMissEm's full-sized avatar

Emelia Smith ThisIsMissEm

View GitHub Profile
@ThisIsMissEm
ThisIsMissEm / 1.js
Created August 21, 2018 19:47
Despite the code being identical other than the ordering of the "addEventListener" calls, the results change when run on the Cloudflare Worker platform.
addEventListener('fetch', event => {
console.log("fetch handler 2", event.request)
})
addEventListener('fetch', event => {
console.log("fetch handler 1")
event.respondWith(handleRequest(event.request))
})
/**

Keybase proof

I hereby claim:

  • I am thisismissem on github.
  • I am thisismissem (https://keybase.io/thisismissem) on keybase.
  • I have a public key ASB-5tOXDkaDbWf5iEctuKAIBOnSfUzCu0bq1u0wsyHauwo

To claim this, I am signing this object:

# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query Test($owner: String!, $repo: String!, $baseRefName: String!, $cursor: String, $prCount: Int!) {
repository(owner: $owner, name: $repo) {
pullRequests(before: $cursor, last: $prCount, states: [MERGED], baseRefName: $baseRefName) {
totalCount,
pageInfo {
Your Gemfile lists the gem byebug (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
{
// The standard ECS options, place in your own values:
"cluster": "",
"serviceName": "my-side-car-container",
"taskDefinition": "",
"role": "",
// desireCount should be greater than the number of instances that are in the ECS cluster.
"desiredCount": 1000,
import { put, takeEvery, call } from 'redux-saga/effects'
import backend from '@ada/lib/Backend'
import settings from '@ada/redux/modules2/settings'
export function* reloadSettings () {
const newSettings = yield call(backend.fetchAuth, 'user/settings')
yield put(settings.actions.replace(newSettings))
}
import React from 'react';
import {
registerComponent,
} from 'react-native-playground';
import {
StatusBar,
Text,
View,
AsyncStorage,
} from 'react-native';
// views/Documents.js
function Documents(props) {
return (
<ul>
{props.documents.map((doc) => <li>{doc.id} - {doc.title}</li>)}
</ul>
)
}
const { Children, Component, PropTypes } = require('react')
const hoodieShape = PropTypes.shape({
ready: PropTypes.object.isRequired,
account: PropTypes.object.isRequired,
store: PropTypes.object.isRequired
})
class HoodieProvider extends Component {
constructor(props, context) {

Here's a short list of the articles and projects I'm working for open, public, free release:

Articles

  • The most common XSS in React.js Applications
  • A better approach to sessions in Node.js (sessions, cookies, authentication, node.js)
  • A Guide to Preparing your REST API for GraphQL proxying _(graphql, rest, apis, guides)
  • Lessons from GraphQL for REST APIs (graphql, rest, apis)
  • Designing State - A pattern for Redux state management (react.js, redux)
  • Sorting and Aggregations – How to avoid conflicts (elasticsearch)