Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Netflix-Skunkworks/sketchy
/ functions
Functions
229 in github.com/Netflix-Skunkworks/sketchy
⨍
Functions
229
◇
Types & classes
15
↳
Endpoints
2
↓ 21 callers
Function
slice
* Slices the `collection` from the `start` index up to, but not including, * the `end` index. * * Note: This function is used instead of `Arr
sketchy/assets/lodash.js:406
↓ 16 callers
Function
isFunction
* Checks if `value` is a function. * * @static * @memberOf _ * @category Objects * @param {*} value The value to check.
sketchy/assets/lodash.js:2390
↓ 15 callers
Function
forOwn
(collection, callback, thisArg)
sketchy/assets/lodash.js:2094
↓ 13 callers
Function
baseCreateCallback
* The base implementation of `_.createCallback` without support for creating * "_.pluck" or "_.where" style callbacks. * * @private
sketchy/assets/lodash.js:863
↓ 13 callers
Function
isObject
* Checks if `value` is the language type of Object. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) *
sketchy/assets/lodash.js:2414
↓ 11 callers
Function
releaseArray
* Releases the given array back to the array pool. * * @private * @param {Array} [array] The array to release.
sketchy/assets/lodash.js:369
↓ 10 callers
Method
get
Retrieve Capture based on id
sketchy/controllers/controller.py:157
↓ 10 callers
Function
getArray
* Gets an array from the array pool or creates a new one if the pool is empty. * * @private * @returns {Array} The array from the pool.
sketchy/assets/lodash.js:335
↓ 9 callers
Method
as_dict
Return Static model as a JSON object
sketchy/models/static.py:44
↓ 9 callers
Function
createWrapper
* Creates a function that, when called, either curries or invokes `func` * with an optional `this` binding and partially applied arguments.
sketchy/assets/lodash.js:1394
↓ 9 callers
Function
forEach
* Iterates over elements of a collection, executing the callback for each * element. The callback is bound to `thisArg` and invoked with three ar
sketchy/assets/lodash.js:3290
↓ 8 callers
Function
forIn
(collection, callback, thisArg)
sketchy/assets/lodash.js:2017
↓ 8 callers
Function
isNative
* Checks if `value` is a native function. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true`
sketchy/assets/lodash.js:1483
↓ 7 callers
Function
baseFlatten
* The base implementation of `_.flatten` without support for callback * shorthands or `thisArg` binding. * * @private * @param {Ar
sketchy/assets/lodash.js:1011
↓ 7 callers
Function
finisher
POST finished chain to a callback URL provided
sketchy/controllers/tasks.py:230
↓ 6 callers
Function
indexOf
* Gets the index at which the first occurrence of `value` is found using * strict equality for comparisons, i.e. `===`. If the array is already s
sketchy/assets/lodash.js:4399
↓ 5 callers
Function
baseDifference
* The base implementation of `_.difference` that accepts a single array * of values to exclude. * * @private * @param {Array} arra
sketchy/assets/lodash.js:972
↓ 5 callers
Function
grab_domain
Returns the domain of a URL
sketchy/controllers/validators.py:34
↓ 4 callers
Function
baseCreate
* The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {O
sketchy/assets/lodash.js:835
↓ 4 callers
Method
eager_get
(self, endpoint)
tests.py:39
↓ 4 callers
Method
get
(self, endpoint)
tests.py:50
↓ 4 callers
Function
getIndexOf
* Gets the appropriate "indexOf" function. If the `_.indexOf` method is * customized, this method returns the custom method, otherwise it returns
sketchy/assets/lodash.js:1471
↓ 4 callers
Function
isString
* Checks if `value` is a string. * * @static * @memberOf _ * @category Objects * @param {*} value The value to check. *
sketchy/assets/lodash.js:2559
↓ 4 callers
Function
releaseObject
* Releases the given object back to the object pool. * * @private * @param {Object} [object] The object to release.
sketchy/assets/lodash.js:382
↓ 4 callers
Function
s3_save
Write a sketch, scrape, and html file to S3
sketchy/controllers/tasks.py:177
↓ 3 callers
Function
baseRandom
* The base implementation of `_.random` without argument juggling or support * for returning floating-point numbers. * * @private
sketchy/assets/lodash.js:1289
↓ 3 callers
Function
baseUniq
* The base implementation of `_.uniq` without support for callback shorthands * or `thisArg` binding. * * @private * @param {Array
sketchy/assets/lodash.js:1303
↓ 3 callers
Function
createAggregator
* Creates a function that aggregates a collection, creating an object composed * of keys generated from the results of running each element of th
sketchy/assets/lodash.js:1350
↓ 3 callers
Function
createCache
* Creates a cache object to optimize linear searches of large arrays. * * @private * @param {Array} [array=[]] The array to search. * @ret
sketchy/assets/lodash.js:292
↓ 3 callers
Function
die
(error)
sketchy/assets/capture.js:127
↓ 3 callers
Function
die
(error)
sketchy/assets/static.js:97
↓ 3 callers
Function
functions
* Creates a sorted array of property names of all enumerable properties, * own and inherited, of `object` that have function values. *
sketchy/assets/lodash.js:2157
↓ 3 callers
Function
getObject
* Gets an object from the object pool or creates a new one if the pool is empty. * * @private * @returns {Object} The object from the pool.
sketchy/assets/lodash.js:345
↓ 3 callers
Function
isArguments
* Checks if `value` is an `arguments` object. * * @static * @memberOf _ * @category Objects * @param {*} value The value to c
sketchy/assets/lodash.js:1556
↓ 3 callers
Function
values
* Creates an array composed of the own enumerable property values of `object`. * * @static * @memberOf _ * @category Objects
sketchy/assets/lodash.js:2904
↓ 2 callers
Function
assign
(object, source, guard)
sketchy/assets/lodash.js:1679
↓ 2 callers
Function
baseClone
* The base implementation of `_.clone` without argument juggling or support * for `thisArg` binding. * * @private * @param {*} val
sketchy/assets/lodash.js:747
↓ 2 callers
Function
baseIndexOf
* The base implementation of `_.indexOf` without support for binary searches * or `fromIndex` constraints. * * @private * @param {Array} a
sketchy/assets/lodash.js:170
↓ 2 callers
Function
baseIsEqual
* The base implementation of `_.isEqual`, without support for `thisArg` binding, * that allows partial "_.where" style comparisons. * *
sketchy/assets/lodash.js:1053
↓ 2 callers
Function
cacheIndexOf
* An implementation of `_.contains` for cache objects that mimics the return * signature of `_.indexOf` by returning `0` if the value is found, els
sketchy/assets/lodash.js:191
↓ 2 callers
Method
check_content_type
(self, headers)
tests.py:36
↓ 2 callers
Function
defaults
(object, source, guard)
sketchy/assets/lodash.js:1858
↓ 2 callers
Function
do_capture
Create a screenshot, text scrape, from a provided html file. This depends on phantomjs and an associated javascript file to perform the capt
sketchy/controllers/tasks.py:84
↓ 2 callers
Function
filter
* Iterates over elements of a collection, returning an array of all elements * the callback returns truey for. The callback is bound to `thisArg`
sketchy/assets/lodash.js:3140
↓ 2 callers
Function
forEachRight
* This method is like `_.forEach` except that it iterates over elements * of a `collection` from right to left. * * @static * @mem
sketchy/assets/lodash.js:3324
↓ 2 callers
Function
map
* Creates an array of values by running each element in the collection * through the callback. The callback is bound to `thisArg` and invoked wit
sketchy/assets/lodash.js:3500
↓ 2 callers
Function
mixin
* Adds function properties of a source object to the destination object. * If `object` is a function methods will be added to its prototype as we
sketchy/assets/lodash.js:5894
↓ 2 callers
Method
token_get
(self, endpoint)
tests.py:45
↓ 1 callers
Method
allowed_extension
Check if the provided file has an html or htm file extension.
sketchy/controllers/static_upload.py:72
↓ 1 callers
Method
as_dict
Return Capture model as a JSON object
sketchy/models/capture.py:46
↓ 1 callers
Function
baseCreateWrapper
* The base implementation of `createWrapper` that creates the wrapper and * sets its meta data. * * @private * @param {Array} bind
sketchy/assets/lodash.js:918
↓ 1 callers
Function
baseMerge
* The base implementation of `_.merge` without argument juggling or support * for `thisArg` binding. * * @private * @param {Object
sketchy/assets/lodash.js:1226
↓ 1 callers
Function
bind
* Creates a function that, when called, invokes `func` with the `this` * binding of `thisArg` and prepends any additional `bind` arguments to tho
sketchy/assets/lodash.js:5170
↓ 1 callers
Function
chain
* Creates a `lodash` object that wraps the given value with explicit * method chaining enabled. * * @static * @memberOf _ * @
sketchy/assets/lodash.js:6421
↓ 1 callers
Function
check_url
Check if a URL exists without downloading the whole file. We only check the URL header.
sketchy/controllers/validators.py:45
↓ 1 callers
Function
debounce
* Creates a function that will delay the execution of `func` until after * `wait` milliseconds have elapsed since the last time it was invoked.
sketchy/assets/lodash.js:5374
↓ 1 callers
Function
forOwnRight
* This method is like `_.forOwn` except that it iterates over elements * of a `collection` in the opposite order. * * @static * @m
sketchy/assets/lodash.js:2128
↓ 1 callers
Function
get_server_status_code
Return the server's status code.
sketchy/controllers/validators.py:18
↓ 1 callers
Function
invert
* Creates an object composed of the inverted keys and values of the given object. * * @static * @memberOf _ * @category Objects
sketchy/assets/lodash.js:2199
↓ 1 callers
Function
isNumber
* Checks if `value` is a number. * * Note: `NaN` is considered a number. See http://es5.github.io/#x8.5. * * @static * @membe
sketchy/assets/lodash.js:2488
↓ 1 callers
Method
is_allowed_file
Ensure file is secure, is allowed, and generate a uniqe filename.
sketchy/controllers/static_upload.py:80
↓ 1 callers
Function
main
()
sketchy/assets/capture.js:132
↓ 1 callers
Function
main
()
sketchy/assets/static.js:102
↓ 1 callers
Function
make_celery
Make a celery object that extends Flask context.
sketchy/__init__.py:38
↓ 1 callers
Function
max
* Retrieves the maximum value of a collection. If the collection is empty or * falsey `-Infinity` is returned. If a callback is provided it will
sketchy/assets/lodash.js:3559
↓ 1 callers
Method
post
(self, endpoint, data)
tests.py:55
↓ 1 callers
Function
property
* Creates a "_.pluck" style function, which returns the `key` value of a * given object. * * @static * @memberOf _ * @categor
sketchy/assets/lodash.js:6036
↓ 1 callers
Function
read
(fname)
setup.py:18
↓ 1 callers
Function
read
(fname)
setup-nflx.py:18
↓ 1 callers
Function
result
* Resolves the value of property `key` on `object`. If `key` is a function * it will be invoked with the `this` binding of `object` and its resul
sketchy/assets/lodash.js:6127
↓ 1 callers
Function
runInContext
* Create a new `lodash` function using the given context object. * * @static * @memberOf _ * @category Utilities * @param {Object} [con
sketchy/assets/lodash.js:432
↓ 1 callers
Function
shimIsPlainObject
* A fallback implementation of `isPlainObject` which checks if a given value * is an object created by the `Object` constructor, assuming objects
sketchy/assets/lodash.js:1509
↓ 1 callers
Function
shuffle
* Creates an array of shuffled values, using a version of the Fisher-Yates * shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
sketchy/assets/lodash.js:3866
↓ 1 callers
Function
sketchy_logger
Logger configuration for Sketchy
sketchy/loggers.py:19
↓ 1 callers
Function
sortedIndex
* Uses a binary search to determine the smallest index at which a value * should be inserted into a given sorted array in order to maintain the s
sketchy/assets/lodash.js:4903
Function
Object
()
sketchy/assets/lodash.js:841
Method
__call__
(self, *args, **kwargs)
sketchy/__init__.py:47
Method
__init__
(self, host='127.0.0.1', port=8000, workers=4)
manage.py:62
Method
__init__
(self)
sketchy/models/static.py:41
Method
__init__
(self)
sketchy/models/capture.py:43
Method
__repr__
Return the url of the object
sketchy/models/static.py:62
Method
__repr__
Return the url of the object
sketchy/models/capture.py:67
Function
_get_date
Returns the current date when called
sketchy/models/static.py:18
Function
_get_date
Returns the current date when called
sketchy/models/capture.py:18
Function
after
* Creates a function that executes `func`, with the `this` binding and * arguments of the created function, only after being called `n` times.
sketchy/assets/lodash.js:5137
Method
after_return
(self, status, retval, task_id, args, kwargs, einfo)
sketchy/__init__.py:51
Function
app_key_check
Token auth decorator returns 401 if token is not specified or incorrect
sketchy/__init__.py:84
Method
args_filter
(name_or_value)
manage.py:95
Function
at
* Creates an array of elements from the specified indexes, or keys, of the * `collection`. Indexes may be specified as individual arguments or as
sketchy/assets/lodash.js:2939
Function
baseBind
* The base implementation of `_.bind` that creates the bound function and * sets its meta data. * * @private * @param {Array} bind
sketchy/assets/lodash.js:706
Function
bindAll
* Binds methods of an object to the object itself, overwriting the existing * method. Method names may be specified as individual arguments or as
sketchy/assets/lodash.js:5200
Function
bindKey
* Creates a function that, when called, invokes the method at `object[key]` * and prepends any additional `bindKey` arguments to those provided t
sketchy/assets/lodash.js:5246
Function
bound
()
sketchy/assets/lodash.js:711
Function
cachePush
* Adds a given value to the corresponding cache object. * * @private * @param {*} value The value to add to the cache.
sketchy/assets/lodash.js:215
Function
celery_capture
Celery task used to create sketch, scrape, html. Task also writes files to S3 or posts a callback depending on configuration file.
sketchy/controllers/tasks.py:311
Function
celery_static_capture
Celery task used to create a sketch and scrape with a provided static HTML file. Task also writes files to S3 or posts a callback depending o
sketchy/controllers/tasks.py:263
Function
charAtCallback
* Used by `_.max` and `_.min` as the default callback when a given * collection is a string value. * * @private * @param {string} value Th
sketchy/assets/lodash.js:244
Function
check_url
Check if a URL exists without downloading the whole file. We only check the URL header.
sketchy/controllers/tasks.py:38
Function
clear
Remove all local files
manage.py:43
Function
clone
* Creates a clone of `value`. If `isDeep` is `true` nested objects will also * be cloned, otherwise they will be assigned by reference. If a call
sketchy/assets/lodash.js:1746
next →
1–100 of 229, ranked by callers