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
extension CharacterSet { | |
static var alphanumericsWithSpace: CharacterSet { | |
var characterSet = CharacterSet.alphanumerics | |
characterSet.insert(charactersIn: " ") | |
return characterSet | |
} | |
static var moneyTransferLargeCharacterSet: CharacterSet { | |
var characterSet = alphanumericsWithSpace |
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
extension String { | |
func replacingOccurences(from characterSet: CharacterSet, with string: String) -> String { | |
return self.components(separatedBy: characterSet).joined(separator: string) | |
} | |
func isValid(for characterSet: CharacterSet) -> Bool { | |
let invalidCharacters = self.replacingOccurences(from: characterSet.inverted, with: "") | |
return invalidCharacters.isEmpty | |
} |
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
let characters = CharacterSet.decimalDigits.getCharacters() | |
print( characters.joined(separator: ",") ) | |
0,1,2,3,4,5,6,7,8,9,٠,١,٢,٣,٤,٥,٦,٧,٨,٩,۰,۱,۲,۳,۴,۵,۶,۷,۸,۹, | |
߀,߁,߂,߃,߄,߅,߆,߇,߈,߉,०,१,२,३,४,५,६,७,८,९,০,১,২,৩,৪,৫,৬,৭,৮,৯, | |
੦,੧,੨,੩,੪,੫,੬,੭,੮,੯,૦,૧,૨,૩,૪,૫,૬,૭,૮,૯,୦,୧,୨,୩,୪,୫,୬,୭,୮,୯, | |
௦,௧,௨,௩,௪,௫,௬,௭,௮,௯,౦,౧,౨,౩,౪,౫,౬,౭,౮,౯,೦,೧,೨,೩,೪,೫,೬,೭,೮, | |
೯,൦,൧,൨,൩,൪,൫,൬,൭,൮,൯,෦,෧,෨,෩,෪,෫,෬,෭,෮,෯,๐,๑,๒,๓,๔,๕,๖, | |
๗,๘,๙,໐,໑,໒,໓,໔,໕,໖,໗,໘,໙,༠,༡,༢,༣,༤,༥,༦,༧,༨,༩,၀,၁,၂,၃,၄,၅,၆,၇,၈, | |
၉,႐,႑,႒,႓,႔,႕,႖,႗,႘,႙,០,១,២,៣,៤,៥,៦,៧,៨,៩,᠐,᠑,᠒,᠓,᠔,᠕,᠖,᠗,᠘,᠙, |
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
extension CharacterSet { | |
func getCharacters() -> [String] { | |
let characterSet = self as NSCharacterSet | |
var characters: [String] = [] | |
for plane:UInt8 in 0..<17 { | |
if characterSet.hasMemberInPlane(plane) { | |
let planeStart = UInt32(plane) << 16 | |
let nextPlaneStart = (UInt32(plane) + 1) << 16 | |
for char: UTF32Char in planeStart..<nextPlaneStart { |
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
var fs = require('fs'); | |
const log_enabled = false; | |
// ios - build numarası güncelle -pListLocation -newBuildNumber | |
// ios - versiyon güncelle -pListLocation -newVersion | |
// ios - build numarası bul -pListLocation => buildNumber | |
// ios - versiyon bul -pListLocation => version | |
// android - build numarası güncelle -buildGradleLocation -newBuildNumber |
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
'ust strict'; | |
var fs = require('fs'); | |
var replaceOptions = [ | |
{ | |
location: './node_modules/react-native/React/React.xcodeproj/project.pbxproj', | |
replaceFrom: [ | |
' localhost 8081 ;', | |
'http://localhost:8081/status', | |
'Port 8081 already in use', |
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
package tr.com.pragmasoft.babylon.other; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
/** | |
* Created by kocyigityunus on 08/03/16. | |
*/ | |
public class DateDeneme { |
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 "PRImageNode.h" | |
#import <AsyncDisplayKit/ASControlNode+Subclasses.h> | |
@interface PRImageNode(){ | |
// PRImageNode class is derived from ASImageNode which derived from ASControlNode | |
BOOL _touched; | |
} | |
@end | |