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 React from "react"; | |
import { Button, View, Text } from "react-native"; | |
import { createStackNavigator, createAppContainer } from "react-navigation"; | |
class HomeScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> | |
<Text>Home Screen</Text> | |
<Button |
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 random | |
import sys | |
def random01(): | |
return random.randint(0,1) | |
# if 1+1 !=2 is false, it's easy, everything is normal | |
# but if 1+1 != 2 is true, what value should it be? | |
def baseRuleWhenOneMeetOne(): | |
# In binary |
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 "Cache.h" | |
#import <WebKit/Webkit.h> | |
static NSInteger expireCacheMilliSeconds = 300000; // expire content cached longer than 5 minutes | |
@interface CacheOperation : NSOperation <UIWebViewDelegate, WKNavigationDelegate> | |
{ | |
BOOL executing; | |
BOOL finished; | |
} |
NewerOlder