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 urllib2 | |
| from bs4 import BeautifulSoup | |
| import json | |
| import re | |
| #fp = open('soup.txt') | |
| #doc = fp.read() | |
| response = urllib2.urlopen('https://www.bnpparibas.dz/trouver-une-agence/') | |
| doc = response.read() |
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 os | |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.support.select import Select | |
| code = input("What's the code?") | |
| fp = webdriver.FirefoxProfile() |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Subscriber Matching Service | |
| ~~~~~ | |
| Abstract interface for matching subscribers from arbitary payment | |
| information providers, payment institutions, billing systems. | |
| :copyright: © 2018 Karma Computing. | |
| :license: GPLv3, see LICENSE for more details. | |
| """ | |
| from __future__ import absolute_import |
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
| array = ['Tree','Log','Table','Chair'] | |
| myVar = 'Cat' | |
| if myVar not in array: | |
| print "It's not in the array!" | |
| myVar = '' |
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
| function openerp_pos_devices(instance,module){ //module is instance.point_of_sale | |
| var _t = instance.web._t; | |
| // the JobQueue schedules a sequence of 'jobs'. each job is | |
| // a function returning a deferred. the queue waits for each job to finish | |
| // before launching the next. Each job can also be scheduled with a delay. | |
| // the is used to prevent parallel requests to the proxy. | |
| module.JobQueue = function(){ |
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 | |
| /* Terminal sript for fast searching of the exploit-db.com/search page | |
| * | |
| * Requires: php5, curl, php-cli, w3m (use sudo apt-get install programName) | |
| * | |
| * For defaults just leave questions blank & press enter. | |
| * | |
| * Notes for improvement: | |
| * > No pagination support (only shows page one of results) | |
| * > Writes search result to a file- this is messy, must be better way |
NewerOlder