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
| for($col = 'A'; $col !== 'G'; $col++) { | |
| $objPHPExcel->getActiveSheet() | |
| ->getColumnDimension($col) | |
| ->setAutoSize(true); | |
| } |
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
| alphabeticals = [ | |
| ['A', 13], ['B', 9], ['C', 20], ['D', 13], ['E', 10], ['F', 8], ['G', 6], ['H', 7], ['I', 11], ['J', 3], | |
| ['K', 2], ['L', 6], ['M', 13], ['N', 7], ['O', 6], ['P', 13], ['Q', 3], ['R', 9], ['S', 20], ['T', 8], | |
| ['U', 4], ['V', 8], ['W', 8], ['X', 2], ['Y', 1], ['Z', 1], ['0', 3] | |
| ] | |
| start_urls = [] | |
| for alphabetical in alphabeticals: | |
| i = 1 | |
| while i <= alphabetical[1]: |
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
| #double dict cycle for key => value (value have random elements) | |
| with open('items.json') as data_file: | |
| links = json.load(data_file) | |
| start_urls = [] | |
| start_urls1 = [] | |
| for link in links: | |
| start_urls.append(link) | |
| for urls in start_urls: | |
| for url in urls['link']: | |
| start_urls1.append("http://www.investopedia.com" + url) |
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
| import json | |
| from pprint import pprint | |
| from inspect import getmembers | |
| with open('items.json') as data_file: | |
| links = json.load(data_file) | |
| separate_links = [] | |
| for link in links: | |
| separate_links.append(link) |
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
| sudo nano /etc/crontab |
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
| <?php | |
| // creating associate array with all parameters | |
| $config = [ | |
| 'param_1' => 'value_1' | |
| 'param_2' => 'value_2' | |
| 'param_3' => 'value_3' | |
| ]; | |
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
| //stop all vimeo videos when close | |
| //jquery require | |
| $(function(){ | |
| $('.modal, .close').click(function(){ | |
| $("iframe").each(function() { | |
| var src= $(this).attr('src'); | |
| $(this).attr('src',src); | |
| }); | |
| }); | |
| }); |
OlderNewer