This file contains 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
{ | |
"data": [ | |
{ | |
"id": "2", | |
"type": "group-events", | |
"links": { | |
"self": "http://localhost:3000/api/group-events/2" | |
}, | |
"attributes": { | |
"name": "Summer event", |
This file contains 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
class Robot | |
NAME_LETTERS = ("A".."Z").to_a | |
NAME_NUMBERS = (100..999).to_a | |
attr_accessor :name | |
def initialize | |
reset | |
end |
This file contains 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
require 'rails_helper' | |
module Transformation::MultiFamily | |
describe TransformApartmentComplex, '.execute' do | |
it "puts an apartment_complex_transformer in the context" do | |
location_urn = { 'my-location-urn' } | |
etl_config = create_multi_family_etl_config | |
apartment_complex_transformer = double(ApartmentComplexTransformer) | |
ctx = create_default_ctx_hash(etl_config) |
This file contains 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
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
This file contains 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
Case: Fractal Design Node 202 + 450w integra psu = 7,720 | |
GPU: Zotac GTX 1060 Mini 6gb = 12,300 (9,000 2nd hand) | |
CPU: Intel Core i5 7500 = 10,000 | |
Motherboard: Gigabyte H270N = 7,340 | |
RAM: HyperX Fury 2133mhz 2x8gb = 6,740 | |
SSD: Samsung 850 Evo 512gb = 8,370 | |
Fan: Cryorig C7 = 1,570 | |
Total: 54,040 | |
Usage: |
This file contains 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
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CSS: source.css | |
D: source.d | |
Diff: source.diff |
This file contains 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
url = "/merchants/#{merchant_id}/orders" | |
if state && start_datetime && end_datetime | |
url += "?filter=createdTime>=#{start_datetime}" | |
url += "&filter=createdTime<=#{end_datetime}" | |
url += "&filter=state=#{state}" | |
elsif start_datetime && end_datetime | |
url += "?filter=createdTime>=#{start_datetime}" | |
url += "&filter=createdTime<=#{end_datetime}" | |
elsif state |
This file contains 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
# How to group this collection so that Clover::Order will be grouped by every 15 mins | |
{ | |
Sun, 09 Jul 2017 => [ | |
#<Clover::Order:0x007f82efc7a758 | |
@created_time=2017-07-10 00:15:00 +0800, | |
@id="5CY4WQG1XWJK1", | |
@state="paid", | |
@total=1234>, | |
#<Clover::Order:0x007f82efc6b550 |
This file contains 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
{ | |
"v" => 1, "matches_filters" => { | |
"current" => [] | |
}, "meta" => { | |
"v" => 1, | |
"action" => "added", | |
"object" => "deal", | |
"id" => 25933, | |
"company_id" => 1385452, | |
"user_id" => 2183736, |
This file contains 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": { | |
"limit": 20, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"time_zone": "US/Pacific", | |
"total_count": 3 | |
}, | |
"objects": [ |