Skip to content

Instantly share code, notes, and snippets.

{
"data": [
{
"id": "1",
"type": "addresses",
"attributes": {
"agent-id": 3,
"company": "PostCafe PostCo3",
"company-short": "PostCafe PostCo3",
"full-address": "PostCafe PostCo3, The Hideout, 1 Tech Park, 47800, Petaling Jaya, Selangor, Malaysia",
@hafizio
hafizio / up-and-running-with-edeliver-on-do.md
Created October 11, 2016 08:45 — forked from davoclavo/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver

Build Server

  • Go to Digital Ocean
  • Create new ubuntu droplet

Setup Server

@hafizio
hafizio / Capybara.md
Created June 29, 2016 09:00 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@hafizio
hafizio / Gemfile
Created October 29, 2015 10:22 — forked from kavu/Gemfile
How to make Rails + Backup + Whenever + Capistrano (and rbenv) work.
#...
gem 'backup', require: false,
github: 'kavu/backup',
branch: 'bump_fog_version',
ref: 'c3fd8e6eb4f464de1c8'
gem 'whenever', require: false
#...
@hafizio
hafizio / LICENSE
Created September 26, 2015 05:31 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
context "GET index" do
#context "POST create" do
#context "GET show" do
#context "PATCH update" do (or PUT update)
#context "DELETE destroy" do
#context "GET new" do
@hafizio
hafizio / SassMeister-input.scss
Created June 17, 2015 04:43
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// Bootstrap Sass (v3.3.4.1)
// ----
@import "bootstrap";
.header {
text-align: center;
@hafizio
hafizio / SassMeister-input.scss
Created June 10, 2015 11:37
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
.footer {
background: #2f3536;
width: 100%;
border: 1px solid black;
@hafizio
hafizio / SassMeister-input-HTML.html
Created June 10, 2015 11:18
Generated by SassMeister.com.
<button class="btn btn--large">
<a class="btn__title">Hello</a>
<p class="btn__content">Hi there</p>
</button>