Skip to content

Instantly share code, notes, and snippets.

View poteto's full-sized avatar

lauren poteto

View GitHub Profile

Lalassemble Code of Conduct


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 /
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 / mark-empty-as-busy.js
Created February 24, 2019 05:40
WIP: Create busy placeholders in GCal
View mark-empty-as-busy.js
function toDateRanges(items) {
return items
.filter(calEvent => {
return (
calEvent.start &&
calEvent.start.dateTime &&
calEvent.end &&
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.
View generate-random-dates.js
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 / 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
View gas_sheet_as_json.js
* 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 / FBGroupMemberRemover.js
Last active September 11, 2019 17:49
Delete everyone from your Facebook group! Thanks for the dark UX, FB
View FBGroupMemberRemover.js
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 / controllers.application.js
Last active December 27, 2017 09:08
changeset es6 proxy
View controllers.application.js
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 });
View skeleton-5.js
import Ember from 'ember';
import QueryParams from 'ember-parachute';
export const AppQueryParams = new QueryParams({
query: {
as: 'q',
defaultValue: 'puppy',
refresh: true
View skeleton-4.hbs
{{#my-loader query=query as |loader|}}
{{#if loader.isRunning}}
{{#each as |user|}}
View skeleton-3.hbs
{{yield (hash