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
class Solution(object): | |
def trap(self, height): | |
""" | |
:type height: List[int] | |
:rtype: int | |
""" | |
water = 0 | |
height_len = len(height) | |
if height_len < 3: | |
return water |
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
#define kSnapToDelta 8.0 | |
#define kMinSourceListWidth 150.0 | |
#define kSnapSourceListWidth 250.0 | |
#define kMinContentWidth 150.0 | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
#pragma mark - NSSplitView Delegate | |
- (void) splitView:(NSSplitView*) splitView resizeSubviewsWithOldSize:(NSSize) oldSize | |
{ | |
if (splitView == _splitView) |
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
// | |
// CustomView.m | |
// MaskTest | |
// | |
// Created by Sean Christmann on 12/22/08. | |
// Copyright 2008 EffectiveUI. All rights reserved. | |
// | |
#import "MagnifierView.h" |
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
from datetime import datetime | |
import pprint | |
import socket | |
import ssl | |
from suds.client import Client | |
from mtse.connectors.transport import HTTPSClientCertTransport |
NewerOlder