Execute a Python File in Notepad ++
To set up Notepad++ for Python developing
1. Install http://tutorial101.blogspot.com/2015/09/notepad-python-script.html
2. Create a batch script that would run a python script
Path
C:\Python27\pt.bat
Code pt.bat
@ECHO OFF
C:\Python27\python.exe "%1"
echo.
PAUSE
@ECHO ON
3. Run notepadd++ ex. helloword.py
paste url C:\Python27\pt.bat "$(FULL_CURRENT_PATH)"
and assign a shortcut. Press that shortcut now with a python file opened
article
Saturday, September 5, 2015
Notepad++ Python Script
Notepad++ Python Script
A Python Scripting plugin for Notepad++.
Complete easy script access to all of the editor's features (including absolutely everything in Scintilla). Configurable menus and toolbar options, assign shortcuts to scripts.
Features
Full scripting access to all Notepad++ features with normal Python function calls (e.g. notepad.new(), notepad.open('filename.txt') )
Full scripting access to all Scintilla features (the edit component in N++)
Configurable menus and toolbars - assign shortcuts to scripts
Respond to Notepad++ and Scintilla events with script functions
Call other plugin menu commands programmatically
Scriptable regular expression search and replace
Notepad++ Python Script Web Site>
A Python Scripting plugin for Notepad++.
Complete easy script access to all of the editor's features (including absolutely everything in Scintilla). Configurable menus and toolbar options, assign shortcuts to scripts.
Features
Full scripting access to all Notepad++ features with normal Python function calls (e.g. notepad.new(), notepad.open('filename.txt') )
Full scripting access to all Scintilla features (the edit component in N++)
Configurable menus and toolbars - assign shortcuts to scripts
Respond to Notepad++ and Scintilla events with script functions
Call other plugin menu commands programmatically
Scriptable regular expression search and replace
Notepad++ Python Script Web Site>
Friday, September 4, 2015
AngularJS Forms Custom Model Update Triggers
AngularJS Forms Custom Model Update Triggers
The novalidate attribute
1. updateOn option of the ng-model-options directive. The model value updates when the focus is lost.
2. debounce option delays the model update. update the model after 250 milliseconds
3. updateOn and debounce option. Setting the debounce value of blur event to ‘0’ indicates that the model trigger immediate update when it is out of focus.
The novalidate attribute
1. updateOn option of the ng-model-options directive. The model value updates when the focus is lost.
2. debounce option delays the model update. update the model after 250 milliseconds
3. updateOn and debounce option. Setting the debounce value of blur event to ‘0’ indicates that the model trigger immediate update when it is out of focus.
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>AngularJS Custom Model Update</title> </head> <body ng-app="formApp"> <div ng-controller="FormController"> <form novalidate> Name : <input type="text" ng-model="employee.name" ng-model-options="{updateOn:'blur'}"/></br> Gender : <input type="text" ng-model="employee.gender" ng-model-options="{debounce:250}"/></br> E-mail : <input type="email" ng-model="employee.email" ng-model-options="{updateOn:'blur',debounce:{blur:0} }"/></br> </form> <p>Name : {{employee.name}}</p> <p>Gender : {{employee.gender}}</p> <p>Email : {{employee.email}}</p> </div> </div> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('formApp', []); app.controller('FormController', function($scope) { $scope.employee = {}; }); </script> </body> </html>
AngularJS
AngularJS
AngularJS is a JavaScript framework. It can be added to an HTML page.
AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions.
AngularJS is perfect for Single Page Applications (SPAs).
AngularJS is easy to learn.
https://angularjs.org/
AngularJS is a JavaScript framework. It can be added to an HTML page.
AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions.
AngularJS is perfect for Single Page Applications (SPAs).
AngularJS is easy to learn.
https://angularjs.org/
Subscribe to:
Posts (Atom)