View capture.py
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
# coding: utf-8 | |
import cv2 | |
if __name__ == "__main__": | |
# 内蔵カメラを起動 | |
cap = cv2.VideoCapture(0) | |
# OpenCVに用意されている顔認識するためのxmlファイルのパス |
View index.twig
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
{% if app.request.get('type') == 'entry' or app.request.method == 'POST' %} | |
{{ include('@CustomerGroupEntry/default/Entry/hidden.twig', ignore_missing=true) }} | |
{% endif %} |
View ShoppingCompleteListener.php
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
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View ProductTrait.php
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
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View ProductTypeExtension.php
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
<?php | |
/** | |
* This file is part of CustomerGroupProduct | |
* | |
* Copyright(c) Akira Kurozumi <info@a-zumi.net> | |
* | |
* https://a-zumi.net | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
View multi_category_search_form_side.twig
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
{% if form.vars.value.category_ids|filter(c => c.id == 1)|length > 0 %} | |
{% set searchItem = repository("Plugin\\MultiCategorySearch4\\Entity\\SearchItem").find(1) %} | |
{% set value = 'search_item_' ~ searchItem.id %} | |
<dl> | |
<dd> | |
<div class="ec-blockCheckbox"> | |
<label class="ec-label">{{ searchItem.name }}</label> | |
{% for i, item in form[value] %} | |
{{ form_widget(item, {'id': value~'_'~i~'_side'}) }} | |
{% endfor %} |
View detail.twig
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
{% if not is_granted('ROLE_USER') %} | |
{% set Groups = repository('Plugin\\CustomerGroup\\Entity\\Group').findAll() %} | |
<div class="ec-productRole__groupPrice"> | |
{% for Group in Groups %} | |
<div class="ec-price"> | |
<span class="">{{ Group.name }}価格:</span> | |
{% set GroupPrices = [] %} | |
{% for ProductClass in Product.getProductClasses %} | |
{% set GroupPrice = repository('Plugin\\CustomerGroupPrice\\Entity\\GroupPrice').findBy({'group': Group, 'ProductClass': ProductClass}) %} | |
{% if GroupPrice and GroupPrice[0].getPriceIncTax %} |
View downloadImages.gs
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
// URLパーサーライブラリ | |
eval(UrlFetchApp.fetch('https://rawgit.com/medialize/URI.js/gh-pages/src/URI.js').getContentText()); | |
/** | |
* A列に入力された画像URLリストを元に画像をダウンロードしてGoogle Driveに保存する | |
*/ | |
function downloadImages() { | |
// 予め作っておいた画像フォルダの情報を取得 | |
var folders = DriveApp.getFoldersByName("画像フォルダ"); | |
if(false === folders.hasNext()) { |
View pip-install-r
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
$ pip install -r requirements.txt |
NewerOlder