- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
This file contains hidden or 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 UIAlertView that owns its delegate so that the client that displays the UIAlertView | |
does not need to own it. | |
This is useful when the client that displays the UIAlertView is not the UIAlertDelegate | |
implementation. It is free to initialize an object to serve as the delegate that exists | |
only for the lifetime of the UIAlertView, thereby fostering decomposition. | |
*/ | |
class OwnedDelegateAlertView: UIAlertView { | |
private let ownedDelegate: AnyObject? |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body > div { | |
border: 2px solid green; | |
padding: 50px; | |
margin: 10px | |
} |
This file contains hidden or 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
package com.example; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import android.app.Activity; | |
import android.content.ContentUris; | |
import android.content.Intent; | |
import android.database.Cursor; | |
import android.graphics.Bitmap; |
Hi all,
I'm having trouble creating a test suite in Django 1.3.
Say I have an installed app in a directory called app_name. One of the files in that directory is foo.py which defines a class named Foo. I want to test that, so I also have a file that directory called foo_test.py which defines a class named FooTest. That file looks like:
import unittest
import foo
class FooTest(unittest.TestCase):
This file contains hidden or 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
""" | |
Copyright Michael Parker 2011. | |
Program to quantify the memory usage of: | |
a. The compact hash and set implementations in Redis 2.2 described at | |
http://redis.io/topics/memory-optimization and | |
http://redis.io/presentation/Pnoordhuis_whats_new_in_2_2.pdf versus their | |
counterparts that do not contain integers. For the comparisons to be | |
meaningful, be sure to have hash-max-zipmap-entries and | |
set-max-intset-entries present in your redis.conf file. |
NewerOlder