This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A:CK2500:N3(4862) joined 0.0ps(0.0%) with 1 atoms bound | |
A:LYS33:NZ(530) joined 1940.058ps(96.9061876248%) with 0 atoms bound | |
A:CK2500:N7(4869) joined 0.0ps(0.0%) with 2 atoms bound | |
A:GLU81:O(1325) joined 1164.834ps(58.1836327345%) with 0 atoms bound | |
:SPC10068:O(35078) joined 1702.296ps(85.0299401198%) with 1 atoms bound | |
A:ASP145:OD1(2378) joined 1702.296ps(85.0299401198%) with 0 atoms bound | |
A:CK2500:N2A(4854) joined 0.0ps(0.0%) with 2 atoms bound | |
:SPC2463:O(12263) joined 275.724ps(13.7724550898%) with 2 atoms bound | |
A:ASP145:OD2(2379) joined 317.682ps(15.8682634731%) with 0 atoms bound | |
A:LYS33:NZ(530) joined 131.868ps(6.58682634731%) with 0 atoms bound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)greeting | |
{ | |
NSLog(@"hello world!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-06-04 13:54:03.026 MDM[34502:903] <MDMPackageCreator: 0x20003d8a0>:generatePackages => fileGroup={( | |
<MDMFile:deepika_padukone_2011-1280x720.jpg>, | |
<MDMFile:deepika_padukone_2011-1600x900.jpg>, | |
<MDMFile:deepika_padukone_2011-1024x768.jpg>, | |
<MDMFile:deepika_padukone_2011-1152x864.jpg>, | |
<MDMFile:deepika_padukone_2011-2000x1000.jpg> | |
)} | |
2011-06-04 13:54:03.027 MDM[34502:903] <MDMPackageCreator: 0x20003d8a0>:generatePackages => fileGroup={( | |
<MDMFile:2011_super_8_movie-2560x1600.jpg>, | |
<MDMFile:2011_super_8_movie-1680x1050.jpg>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Force to show a titlebar icon | |
[window setRepresentedURL:[NSURL URLWithString:@"WindowTitle"]]; | |
// Set our custom icon | |
[[window standardWindowButton:NSWindowDocumentIconButton] setImage:[NSImage imageNamed:@"imagename"]]; | |
... | |
// Implement window delegate method to prevent to popup document (which do not exist) path menu when cmd+clicked | |
- (BOOL)window:(NSWindow *)window shouldPopUpDocumentPathMenu:(NSMenu *)menu | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// delegate will be notified that sheet did end calling to didEndSheet:returnCode:contextInfo: | |
[NSApp beginSheet:customWindow | |
modalForWindow:mainwindow | |
modalDelegate:delegate | |
didEndSelector:@selector(didEndSheet:returnCode:contextInfo:) | |
contextInfo:nil]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSComparisonResult)compare:(id)object | |
{ | |
if ([[self identifier] isEqualToString:[object identifier]]) return NSOrderedSame; | |
NSComparisonResult result = [[self identifier] compare:[object identifier]]; | |
if (result != NSOrderedSame) return result; | |
return [[self fileName] compare:[object fileName]]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (![NSApp isActive]) | |
[NSApp requestUserAttention:NSCriticalRequest]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(textDidChange:) | |
name:NSControlTextDidChangeNotification | |
object:textField]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)controlTextDidChange:(NSNotification *)notification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generateMeasureAtomIdx(st, measures): | |
measuresIdxs = [] | |
if not measures: return measuresIdxs | |
for measure in measures.split(','): | |
atoms, importance = measure.split('@') | |
measureAttributes = { 'importance' : float(importance) } | |
for i, atomSelection in enumerate(atoms.split('-')): | |
atomAslExpr = shortAtomSelectionToAsl(atomSelection) | |
measureAttributes['atom%s' % i] = analyze.evaluate_asl(st, atomAslExpr)[0] |
OlderNewer