git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { |
| /* | |
| CSS animated loading dots | |
| */ | |
| body | |
| { | |
| background: #5A5C64; | |
| } | |
| .loading_dots |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
##Google Interview Questions: Product Marketing Manager
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
| - (UIImage *)compressImage:(UIImage *)image{ | |
| float actualHeight = image.size.height; | |
| float actualWidth = image.size.width; | |
| float maxHeight = 600.0; | |
| float maxWidth = 800.0; | |
| float imgRatio = actualWidth/actualHeight; | |
| float maxRatio = maxWidth/maxHeight; | |
| float compressionQuality = 0.5;//50 percent compression | |
| if (actualHeight > maxHeight || actualWidth > maxWidth) { |
| <?php | |
| /** | |
| * Verifies a PayPal Live/Sandbox IPN. | |
| * | |
| * It returns NULL if freak error occurs (no connection, bad reply, bad IPN). | |
| * It returns BOOL to signal verification success or failure. | |
| * | |
| * @author Claude "CodeAngry" Adrian | |
| * | |
| * @param array/null $IPN |
| package com.mpayme.znap.core.widget; | |
| import java.lang.reflect.Field; | |
| import android.content.Context; | |
| import android.text.SpannableStringBuilder; | |
| import android.text.TextUtils; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.widget.TextView; |