Skip to content

Instantly share code, notes, and snippets.

Salem Korayem Korayem

Block or report user

Report or block Korayem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Korayem
Korayem / searchGitBranchWithJiraIssue.sh
Last active Mar 27, 2019
search git commit message using jira issue key and return a list of branches that contain them, specifically: dev/staging/master branches to make sure they got merged properly
View searchGitBranchWithJiraIssue.sh
#!/bin/bash
# @korayem - 2019
# search git commit message using jira issue key and return a list of branches that contain them, specifically: dev/staging/master branches to make sure they got merged properly
# ./searchgit.sh PEG-1234 PEG-3214
# Returns something like this:
# PEG-1973 69df0fc238742acc099db85d799e05d7356b3f9b
# origin/HEAD -> origin/master
# origin/dev
# origin/master
@Korayem
Korayem / migrate_rubocop_style_to_layout.rb
Last active Jan 10, 2019 — forked from wojtha/migrate_rubocop_style_to_layout.rb
Ruby script to migrate Rubocop settings from Style to Layout
View migrate_rubocop_style_to_layout.rb
# source: https://gist.github.com/wojtha/f97f45a6a09f14a58e5721fb178f2d3f
# Fixes complains such as:
# .rubocop.yml: Style/IndentationConsistency has the wrong namespace - should be Layout
# .rubocop.yml: Style/IndentationWidth has the wrong namespace - should be Layout
# .rubocop.yml: Style/DotPosition has the wrong namespace - should be Layout
layouts = %w[
AccessModifierIndentation
AlignArray
AlignHash
View HorizontalScrollLayout_NotWorking.html
XAML
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MobileApp.MyPage" xmlns:hsl="clr-namespace:mcpNetwork.Components.Forms;assembly=mcpnetwork.horizontalScrollLayout">
<ContentPage.Content>
<StackLayout Padding="0" Spacing="0">
<hsl:HorizontalScrollLayout x:Name="hscroll" HeightRequest="80" MultiSelection="false" ItemSelected="OnItemSelected">
<hsl:HorizontalScrollLayout.ItemTemplate>
<DataTemplate>
<ViewCell>
@Korayem
Korayem / update.bat
Created Jun 4, 2012
Easily upgrade nuget.exe in ".nugets" folder
View update.bat
nuget update -self
@Korayem
Korayem / TrackEventsInGoogleAnalyticsAttribute.cs
Created Jun 4, 2012
A cool ActionFilter that when dropped over any controller or action, you got yourself google analytics event tracking! By default we assign controller name as category, and action name as the action. In the label we drop the user identity in case he/she i
View TrackEventsInGoogleAnalyticsAttribute.cs
using System.Configuration;
using System.Web.Mvc;
using GoogleAnalyticsTracker;
using SocialFruits.Domain;
using SocialFruits.Domain.Entities;
namespace SocialFruits.Extensions.Attributes
{
public class TrackEventsInGoogleAnalyticsAttribute : ActionFilterAttribute
{
You can’t perform that action at this time.