Skip to content

Instantly share code, notes, and snippets.

Alex Zirbel azirbel

Block or report user

Report or block azirbel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@azirbel
azirbel / word.js
Created Sep 10, 2018
Example Apollo higher-order component for mutations
View word.js
import { graphql } from 'react-apollo'
import { UPDATE_WORD_MUTATION } from '<GraphQL query strings file>'
export const withUpdateWord = cc =>
graphql(UPDATE_WORD_MUTATION, {
props: ({ mutate }) => ({
updateWord: ({ id, newData, optimisticNewModel }) => {
return mutate({
variables: {
id,
View od-admin-document-table.js
// NOW
import angular from 'angular';
module.exports = angular.module('admin.components.od-document-table.od-admin-document-table', [
])
.component('odAdminDocumentTable', {
bindings: {
documentableId: '<',
documents: '=',
View setup.sh
#!/bin/bash
set -euo pipefail
# This script controls stack-specific setup, like tools to download and
# install. It runs once when you run vagrant-spk vm up. When you modify this
# file, you must manually re-execute it. See below for details.
#
# This is the ideal place to apt-get install system packages your app relies
# on, or run other installers via curl|bash etc. Use this file to install:
View build.sh
#!/bin/bash
set -euo pipefail
# This script is run in the VM each time you run `vagrant-spk dev`. This is
# the ideal place to invoke anything which is normally part of your app's build
# process - transforming the code in your repository into the collection of files
# which can actually run the service in production.
export SANDSTORM=1
View Keybase Proof
### Keybase proof
I hereby claim:
* I am azirbel on github.
* I am azirbel (https://keybase.io/azirbel) on keybase.
* I have a public key whose fingerprint is 7693 068F 7DDF A568 8200 B102 0A8A FA6D DD69 6073
To claim this, I am signing this object:
View typography.md

Opendoor Typography

(Market Side / Non-Bootstrap)

The problem

Headers and paragraphs have margins.

We use p for everything, to keep styles consistent, even if those things

@azirbel
azirbel / profile.log
Last active Feb 12, 2016
Slight vim slowness while scrolling a large file
View profile.log
FUNCTION AutoSave()
Called 6 times
Total time: 0.000601
Self time: 0.000601
count total (s) self (s)
6 0.000072 if g:auto_save >= 1
6 0.000109 let was_modified = &modified
6 0.000021 if g:auto_save_keep_marks >= 1
6 0.000113 let first_char_pos = getpos("'[")
You can’t perform that action at this time.