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/sh | |
chromium-browser "$@" & | |
pid=$! | |
wid=$(wmctrl -lp | grep $pid | cut -c 1-10) | |
WINREP="" | |
while [ ! "`echo $WINREP | grep -l 'Chromium'`" ] | |
do |
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
(function($) { | |
$.extend({ | |
loadDeliveries: function(path) { | |
var shop_country_id = $('#shop_country_id').val(); | |
var shop_country_location_id = $('#shop_country_location_id').val(); | |
var shop_country_location_city_id = $('#shop_country_location_city_id').val(); | |
$.clientRequest({ | |
path: path + '?ajaxLoad&getDeliveries&shop_country_id=' + shop_country_id | |
+ '&shop_country_location_id=' + shop_country_location_id |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Task 3</title> | |
<style> | |
textarea { width: 400px; height: 200px; } | |
</style> | |
</head> |
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 | |
ip route del default | |
trap ctrl_c INT | |
function ctrl_c() { | |
ip route add default via 192.168.1.1 | |
exit | |
} |
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: Simple shipping method | |
Description: Simple shipping method plugin | |
Version: 1.0.0 | |
*/ | |
/** | |
* Check if WooCommerce is active | |
*/ |
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 | |
class SomeTransferClass { | |
// ... | |
private function _transferImages($sourceObject, $destObject) | |
{ | |
if (is_file($sourceObject->getLargeFilePath())) | |
{ |
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 | |
class TransferItems { | |
// private $_propertyDir = 5; | |
private $_propertyDir = 0; | |
private $_informationsystem = 57; | |
private $_shopGroupId = 12012; | |
private $_transferedItems = 0; |
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 | |
class TransferShopItems | |
{ | |
private $_propertyDir = 0; | |
private $_sourceShop = 5; | |
private $_destShopGroup = 12591; | |
private $_transferedItems = 0; | |
public function makeTransfer() |
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
wget -q -r -l 5 -O - $1 | grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" |
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 | |
$oShopCountry = Core_Entity::factory('shop_country', $oShop->shop_country_id); | |
if ($oShopCountry) | |
{ | |
$aoShopCountryLocations = $oShopCountry | |
->Shop_Country_Locations | |
->findAll(); |
OlderNewer