Skip to content

Instantly share code, notes, and snippets.


Mohamed Ziata WaKeMaTTa

View GitHub Profile
pat / thinking_sphinx.yml
Last active Sep 30, 2020
Thinking Sphinx Configuration
View thinking_sphinx.yml
# Extended configuration for Thinking Sphinx can be stored in the
# config/thinking_sphinx.yml file within your application (this file was
# previously known as config/sphinx.yml in TS v1/v2).
# Many settings from Sphinx itself can be set here, and they'll flow through to
# the appropriate section of the generated configuration. However, some are
# used for Thinking Sphinx behaviour, and so those are documented here first.
# Configuration is grouped by environment, just like config/database.yml in a
# standard Rails application.
WaKeMaTTa /
Last active Jul 29, 2019
Order of Rails Controller Callbacks

Order of Rails Controller Callbacks

Rails 4.x

Started GET "/" for at 2017-05-19 14:17:18 +0200
  Processing by WelcomeController#index as HTML

Templating engines and React.js

I want to make a shopify theme using react.

How shopify theming works

You have a bunch of template files that have access to global server-side variables with liquid e.g. {{ product.title }}. Think wordpress or any other theme-based system.

dteoh / arel_select_star_from_table.rb
Last active Dec 2, 2019
Select all columns of an Arel table
View arel_select_star_from_table.rb
users = User.arel_table
query = users.project(users[])
freshtonic / pre-commit
Last active Dec 2, 2020
Git commit hook to abort commits when I accidentally commit dumb shit.
View pre-commit
#!/usr/bin/env ruby
# Checks for things that I often commit accidentally and bails out of the
# commit. To skip this pre-commit hook use `git commit --no-verify`.
checks = [
jhjguxin /
Last active Nov 28, 2018 — forked from dhh/gist:1014971
how to concerns with rails 3
zenorocha /
Last active Jul 27, 2021
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description


TODO: Describe the installation process


leesmith /
Created May 16, 2012
Ruby on Rails development setup on Ubuntu 12.04 (vim, git, rbenv)

Ruby on Rails development setup on Ubuntu 12.04

System update

# change mirror to first
sudo apt-get update

Install common libraries

ziadoz /
Last active Aug 25, 2021
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')