I hereby claim:
- I am liyanage on github.
- I am liyanage (https://keybase.io/liyanage) on keybase.
- I have a public key ASCNOzfp-gxK8wRWWMH40CjVTLzpxH_k2FMjehyCaXg46go
To claim this, I am signing this object:
#!/usr/bin/osascript | |
tell application "System Events" | |
set fusionProcesses to every application process whose bundle identifier is "com.autodesk.fusion360" | |
repeat with fusionProcess in fusionProcesses | |
set visible of fusionProcess to false | |
end repeat | |
end tell | |
#import <Foundation/Foundation.h> | |
typedef void(^LineEnumerator)(NSData *lineData, BOOL *stop); | |
void enumerateLinesInFileAtURL(NSURL *url, LineEnumerator lineEnumerator) { | |
NSError *error = nil; | |
NSData *data = [NSData dataWithContentsOfURL:url options:NSDataReadingMappedAlways error:&error]; | |
if (!data) { | |
NSLog(@"Unable to open: %@", error); | |
return; |
/* | |
sudo dtrace -q -p $(pgrep 'Autodesk Fusion 360') -s fusion-360-zoom-trackpad-delay.d | |
*/ | |
BEGIN | |
{ | |
eventcounter = 0; | |
rendercounter = 0; | |
eventtime = 0; | |
max_delay = 300; |
I hereby claim:
To claim this, I am signing this object:
brew install dfu-util
Download new firmware from http://micropython.org/download/
Connect pins DFU and 3.3v, press reset button
dfu-util -l should list entries with "Found DFU: "
dfu-util --alt 0 --device 0483:df11 -D ~/Desktop/pybv10-2014-10-17-v1.3.3-86-g37ada23.dfu
def merge(left, right): | |
nl = len(left) | |
nr = len(right) | |
merged = [] | |
il = 0 | |
ir = 0 | |
while il < nl and ir < nr: | |
l = left[il] | |
r = right[ir] |
javascript:$('#rightbar,%20.vendor-content-box,%20#relatedContent,%20#problemsVideo,%20#relatedResearchWidget,%20#header,%20#footer,%20#textlinks').remove() |
import shutil | |
import os | |
def copy_item(source_path, destination_parent): | |
if os.path.isdir(source_path): | |
destination_path = os.path.join(destination_parent, os.path.basename(source_path)) | |
shutil.copytree(source_path, destination_path, ignore=shutil.ignore_patterns('.DS_Store', '*.pyc')) | |
else: | |
shutil.copy(source_path, destination_parent) |
class Foo: | |
def __unicode__(self): | |
return u'xx \u2192 xx' | |
def __repr__(self): | |
return unicode(self).encode('ascii', 'backslashreplace') | |
foo = Foo() |