View amazon-reservation.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 | |
from selenium import webdriver | |
import re | |
asins=[] | |
driver = webdriver.PhantomJS() | |
for page in range(1,3): |
View jan2asin.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
from amazon.api import AmazonAPI | |
from amazon.api import LookupException, AsinNotFound | |
import sys | |
if __name__ == "__main__": | |
amazon = AmazonAPI( | |
"ACCESS_KEY", | |
"SECRET_KEY", | |
"ASSOC_TAG", | |
region="JP") |
View oembed-fc2-video.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 | |
/* | |
Plugin Name: oEmbed FC2 Video | |
Version: 0.1-alpha | |
Description: Embed source from fc2 video. | |
Author: kurozumi | |
Author URI: http://a-zumi.net | |
Plugin URI: http://a-zumi.net | |
Text Domain: oembed-fc2-video | |
Domain Path: /languages |
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 %} |
NewerOlder