Skip to content

Instantly share code, notes, and snippets.

View poteto's full-sized avatar
🥔
ポテト

lauren poteto

🥔
ポテト
View GitHub Profile

Lalassemble Code of Conduct

Welcome!

Lalassemble is a Discord server and linkshell community for the Aether datacenter in Final Fantasy XIV.

The current admins and mods are:

  • @milk#2755
@poteto
poteto / lauren-tan-speaking.md
Last active August 28, 2020 21:59
Looking for a speaker for your upcoming tech conference? I'm an engineering leader and software engineer at Netflix and have done >15 talks at small to large conferences. I'm interested in speaking about TypeScript, JavaScript, React, GraphQL, Elixir/Phoenix, Microservices, Engineering leadership and/or management
@poteto
poteto / mark-empty-as-busy.js
Created February 24, 2019 05:40
WIP: Create busy placeholders in GCal
function toDateRanges(items) {
return items
.filter(calEvent => {
return (
calEvent.start &&
calEvent.start.dateTime &&
calEvent.end &&
calEvent.end.dateTime
);
})
@poteto
poteto / generate-random-dates.js
Last active February 18, 2019 23:28
Quick and dirty script to generate some random dates. Copy/paste into your console, it will copy those dates into your clipboard.
const COUNT = 32;
const START_DATE = new Date(2019, 0, 1);
const END_DATE = new Date(2019, 11, 31);
function randomDate(start, end) {
return new Date(
start.getTime() + Math.random() * (end.getTime() - start.getTime())
);
}
@poteto
poteto / gas_sheet_as_json.js
Created March 29, 2018 22:05 — forked from chrsstrm/gas_sheet_as_json.js
Treat a Google Sheet like a JSON API
/**
* create a Google Sheet then go to Tools > Script Editor
* Paste this code into the editor. Save.
* Publish > Deploy as Web App
* Set new version, publish as me, who has access - anyone, even anon.
* GET to the URL, add on end ?sheet=[sheet name]
* Sheet name is the sheet name, manage appropriately (no spaces or symbols to keep it simple)
* Request returns JSON representation of the sheet.
*/
@poteto
poteto / FBGroupMemberRemover.js
Last active September 11, 2019 17:49
Delete everyone from your Facebook group! Thanks for the dark UX, FB
class FBGroupMemberRemover {
constructor() {
this.adminText = 'Admin';
this.removeMemberModalHeadingText = 'Remove Member';
this.memberElementSelector = '[data-name="GroupProfileGridItem"]';
this.memberContextMenuSelector = 'button[aria-label="Member Settings"]';
this.removeMemberButtonSelector = 'a[data-testid="leave_group"]'
this.removalOptions = {
@poteto
poteto / controllers.application.js
Last active December 27, 2017 09:08
changeset es6 proxy
import Ember from 'ember';
import Changeset from '../lib/changeset';
import validatePresence from '../validators/presence';
let model = { foo: 'bar' };
let validations = {
foo: validatePresence()
};
let changeset = new Changeset(model, { validations });
import Ember from 'ember';
import QueryParams from 'ember-parachute';
export const AppQueryParams = new QueryParams({
query: {
as: 'q',
defaultValue: 'puppy',
refresh: true
}
});
{{#my-loader query=query as |loader|}}
{{#if loader.isRunning}}
<p>Loading...</p>
{{else}}
{{#each loader.data as |user|}}
{{user.fullName}}
{{/each}}
{{/if}}
{{/my-loader}}
{{yield (hash
isRunning=fetchData.isRunning
data=data)
}}