I hereby claim:
- I am treygriffith on github.
- I am tgriff3 (https://keybase.io/tgriff3) on keybase.
- I have a public key ASCPR31q17gz3kciMUmPWdACY4WRSmMXIw1w3LooYDurvwo
To claim this, I am signing this object:
| { | |
| "selectors": [ | |
| { | |
| "api_object_id": 5, | |
| "children": [ | |
| { | |
| "api_object_id": 5, | |
| "children": [ | |
| { | |
| "api_object_id": 5, |
| import * as React from 'react' | |
| import createXkit from '@xkit-co/xkit-catalog.js' | |
| const xkit = createXkit('viable.xkit.co') | |
| interface IntegrationsProps { | |
| path?: string | |
| } | |
| class Integrations extends React.Component<IntegrationsProps> { |
| import * as React from 'react' | |
| import * as ReactDOM from 'react-dom' | |
| interface IntegrationsProps { | |
| path?: string | |
| } | |
| class Integrations extends React.Component<IntegrationsProps> { | |
| private ref = React.createRef() |
| # Building an Phoenix (Elixir) Release targeting Amazon Linux for EC2 | |
| # By https://github.com/treygriffith | |
| # Original by the Phoenix team: https://hexdocs.pm/phoenix/releases.html#containers | |
| # | |
| # Note: Build context should be the application root | |
| # Build Args: | |
| # OTP_VERSION - the OTP version to target, like 23.0 | |
| # ELIXIR_VERSION - the Elixir version to target, like 1.10.4 | |
| # | |
| # If you have other environment variables in config/prod.secret.exs, add them as `ARG`s in this file |
I hereby claim:
To claim this, I am signing this object:
| comment = @store.createRecord('comment', { | |
| author: @get('currentUser') | |
| # snip | |
| }) | |
| comment.get('author').then -> | |
| # comment.author is now resolved, safe to save | |
| comment.save() |
| Teleborder.ApplicationSerializer = DS.ActiveModelSerializer.extend | |
| serializePolymorphicType: (record, json, relationship) -> | |
| key = relationship.key | |
| belongsTo = record.get(key) | |
| jsonKey = "#{key}_type".underscore() | |
| if relationship.options.async | |
| belongsTo = belongsTo.content | |
| if Ember.isNone(belongsTo) |
| class ImmutableDict: | |
| """A tuple with non-index keys""" | |
| def __init__(self, dict): | |
| self._keys = tuple(dict.keys()) | |
| self._values = tuple(dict.values()) | |
| def __len__(self): | |
| return len(self._keys) |
| toy1 = { | |
| color: ['red', 'purple'] | |
| }; | |
| toy2 = { | |
| color: ['pink', 'orange'] | |
| } | |
| Toys.find({color: { $in: ['red', 'green', 'blue'] }}, cb); | |
| // finds toy1, but not toy2 |
| toy1 = { | |
| color: 'red' | |
| }; | |
| toy2 = { | |
| color: 'pink' | |
| } | |
| Toys.find({color: { $in: ['red', 'green', 'blue'] }}, cb); | |
| // finds toy1, but not toy2 |