Skip to content

Instantly share code, notes, and snippets.

View md-hamed's full-sized avatar

Mohamed Hamed md-hamed

  • Pipefy
  • Alexandria, Egypt
View GitHub Profile
@md-hamed
md-hamed / config.ts
Created December 13, 2018 16:45
Simple configurations to be used with Ionic
import * as deepExtend from 'deep-extend';
/**
* Add default configurations here
*/
const DEFAULT_CONFIG = {
config1: 'foo',
config2: {
nestedConfig1: 'dev'
class InterestsController < ApplicationController
load_and_authorize_resource
ENTITY_TYPES = {
questions: %i[interests creator votes],
startups: %i[interests business_stage],
educational_resources: %i[interests],
users: %i[interests country roles industries]
}.freeze
@md-hamed
md-hamed / index.html.erb
Created July 3, 2017 01:11
Simple Load-more pagination
<div id='educational-resources-container'>
<%= render @educational_resources %>
</div>
<%= link_to_next_page @educational_resources, 'Load more', remote: true, id: 'load-more-resources' %>