background preloader


Related:  PYTHON

24.6. IDLE — Python v2.7.4 documentation IDLE is the Python IDE built with the tkinter GUI toolkit. IDLE has the following features: coded in 100% pure Python, using the tkinter GUI toolkitcross-platform: works on Windows and Unixmulti-window text editor with multiple undo, Python colorizing and many other features, e.g. smart indent and call tipsPython shell window (a.k.a. interactive interpreter)debugger (not complete, but you can set breakpoints, view and step) 24.6.2. Basic editing and navigation Backspace deletes to the left; Del deletes to the rightArrow keys and Page Up/Page Down to move aroundHome/End go to begin/end of lineC-Home/C-End go to begin/end of fileSome Emacs bindings may also work, including C-B, C-P, C-A, C-E, C-D, C-L After a block-opening statement, the next line is indented by 4 spaces (in the Python Shell window by one tab). 24.6.3. The coloring is applied in a background “thread,” so you may occasionally see uncolorized text. Python syntax colors: Keywords orange Strings green Comments red

Pyjamas - Python Javascript Compiler, Desktop Widget Set and RIA Web Framework pystachio - Python-to-JavaScript translator in JavaScript Pystachio is an early-stage Python-to-JavaScript translator (written in JavaScript) aimed at providing Python scripting in any modern browser. Example page using Pystachio (Live demo): Benefits Let's you code in Python instead of (or along with) JavaScript in the Web browser Could potentially be used as an offline Python-to-JavaScript translator by running it from the command-line Notes! So far Pystachio only implements a tokenizer for Python. Pyjeon Software Ethiopian multiplication Ethiopian multiplication You are encouraged to solve this task according to the task description, using any language you may know. A method of multiplying integers using only addition, doubling, and halving. Method: Take two numbers to be multiplied and write them down at the top of two columns. In the left-hand column repeatedly halve the last number, discarding any remainders, and write the result below the last in the same column, until you write a value of 1. In the right-hand column repeatedly double the last number and write the result below. stop when you add a result in the same row as where the left hand column shows 1. For example: 17 × 34 Halving the first column: Doubling the second column: Strike-out rows whose first cell is even: Sum the remaining numbers in the right-hand column: So 17 multiplied by 34, by the Ethiopian method is 578. The task is to define three named functions/methods/procedures/subroutines: References [edit] ACL2 [edit] ActionScript Output: ex. [edit] Ada Output:

matplotlib: python plotting — Matplotlib 1.2.1 documentation Oni Labs: StratifiedJS StratifiedJS modernizes the JavaScript language for use in non-trivial web applications: No more asynchronous spaghetti. Underpinned by ideas from the Orc process calculus, SJS offers all the advantages of asynchronous programming with conventional sequential syntax. Perform asynchronous requests without callbacks. Pause program execution without setTimeout. Orchestrate complex asynchronous logic with intuitive high-level operators. Structure. Building blocks included. Fluent and functional in spirit. Advanced syntax features. blocklambdas: Ruby Blocks for JavaScript. Available today. Familiar and compatible. To use Oni StratifiedJS in the browser, load the stratified.js script in your app's HTML, and place your StratifiedJS code into <script type="text/sjs"> tags: <html><head><script src=" type="text/sjs"> // Your SJS code here! The stratified.js script is located in the stratifiedjs/ directory. This will automatically run .

A minimal Python WebSocket server « Popdevelop – A developer team from Malmö, Sweden The future of illusively responsive web apps is here. Actually since December 2009 when Google released their version of Chrome, WebSockets have been available to play around with. Connecting and communicating with a server from a regular web page is now as easy as: var ws = new WebSocket(" ws.onopen = function() { ws.send("Hello Mr. This opens a bi-directional connection to a server, allowing messages to be sent between a client (i.e. the web page) and a WebSocket server (this example) without the overhead introduced by opening a new connection for every single call. The result of this is blazingly fast communication between a server and one or many connected clients. There are already some projects out there that attempts to provide a server solution. To get this working we need some background details to get the implementation right. Our server shall then consume this text, validate it, and answer by sending the following back to the client:

Pyjamas 0.8.1 Pyjamas Widget API for Web applications, in Python Current Release: 0.8.1~+alpha1--------------- This is the 0.8.1~+alpha1 release of Pyjamas. Pyjamas comprises severalprojects, one of which is a stand-alone python-to-javascript compiler; otherprojects include a Graphical Widget Toolkit, such that pyjamas applicationscan run either in web browsers as pure javascript (with no plugins required)or stand-alone on the desktop (as a competitor to PyGTK2 and PyQT4). Features and enhancements of the stand-alone 0.8 series javascriptcompiler and associated modules include: * more behaviour closer to python, thanks to several contributions including from Daniel Kluev * improvements and additions to the standard modules, including renaming JSONParser to json and changing its interface to match standard python, and a new python-compliant logging module. In the User-Interface suite, which is separate from the Pyjamasstand-alone python-to-javascript compiler, the features andenhancements include:

World of Change: Global Temperatures : Feature Articles The world is getting warmer. Whether the cause is human activity or natural variability—and the preponderance of evidence says it’s humans—thermometer readings all around the world have risen steadily since the beginning of the Industrial Revolution. (Click on dates above to step through the decades.) According to an ongoing temperature analysis conducted by scientists at NASA’s Goddard Institute for Space Studies (GISS) and shown in this series of maps, the average global temperature on Earth has increased by about 0.8°Celsius (1.4°Fahrenheit) since 1880. Two-thirds of the warming has occurred since 1975, at a rate of roughly 0.15-0.20°C per decade. But why should we care about one degree of warming? The global temperature record represents an average over the entire surface of the planet. A one-degree global change is significant because it takes a vast amount of heat to warm all the oceans, atmosphere, and land by that much. References Hansen, J., R.

s Python Class - Educational Materials Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience. The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections. The class is geared for people who have a little bit of programming experience in some language, enough to know what a "variable" or "if statement" is. Beyond that, you do not need to be an expert programmer to use this material. This material was created by Nick Parlante working in the engEDU group at Google. Tip: Check out the Python Google Code University Forum to ask and answer questions.

Related:  Python