This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
// CONFIGURATION ####################################################################################################### | |
var token = 'SLACK TOKEN'; | |
var channel = 'CHANNEL ID'; | |
var privateChannel = false; | |
var delay = 300; // delay between delete operations in millisecond | |
// GLOBALS ############################################################################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# Called by "git commit" with the | |
# name of the file that has the | |
# commit message, followed by | |
# the description of the commit | |
# message's source. The hook's | |
# purpose is to edit the commit | |
# message file. If the hook fails | |
# with a non-zero status, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" | |
BRANCH_EXCLUDED=$(printf "%s\n" "${BRANCHES_TO_SKIP[@]}" | grep -c "^$BRANCH_NAME$") | |
BRANCH_IN_COMMIT=$(grep -c "\[$BRANCH_NAME\]" $1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/app/services/conversation_service.rb b/app/services/conversation_service.rb | |
index f1dd0faa..f54d3a8d 100644 | |
--- a/app/services/conversation_service.rb | |
+++ b/app/services/conversation_service.rb | |
@@ -164,20 +164,19 @@ class ConversationService | |
send_push_notifications_to_users(recipient, user, conversation, :remove_user) | |
end | |
log_action(conversation, :update_out, removed_memberships.map(&:id)) if removed_memberships.any? | |
+ send_email_notifications(conversation, removed_memberships, :remove) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/app/services/conversation_service.rb b/app/services/conversation_service.rb | |
index f1dd0faa..f54d3a8d 100644 | |
--- a/app/services/conversation_service.rb | |
+++ b/app/services/conversation_service.rb | |
@@ -164,20 +164,19 @@ class ConversationService | |
send_push_notifications_to_users(recipient, user, conversation, :remove_user) | |
end | |
log_action(conversation, :update_out, removed_memberships.map(&:id)) if removed_memberships.any? | |
+ send_email_notifications(conversation, removed_memberships, :remove) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Reactive.swift | |
// RxSwift | |
// | |
// Created by Yury Korolev on 5/2/16. | |
// Copyright © 2016 Krunoslav Zaher. All rights reserved. | |
// | |
/** | |
Use `Reactive` proxy as customization point for constrained protocol extensions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rspec-match() { | |
# rspec-match blah | |
# will run all specs matching blah | |
echo "running specs matching $1" | |
find spec -wholename "*$1*"| grep -v "factories"| xargs bin/rspec | |
} | |
rspec-branch() { | |
# will run all touches specs edited/created in current branch | |
current_branch_name=`git branch | grep \* | cut -d ' ' -f2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSDataExtensions.swift | |
// MAPO | |
// | |
// Created by Hugues Bernet-Rollande on 21/3/16. | |
// Copyright © 2016 WB Technologies. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/update_order.json b/update_order2.json | |
index 7dc070a..c61893d 100755 | |
--- a/update_order.json | |
+++ b/update_order2.json | |
@@ -5,13 +5,13 @@ | |
"controller": "BLFulfillment::ShopifyWebhooksController", | |
"action": "update_order", | |
"status": 204, | |
- "duration": 17.72, | |
+ "duration": 16.7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension CBUUID { | |
var type: UUID { | |
return UUID(rawValue: uuidString)! | |
} | |
enum UUID: String { | |
case main = "xxx" | |