Usage and information: https://redd.it/mcjj4s
- [WinHttpRequest.ahk]
Usage and information: https://redd.it/mcjj4s
In this demonstration I will show you how to read data in Angular2 final release before application startup. You can use it to read configuration files like you do in other languages like Java, Python, Ruby, Php.
This is how the demonstration will load data:
a) It will read an env file named 'env.json'. This file indicates what is the current working environment. Options are: 'production' and 'development';
b) It will read a config JSON file based on what is found in env file. If env is "production", the file is 'config.production.json'. If env is "development", the file is 'config.development.json'.
| <?php | |
| class RetryTest extends TestCase | |
| { | |
| public function setUp() | |
| { | |
| parent::setUp(); | |
| // abuse superglobal to keep track of state | |
| $_GET['a'] = 0; | |
| } |
| <video controls="" width="400"> | |
| <source src="http://66.128.61.175/reel/1cc976948e74aa62f7a7fde16e64fb6b/360p" type="video/mp4"> | |
| Your browser does not support HTML5 video. | |
| </video> |
This is helpful when you don't want to disable SELinux but do want to allow apache to execute an external program. For example wkhtmltopdf. Run the following commands from the terminal. (This has been tested in CentOS 7.)
setsebool httpd_execmem on
Change a dirs security context if the program writes to a file
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |
| <CFSCRIPT> | |
| myQry = new Query(datasource="cfartgallery"); // new query object | |
| myQry.setSQL("select bookid, title, genre from app.books where bookid = :bookid"); //set query | |
| myQry.addParam(name="bookid",value="5",CFSQLTYPE="CF_SQL_INT"); // add query param | |
| qryRes = myQry.execute(); // execute query | |
| writedump(qryRes.getResult().recordcount, true); // get resultcount | |
| writedump(qryRes.getResult(), false); // dump result | |
| writeoutput('<BR>'); | |
| </CFSCRIPT> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.