Skip to content

Instantly share code, notes, and snippets.

View wazery's full-sized avatar
😎

Wazery wazery

😎
View GitHub Profile
class Icu4c < Formula
desc "C/C++ and Java libraries for Unicode and globalization"
homepage "http://site.icu-project.org/"
url "https://ssl.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz"
mirror "https://fossies.org/linux/misc/icu4c-57_1-src.tgz"
version "57.1"
sha256 "ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581"
head "https://ssl.icu-project.org/repos/icu/icu/trunk/", :using => :svn
@wazery
wazery / miq_t1
Created September 28, 2017 10:06
task1_steps
# Task 1
The first thing every Rails developer tries when working on this task; is to find the `app/views`
directory, but the ManageIQ team decided to split out the code base into smaller gems and components.
They created a new gem (Rails Engine) called 'manageiq-ui-classic', in which it contains everything related to the UI.
If you open the `Gemfile`, you will find [line #172](https://github.com/ManageIQ/manageiq/blob/master/Gemfile#L172) :
```ruby
@wazery
wazery / task1.md
Created September 19, 2017 12:19
task1_steps

Task 1

The first thing every Rails developer tries when working on this task; is to find the app/views directory, but the ManageIQ team decided to split out the code base into smaller gems and components.

They created a new gem (Rails Engine) called 'manageiq-ui-classic', in which it contains everything related to the UI.

If you open the Gemfile, you will find line #172 :

{"success":false,"errors":["A confirmation email was sent to your account at 'wazery@ubuntu.com'. You must follow the instructions in the email before your account can be activated"]}
AllCops:
Include:
- 'Gemfile'
- 'app/**/*.rb'
- 'lib/**/*.rb'
- 'lib/**/*.rake'
- 'config/**/*.rb'
Exclude:
- 'db/**/*.rb'
- 'bin/**/*'

YARD CHEATSHEET http://yardoc.org

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

# Namespace for classes and modules that handle serving documentation over HTTP
# @since 0.6.0
@wazery
wazery / PoC on Kwargs
Created July 2, 2015 07:47
Select Helper New Kwargs API
From 506831e934f500aa2c940b46bd5a992a10b4980d Mon Sep 17 00:00:00 2001
From: Islam Wazery <wazery@ubuntu.com>
Date: Thu, 2 Jul 2015 09:45:11 +0200
Subject: [PATCH] PoC on Kwargs task
---
.../lib/action_view/helpers/form_options_helper.rb | 39 ++++-
actionview/lib/action_view/helpers/tags/select.rb | 1 +
.../test/template/form_options_helper_test.rb | 184 +++++++++++++++++++--
3 files changed, 207 insertions(+), 17 deletions(-)
@wazery
wazery / upload_assets.rake
Last active August 29, 2015 14:11
Upload public images to Amazon S3
require 's3'
require 'digest/md5'
require 'mime/types'
## These are some constants to keep track of my S3 credentials and
## bucket name. Nothing fancy here.
AWS_ACCESS_KEY_ID = ENV["AWS_ACCESS_KEY_ID"]
AWS_SECRET_ACCESS_KEY = ENV["AWS_SECRET_ACCESS_KEY"]
AWS_BUCKET = ENV["AWS_S3_BUCKET"]
@wazery
wazery / complexsearchforms
Created November 16, 2014 01:42
ComplexSearchForms
###**Introduction**
In this tutorial we will explore how to add complex searching functionalities into your Rails application. We will explore how to use the awesome Ransack Ruby gem and the view helpers and builders it provides for handling advanced searching on your models. You will find some really powerful features that is available out of the box without writing a lot of code like sorting, or conditional search. We will use the same application used in the **"Braintree series By Karim El Husseiny"**, in which the basic application creation process is explained in detail, you can refer to it to learn how Karim scaffolded and styled the basic application. Here is the fork repository that we will build on our application [Ransack - MovieStore](https://github.com/wazery/moviestore-ransack).
###**What we're going to achieve**
As mentioned in the previous section we will add complex searching capabilities to the movie store application. Here is a list of features we are going to implement:
- Searching mov
@wazery
wazery / gist:e0f86afbf563705a9bd9
Created August 18, 2014 12:59
Sublime configuration
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/brogrammer-theme-master/brogrammer.tmTheme",
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": false,
"fade_fold_buttons": false,
"font_size": 17,
"highlight_line": true,