---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
# Copyright 2014 Dan Krause | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
A very simple script to change a process' priority in native python 3.# | |
Works on Windows only (for now) | |
Todo: | |
Make it less hacky, more portable (should extract values from the api and use them instead of the hardcoded ones) | |
Add documentation |
---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
# Python 2.5 compatibility hack for property.setter, property.deleter | |
import __builtin__ | |
if not hasattr(__builtin__.property, "setter"): | |
class property(__builtin__.property): | |
__metaclass__ = type | |
def setter(self, method): | |
return property(self.fget, method, self.fdel) | |
def deleter(self, method): |
# Next time you need to install something with python setup.py -- which should be never but things happen. | |
python setup.py install --record files.txt | |
# This will cause all the installed files to be printed to that directory. | |
# Then when you want to uninstall it simply run; be careful with the 'sudo' | |
cat files.txt | xargs sudo rm -rf | |