<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.view.View; | |
import android.view.inputmethod.InputMethodManager; | |
public class KeyboardUtils { | |
public static void hideKeyboard(Activity activity) { | |
View view = activity.findViewById(android.R.id.content); |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.View; |
/* | |
* Flatten Object @gdibble: Inspired by https://gist.github.com/penguinboy/762197 | |
* input: { 'a':{ 'b':{ 'b2':2 }, 'c':{ 'c2':2, 'c3':3 } } } | |
* output: { 'a.b.b2':2, 'a.c.c2':2, 'a.c.c3':3 } | |
*/ | |
var flattenObject = function(ob) { | |
var toReturn = {}; | |
var flatObject; | |
for (var i in ob) { | |
if (!ob.hasOwnProperty(i)) { |
#!/bin/sh | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
# make sure the output directory exists | |
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
# Step 1. Build Device and Simulator versions | |
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
/** | |
* Handles form errors from server. | |
*/ | |
app.factory('formErrors', function () { | |
return { | |
/** | |
* Creates $error.errorKey (String) and sets validity | |
* for every failing model validation received from the server. | |
* E.g. 'form.message.$error.errorKey' can be accessed in the view. |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
# Built application files | |
/*/build/ | |
# Crashlytics configuations | |
com_crashlytics_export_strings.xml | |
# Local configuration file (sdk path, etc) | |
local.properties | |
# Gradle generated files |
/** @jsx React.DOM */ | |
var ReactDropzone = React.createClass({ | |
componentDidMount: function() { | |
var options = {}; | |
for (var opt in Dropzone.prototype.defaultOptions) { | |
var prop = this.props[opt]; | |
if (prop) { | |
options[opt] = prop; | |
continue; |
var module = angular.module( 'my.resource', [ 'ngResource' ] ); | |
module.factory( 'Resource', [ '$resource', function( $resource ) { | |
return function( url, params, methods ) { | |
var defaults = { | |
update: { method: 'put', isArray: false }, | |
create: { method: 'post' } | |
}; | |
methods = angular.extend( defaults, methods ); |