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> | |
<title>Upload your files</title> | |
</head> | |
<body> | |
<form enctype="multipart/form-data" action="index.php" method="POST"> | |
<p>Upload your file</p> | |
<input type="file" name="file"></input><br /> | |
<input type="submit" value="Upload"></input> |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors',1); | |
get_attachments(); | |
if(isset($_GET['id']) && !empty($_GET['id'])){ | |
$id = $_GET['id']; | |
$fileName = $_GET['file']; |
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 distutils.version import StrictVersion | |
#from operator import itemgetter | |
v1 = [{'ver': "1.1.12"},{'ver': "1.0.0"},{'ver': "1.3.3"},{'ver': "1.0.12"},{'ver': "1.0.2"}] | |
v1.sort(key=lambda x: StrictVersion(x['ver']),reverse=True) | |
print(v1) | |
versions = ["1.1.2", "1.0.0", "1.3.3", "1.0.12", "1.0.2"] | |
versions.sort(key=StrictVersion,reverse=True) | |
print(versions) |
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 | |
//https://github.com/googleads/googleads-php-lib/blob/8cd18b116b40127c91bb1d2679924c13d6b964f6/examples/AdWords/v201809/Remarketing/AddRuleBasedUserLists.php | |
//https://developers.google.com/adwords/api/docs/guides/remarketing#visitors_to_your_website | |
//https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService.BasicUserList | |
///https://groups.google.com/forum/#!msg/adwords-api/-_dA7ZYVNiI/ebA9BXjkCwAJ | |
//https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.common#google.ads.googleads.v2.common.UserListInfo | |
//https://developers.google.com/adwords/api/docs/samples/php/remarketing#add-crm-based-user-list | |
use Google\AdsApi\AdWords\AdWordsServices; | |
use Google\AdsApi\AdWords\AdWordsSession; | |
use Google\AdsApi\AdWords\AdWordsSessionBuilder; |
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
image: samueldebruyn/debian-git | |
pipelines: | |
default: | |
- step: | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp | |
- git ftp init --user $SITE_FTP_USER --passwd $SITE_FTP_PASS ftp://xyzsite.com/publichtml/repo/ |
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 main() { | |
// You can use this approach when you have only minimal processing to | |
// perform in each of your client accounts. | |
// Select the accounts to be processed. | |
var accountIterator = MccApp.accounts().get(); | |
var arrayList=[]; | |
// Save the MCC account, to switch back later. |
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> | |
<body> | |
<p><abbr title="-Line 1
-Line 2">Hover Me</abbr> My Name Is Vijaysinh.</p> | |
<p title="Bangalore">Bangalore</p> | |
</body> | |
</html> |
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 | |
public function fire() | |
{ | |
// See the Placeholder reference page for a list of all the placeholder types and fields. | |
// https://developers.google.com/adwords/api/docs/appendix/placeholders.html | |
define('PLACEHOLDER_SITELINKS', 1); | |
define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); | |
define('PLACEHOLDER_FIELD_SITELINK_URL', 2); |
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
""" | |
Copyright (C) Lyla Yang - All Rights Reserved | |
Unauthorized copying of this file, via any medium is strictly prohibited | |
Proprietary and confidential | |
Written by Lyla Yang <https://www.linkedin.com/in/lyla-yang-aa850080/>, May 2019 | |
""" | |
""" | |
Reference of field attributes | |
https://developers.google.com/adwords/api/docs/appendix/reports#field-attributes |
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 setTheme(themeName) { | |
localStorage.setItem('theme', themeName); | |
document.documentElement.className = themeName; | |
} | |
// function to toggle between light and dark theme | |
function toggleTheme() { | |
if (localStorage.getItem('theme') === 'theme-dark') { | |
setTheme('theme-light'); | |
} else { |