Skip to content

Instantly share code, notes, and snippets.

View namuit's full-sized avatar

Matteo Piotto namuit

View GitHub Profile
@namuit
namuit / config.yml
Created November 7, 2018 10:43 — forked from Hyperparticle/config.yml
CircleCI 2.0 Jekyll build and Firebase deploy
### Taken from https://github.com/Hyperparticle/hyperparticle.github.io/blob/2365749469b1eea3e8c4b18af24a4865fc426fd3/.circleci/config.yml
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
@namuit
namuit / contact.rb
Created June 11, 2017 11:21 — forked from endymion/contact.rb
Example of integrating a Ruby on Rails app with Zapier using the REST hooks pattern. With support for triggering the REST hooks from Resque background jobs.
class Contact < ActiveRecord::Base
...
def after_create
if Hook.hooks_exist?('new_contact', self)
Resque.enqueue(Hook, self.class.name, self.id)
# To trigger directly without Resque: Hook.trigger('new_contact', self)
end
end
@namuit
namuit / css-units-best-practices.md
Created December 15, 2016 00:28 — forked from basham/css-units-best-practices.md
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

@namuit
namuit / BuildingPhoenixAPI.md
Created November 30, 2016 14:06 — forked from holtbp/BuildingPhoenixAPI.md
Build and test Phoenix JSON API

Build and test a blazing fast JSON API with Phoenix, an Elixir framework

Original Post

Note: This guide was written for Phoenix 1.1.4. Parts of it may no longer work if you are using a newer version.

Let’s build a JSON API that serves a list of contacts. We’ll be writing it using Elixir (version 1.2.5) and Phoenix (version 1.1.4). Phoenix is a framework written in Elixir that aims to make writing fast, low latency web applications as enjoyable as possible.

Source Code: The source code after finishing this guide can be found here.

@namuit
namuit / fastlane-actions-appium.rb
Created April 6, 2016 20:30 — forked from yonekawa/fastlane-actions-appium.rb
Appium support action for fastlane
module Fastlane
module Actions
class AppiumAction < Action
INVOKE_TIMEOUT = 30
APPIUM_PATH_HOMEBREW = '/usr/local/bin/appium'
APPIUM_APP_PATH = '/Applications/Appium.app'
APPIUM_APP_BUNDLE_PATH = 'Contents/Resources/node_modules/.bin/appium'
def self.run(params)
Actions.verify_gem!('rspec')
@namuit
namuit / osx-setup.md
Last active August 29, 2015 14:19 — forked from zenorocha/.hyper.js

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related