This file contains hidden or 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
Step process(Item item, LinkStep step, DataAccess access) { | |
boolean result = false; | |
if (step.getLink() == null) { | |
// item associated with any link being clicked | |
result = access.userClickedOnAnyLink(); | |
} else { | |
// item associated with a specific link being clicked |
This file contains hidden or 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
class WebhookRefreshController < ShopifyApp::AuthenticatedController | |
def index | |
webhooks = ShopifyApp.configuration.webhooks | |
ShopifyApp::WebhooksManager.new(webhooks).create_webhooks | |
end | |
end |
This file contains hidden or 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
# Ubuntu 16.04 has the GCC cilk compiler built in to version 5.4, we just need to install it | |
FROM ubuntu:16.04 | |
# install g++ and vim | |
RUN apt-get update && \ | |
apt-get install -y g++ vim |
This file contains hidden or 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
<changeSet> | |
<createTable> | |
... | |
</createTable> | |
<!-- Place this <modifySql> block at the bottom of each table definition. Search and replace works really well. --> | |
<modifySql dbms="mysql"> | |
<append value="ENGINE=INNODB DEFAULT CHARSET=UTF8"/> | |
</modifySql> | |
</changeSet> |
This file contains hidden or 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
<!-- Liquibase change log file. Note the "comment(255)" which allows the index to exist on a mediumtext --> | |
<createIndex indexName="idx_fulltext_comment" tableName="comment"> | |
<column name="comment(255)"/> | |
</createIndex> |
This file contains hidden or 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 | |
cd /to/corect/dir/ | |
docker-compose up -d |
This file contains hidden or 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
hubot: | |
image: registry:5000/zdirect/zbot | |
ports: | |
- "8081:8080" | |
links: | |
- redis | |
restart: always | |
environment: | |
REDIS_URL: tcp://redis:6379 |
This file contains hidden or 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
/** | |
* A fixed buffer that determines the median of its values. Very inefficient for | |
* high buffer lengths. | |
* | |
* Here you go Matt! | |
*/ | |
import java.util.ArrayList; | |
import java.util.Collections; |
NewerOlder