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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| Request Library | |
| The Requests python library is simple and straight forward library for developing RESTful Clients. | |
| Python has a built in library called urllib2, it is bit complex and old style when compared to Requests. | |
| After writing couple of programs using the urllib2, I am completely convinced by the below statement issued by the | |
| developers of Requests. Also refer the Reference[4] for comparing the code segments written using | |
| urllib2 and requests library. | |
| Python’s standard urllib2 module provides most of the HTTP capabilities you need, but the API is thoroughly | |
| broken. It was built for a different time — and a different web. It requires an enormous amount of work | |
| (even method overrides) to perform the simplest of tasks. |
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
| sed 's/{/\n{\n/g' | sed s'/}/\n}/ file_in > file_ot |
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 requests, base64 | |
| usrPass = "userid:password" | |
| b64Val = base64.b64encode(usrPass) | |
| r=requests.post(api_URL, | |
| headers={"Authorization": "Basic %s" % b64Val}, | |
| data=payload) | |
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
| **************************************************************** | |
| * COMPARE TWO TABLES | |
| * TWO TABLE COMPARISON | |
| * LOGIC: 1 - Loop over itab gt_ebill_ca | |
| * 2 - Read itab gt_fkkvkp with key vkont = gt_ebill-vkont | |
| * 3 - At this point we have read one line from each table, for the same vkont | |
| * 4 - Control block | |
| * 5 - MOVE-CORRESPONDING FROM TABLE A TO OUTPUT WORK AREA (IT HAS SAME NAME AS TABLE) | |
| * 6 - MOVE-CORRESPONDING FROM TABLE B TO OUTPUT WORK AREA |
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
| se38 - Input program name | |
| "Βοηθητικα Προγραμματα" -> "Διαχειριση εκδοσεων" | |
| Θα εμφανιστει σελιδα με δυο πλαισια: | |
| 1. Versions in dev db | |
| 2. Versions in version db | |
| We can select one from each side, and use the "Compare" button to see changes in code. |
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
| ######################### | |
| # How to set styles in <head> | |
| #aaa { | |
| font-weight="bold" | |
| .... | |
| } | |
| * This style will apply only to div that contain div aaa | |
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
| <!-- Simple table template --> | |
| <table> | |
| <tr> | |
| <th>Name</th> | |
| <th>Favorite Color</th> | |
| </tr> | |
| <tr> |
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
| <!--- | |
| Example : | |
| <p><a href="/html/tutorial/html_links.cfm">Basic Link</a></p> | |
| ---> | |
| <!DOCTYPE html> |
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
| # doc3333 | |
| import os | |
| import sys | |
| import PyPDF2 | |
| file_in = sys.argv[1] | |
| file_ot = sys.argv[2] |
OlderNewer