This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
<?php | |
/** | |
* This method logically validates Turkish VAT number | |
* | |
* @param string $taxNumber | |
* @return bool | |
*/ | |
public function validateTaxNumber(string $taxNumber): bool | |
{ |
/** | |
* Google Drive | |
* created by [email protected] | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, | |
Text, |
// @flow | |
// flow-typed signature: aa279642a4cb992a390fedc5acdc896d | |
// flow-typed version: react-native_v0.5.0/flow_v0.65.0 | |
type RNW$Dimension = {| fontScale: number, height: number, scale: number, width: number |}; | |
type RNW$DimensionsObject = {| window: RNW$Dimension, screen: RNW$Dimension |}; | |
type RNW$StyleObject = { [key: string]: * }; | |
type RNW$Style = mixed; | |
type RNW$Styles = RNW$StyleObject | RNW$Style | Array<RNW$Styles>; |
Sometime when we need a specific way to interact with the phone or operator system which is various different between iOS and Android, that when we need to lean that responsibility to the OS it self.
In RN, most of the logic and UI, in the best way, must be consistent between platforms. So, In an advance level of bringing best user experience to end user, we need to create native module, that mean the leaning the logic to the Native Part. There are ton of article out there showing why and when we need to create a native module, I won't dive into explanation again. Instead, I will show you how can we create a native module that could be used in React native code. That mean, you write your Objective-C/Java code, and import and run it as a module in Javascript Code.
I will show you here the most basic way to create the most basic library, called: open https://google.com. It means, I want to open Google by using the default iOS/Android browser in a native way.
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
import zlib | |
import idc | |
import idautils | |
import idaapi | |
RESOLVE_IMPORTS = 0x00C512A6 | |
GET_IMPORT_TABLE = 0x00C52400 | |
rainbow_table = {} | |
imports = [] |