Skip to content

Instantly share code, notes, and snippets.

View iamajvillalobos's full-sized avatar

AJ Villalobos iamajvillalobos

View GitHub Profile
{
"data": [
{
"id": "2",
"type": "group-events",
"links": {
"self": "http://localhost:3000/api/group-events/2"
},
"attributes": {
"name": "Summer event",
class Robot
NAME_LETTERS = ("A".."Z").to_a
NAME_NUMBERS = (100..999).to_a
attr_accessor :name
def initialize
reset
end
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)
@iamajvillalobos
iamajvillalobos / Sublime Text 3 Build 3103 License Key - CRACK
Created September 20, 2016 02:06
Sublime Text 3 Build 3103 License Key - CRACK
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
@iamajvillalobos
iamajvillalobos / PC Build 2017
Last active May 18, 2017 06:07
PC Build 2017
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:
@iamajvillalobos
iamajvillalobos / sublime_scopes.list
Created May 29, 2017 04:09 — forked from tjwudi/sublime_scopes.list
Sublime Text snippet scope list
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
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
# 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
@iamajvillalobos
iamajvillalobos / response_no_person_id.json
Last active August 18, 2017 01:19
webhook response without person id
{
"v" => 1, "matches_filters" => {
"current" => []
}, "meta" => {
"v" => 1,
"action" => "added",
"object" => "deal",
"id" => 25933,
"company_id" => 1385452,
"user_id" => 2183736,
{
"meta": {
"limit": 20,
"next": null,
"offset": 0,
"previous": null,
"time_zone": "US/Pacific",
"total_count": 3
},
"objects": [