I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
This file contains 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
const fetch = require('node-fetch') | |
const am = require('am') | |
async function main() { | |
const url = 'https://www.example.com' | |
const response = await fetch(url) | |
const responseHeaders = Object.fromEntries(resp.headers.entries()) | |
console.dir(responseHeaders) | |
return responseHeaders | |
} |
Centralize the support libraries dependencies in gradle
Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.
A very good way is to separate gradle build files, defining something like:
root
--gradleScript
----dependencies.gradle
This file contains 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
#import <UIKit/UIKit.h> | |
@interface RCDropdown : UITextField | |
@property (nonatomic) id<UIPickerViewDelegate> pickerDelegate; | |
@property (nonatomic) id<UIPickerViewDataSource> pickerDataSource; | |
@end |
This file contains 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
/*jshint asi:true, forin:true, noarg:true, noempty:true, eqeqeq:false, bitwise:true, undef:true, curly:true, browser:true, devel:true, smarttabs:true, maxerr:50 */ | |
/****************************************************************************** | |
* | |
* UI-GESTURES | |
* Author: Kerri Shotts | |
* Version: 0.1 alpha | |
* License: MIT | |
* | |
* A simple, no-frills gesture recognizer. Permits long-press recognition, | |
* horizontal swipe recognition, and vertical swipe recognition. Recognizing |