This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'lodash'; | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import Relay from 'react-relay'; | |
| const nullNode = document.createElement('div'); | |
| class Infinity extends React.Component { | |
| static propTypes = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module JSONAPIonify | |
| module DeepSortCollection | |
| refine Array do | |
| def deep_sort(hash) | |
| keys = hash.to_a | |
| sorter = lambda do |iterator, depth = 0| | |
| key_name, order = keys[depth] | |
| if key_name | |
| sorted = iterator.sort_by(&key_name) | |
| sorted.reverse! if order == :desc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meta": { | |
| "allow": "GET, PATCH, DELETE, OPTIONS", | |
| "resource": "users", | |
| "attributes": [ | |
| { | |
| "name": "first_name", | |
| "read": true, | |
| "write": true, | |
| "required": false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { "click": "http://bit.ly/1S0a8pK" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Warning: writeRelayUpdatePayload(): Expected response payload to include the newly created edge `listEdge` and its `node` field. Did you forget to update the `RANGE_ADD` mutation config? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ChronicalTime | |
| extend ActiveSupport::Concern | |
| included do | |
| timestamp_column_names = | |
| self.columns | |
| .reject { |col| col.name.in? %w{updated_at created_at} } | |
| .select { |col| col.sql_type.starts_with? 'timestamp' } | |
| .map(&:name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| t = Time.now | |
| [t.to_i, t.nsec, rand(1_000_000_000)].map { |n| n.to_s(36) }.join('-') | |
| # Example Output: "nvwzp5-xwno8-17cgms" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def something | |
| end | |
| 'a' | |
| "a" | |
| 1 + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 150ml.com | |
| 15meg4free.com | |
| 163.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a test app | |
| flynn create --remote="" test-app | |
| # create a release using the latest app image | |
| flynn -a test-app release add -f config.json "https://registry.hub.docker.com?name=brandfolder/flynn-test-app&id=d0f2136468110ad368684c7ccb04e0a756830c18926e50a4ef0e87a8b46022a5" | |
| # scale the server to one process, it should come up. | |
| flynn -a test-app scale web=1 | |
| # curl the app, should get 'hello earth' |