Skip to main content

Home/ Python Programming/ Group items tagged coding

Rss Feed Group items tagged

fanhaipeng

git 使用简易指南 - 0 views

  • 可以把 master 换成你想要推送的任何分支。
  • 如果你还没有克隆现有仓库,并欲将你的仓库连接到某个远程服务器
  • 以在你的工作目录中 获取(fetch) 并 合并(merge) 远端的改动。 要合并其他分支到你的当前分支(例如 master),执行:
    • fanhaipeng
       
      1.用远程的进度更新自己的项目 2.但是自己本地也更新了 3.如果双方改的地方不一样,自动合并 4,如果不幸,本地改的和远程改的地方一样 5.先git diff 看不同,vim手动打开文件,修改冲突,然后,git add
  • ...12 more annotations...
  • ,自动合并并非次次都能成功,并可能导致 冲突(conflicts)。 这时候就需要你修改这些文件来人肉合并这些 冲突(conflicts) 了。
  • 自动
  • 在合并改动之前,也可以使用如下命令查看:
  • 工作目录中的文件
  • 你也可以用该提交 ID 的少一些的前几位,只要它是唯一的。
  • git checkout -- <filename>
    • fanhaipeng
       
      和切换分支的命令,前段是一样的
  • HEAD 中的最新内容
  • 已添加到缓存区的改动,以及新文件,都不受影响。
  • 1.0.0 1b2e1d63ff
  • git fetch origin
    • fanhaipeng
       
      1.fetch:取。远程。
  • git reset --hard origin/master
    • fanhaipeng
       
      指向远程最新的?
  • gitk
reckoner reckoner

psychotic - accelerate python code - 0 views

  • sychotic is an innovative optimizing compiler for Python code. It has unique features, the most important of which is that it breaks through the ConstantTimeBarrier. It is very easy to use and has an interface similar to that of the popular Psyco project. Below, you can see a usage example. You can also learn about HowItWorks, the ProjectHistory and KnownIssues. You can also browse the easy-to-understand source especially the alysis.py analyzer module and the dingo.py runtime bootstrap. There is an introductory screencast available (less than 5 minutes long). Usage
reckoner reckoner

Introduction To New-Style Classes in Python - 0 views

  • Here's what new-style classes have to offer: Properties: Attributes that are defined by get/set methods Static methods and class methods The new __getattribute__ hook, which, unlike __getattr__, is called for every attribute access, not just when the attribute can't be found in the instance Descriptors: A protocol to define the behavior of attribute access through objects Overriding the constructor __new__ Metaclasses (not discussed)
reckoner reckoner

google-chartwrapper - Google Code - 0 views

  • Easily create Google charts using python syntax and datasets. Python wrapper for the Google Chart API. The wrapper can render the URL of the Google chart, based on your parameters, or it can render an HTML img tag to insert into webpages on the fly. Made for dynamic python websites (Django,Zope,CGI,etc.) that need on the fly chart generation without any extra modules. The wrapper SHOULD also work with Eastwood the Google Chart API workalike. G = GChart('p3', [5,10])
reckoner reckoner

How can I work on VIM for python code such as cscope for C code? - 0 views

  • Change to the top level directory that contains your python source files, and do find -name '*.py' > cscope.files cscope -b
  • How can I work on VIM for python code such as cscope for C code?
reckoner reckoner

Py++ introduction - 0 views

  • What is Py++? Definition: Py++ is an object-oriented framework for creating a code generator for Boost.Python library. Py++ uses few different programming paradigms to help you to expose C++ declarations to Python. This code generator will not stand on your way. It will guide you through the whole process. It will raise warnings in the case you are doing something wrong with a link to the explanation. And the most important it will save your time - you will not have to update code generator script every time source code is changed.
reckoner reckoner

taglist.vim - Source code browser (supports C/C++, java, perl, python, tcl, sql, php, e... - 0 views

  • The "Tag List" plugin is a source code browser plugin for Vim and provides an overview of the structure of source code files and allows you to efficiently browse through source code files for different programming languages.  You can visit the taglist plugin home page for more information
reckoner reckoner

A python refactoring library and IDE. - 0 views

  • A python refactoring library and IDE. The IDE uses the library for providing features like refactorings and coding assists.
  •  
    A python refactoring library and IDE. The IDE uses the library for providing features like refactorings and coding assists.
reckoner reckoner

mpmath - Google Code - 0 views

  • Mpmath is a pure-Python library for multiprecision floating-point arithmetic. It provides an extensive set of transcendental functions, unlimited exponent sizes, complex numbers, interval arithmetic, numerical integration and differentiation, root-finding, linear algebra, and much more. Almost any calculation can be performed just as well at 10-digit or 1000-digit precision, and in many cases mpmath implements asymptotically fast algorithms that scale well for extremely high precision work. If available, mpmath will (optionally) use gmpy to speed up high precision operations.
reckoner reckoner

Huffman coding in Python - Program - Python - Builder AU - 0 views

  • In our last article on compression we showed you how to demonstrate run time encoding in Python. In this article we'll show you how to implement another kind of compression, Huffman encoding, which is useful when dealing with small sets of items, such as character strings.
reckoner reckoner

vimpdb - Google Code - 0 views

  • Tired of debugging Python using print statements? Don't like the cumbersome PDB (Python debugger) console? Prefer using Vim for coding your Python programs? VimPdb is the solution - allows debugging Python in an IDE-fashion, right within the Vim editor.
reckoner reckoner

ulipad - Google Code - 0 views

  • UliPad uses Mixin and Plugin technique as its architecture. Most of its classes can be extended via mixin and plugin components, and finally become an integrity class when creating the instance. So UliPad is very dynamic. You can write the new features in new files, and hardly need to modify the existing code. And if you want to extend the existing classes, you could write mixins and plugins, and this will be bound to the target class that I call "Slot Class". This technique will make the changes centralized and easily managed.
reckoner reckoner

Human-Readable Encryption Keys - 0 views

  • in PyCrypto: >>> key = os.urandom(16) # Generate 16 random bytes (128 bits) >>> bin_to_hex(key) # Show the key in hex (32 characters) '61aa60e43a5e7fdb4b86a4897b52a0dc' >>> y = RFC1751.key_to_english(key) >>> y # Show the pass phrase version of the key 'BUSY BARN RUB DOLE TAUT TOOK ALTO PRY KIT WALL MUG CURT' >>> # The transformation is always reversible >>> bin_to_hex(RFC1751.english_to_key(y)) '61aa60e43a5e7fdb4b86a4897b52a0dc'
  • Human-Readable Encryption Keys
reckoner reckoner

Cross platform way of finding number of processors on a machine? - comp.lang.python | G... - 0 views

  • > Is there a way to find the number of processors on a machine (on linux/ > windows/macos/cygwin) using python code (using the same code/cross > platform code)? From processing <http://cheeseshop.python.org/pypi/processing/0.34> : def cpuCount():     '''     Returns the number of CPUs in the system     '''     if sys.platform == 'win32':         try:             num = int(os.environ['NUMBER_OF_PROCESSORS'])         except (ValueError, KeyError):             pass     elif sys.platform == 'darwin':         try:             num = int(os.popen('sysctl -n hw.ncpu').read())         except ValueError:             pass     else:         try:             num = os.sysconf('SC_NPROCESSORS_ONLN')         except (ValueError, OSError, AttributeError):             pass     if num >= 1:         return num     else:         raise NotImplementedError --
reckoner reckoner

sympy - Google Code - 0 views

  •  
    SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and d
Jac Londe

Using pngcanvas, a pure Python PNG library « Python recipes « ActiveState Code - 1 views

  • Using pngcanvas, a pure Python PNG library
  • This recipe shows a simple example of how to use pngcanvas, a pure Python library for PNG image creation.
utkarsh11111

What tasks do remote python developers execute as a freelancer? - 1 views

Python freelancers are the back-end development magicians. Businesses expect them to work not only on coding but also on multiple tasks. The tasks can differ and vary depending on the industry and ...

python programming developer

started by utkarsh11111 on 16 Dec 21 no follow-up yet
steveharry39

How can I integrate CodingViz into my Python development workflow? - 1 views

Integrating CodingViz into the Python development workflow involves incorporating visualization techniques at various stages of the software development lifecycle. Developers can start by visualizi...

started by steveharry39 on 30 Apr 24 no follow-up yet
liuyix

dottoxml - 0 views

  •  
    python code visualization
Michael Surran

Google Code University - Programming Languages - 0 views

  •  
    Various technology lectures about Python, C++, Java, etc. Note to my 8th grade students - these videos are most likely above your learning curve, but if you love programming and want to get into the "meat" of Python, feel free to check them out.
1 - 20 of 91 Next › Last »
Showing 20 items per page