I hereby claim:
- I am fjcaetano on github.
- I am fjcaetano (https://keybase.io/fjcaetano) on keybase.
- I have a public key ASBPByTOBjczHP-AUH3vIlMW7Lq2bslvhRAJTTU63iW6ego
To claim this, I am signing this object:
var randomNumbers = [42, 12, 88, 62, 63, 56, 1, 77, 88, 97, 97, 20, 45, 91, 62, 2, 15, 31, 59, 5] | |
func partition(v: Int[], left: Int, right: Int) -> Int { | |
var i = left | |
for j in (left + 1)..(right + 1) { | |
if v[j] < v[left] { | |
i += 1 | |
(v[i], v[j]) = (v[j], v[i]) | |
} | |
} |
#! /bin/sh | |
ARCHIVE_PATH="$1" | |
OUTPUT_PATH="$2" | |
if [ -z "${ARCHIVE_PATH}" ] || [ -z "${OUTPUT_PATH}" ]; then | |
echo "Usage: $0 [archive_path] [output_path]" | |
exit 1 | |
fi | |
TMP_PATH="/tmp/manual-archive" |
import Dispatch | |
private var throttleWorkItems = [AnyHashable: DispatchWorkItem]() | |
private var lastDebounceCallTimes = [AnyHashable: DispatchTime]() | |
private let nilContext: AnyHashable = arc4random() | |
public extension DispatchQueue { | |
/** | |
- parameters: | |
- deadline: The timespan to delay a closure execution |
module Fastlane | |
module Actions | |
class CodecovAction < Action | |
def self.run(params) | |
ci_only = params[:ci_only] | |
cmd = ['curl -s https://codecov.io/bash | bash'] | |
cmd << "-s --" if params.all_keys.inject(false) { |p, k| p or params[k] } | |
cmd << "-X xcodeplist" if params[:use_xcodeplist] | |
cmd << "-J '#{params[:project_name]}'" if params[:project_name] |
module Fastlane | |
module Actions | |
module SharedValues | |
IOS_SIMULATOR_CUSTOM_VALUE = :IOS_SIMULATOR_CUSTOM_VALUE | |
end | |
class IosSimulatorAction < Action | |
@@already_booted_code = 164 | |
def self.run(params) |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.pyc |
These are a few patterns commonly used. | |
1 - Digits only: (\\d+) | |
2 - Names without special characters: ([A-Za-z\\s]+) | |
3 - Email: (([\\w\\.\\-]*?@)([\\w\\.\\-]+)(\\.[a-z]{2,4}) # Incompatible with versions previous to 1.1.2 of NSStringMask | |
4 - Dates: (\\d{2})/(\\d{2})/(\\d{4}) | |
5 - SSN: (\\d{3})-(\\d{2})-(\\d{3}) | |
6 - Telephone: (\\d{3})-(\\d{3})-(\\d{4}) | |
Brasil: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else |
import React from 'react'; | |
const withPure = <P extends any>( | |
WrappedComponent: React.ComponentType<P>, | |
): React.ComponentClass<P> => { | |
class Purified extends React.PureComponent<P> { | |
render() { | |
return <WrappedComponent {...this.props} />; | |
} | |
} |