docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
<!DOCTYPE html> | |
<html> | |
<body> | |
<div class="container"> | |
<img | |
src="https://firebasestorage.googleapis.com/v0/b/tpf-apps.appspot.com/o/online-auth%2FOA%20loader.svg?alt=media&token=5027c2ec-4ca5-447c-b451-6708eae32072" | |
class="loader" | |
/> | |
</div> |
console.log(moment().toISOString(true)); | |
// sample output: 2022-04-06T16:26:36.758+03:00 |
ios swift 3+: | |
``` | |
let bundleID = Bundle.main.bundleIdentifier | |
``` | |
ios objective-c: | |
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier]; |
// json s string for NSDictionary object | |
NSString *s = @"{\"temperature\": -260.65, \"humidity\": 54.05, \"time\": \"2016-03-14T09:46:48Z\", \"egg\": 1, \"id\": 6950, \"no2\": 0.0}"; | |
// comment above and uncomment below line, json s string for NSArray object | |
// NSString *s = @"[{\"ID\":{\"Content\":268,\"type\":\"text\"},\"ContractTemplateID\":{\"Content\":65,\"type\":\"text\"}}]"; | |
NSData *jsonData = [s dataUsingEncoding:NSUTF8StringEncoding]; | |
NSError *error; | |
// Note that JSONObjectWithData will return either an NSDictionary or an NSArray, depending whether your JSON string represents an a dictionary or an array. | |
id jsonObject = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error]; |
import React from 'react'; | |
import {Button, Text} from 'react-native'; | |
import {StackNavigationProp} from '@react-navigation/stack'; | |
import {WebView} from 'react-native-webview'; | |
import {RootStackParamList} from '../../navigation/RootStack'; | |
import {SafeAreaView} from 'react-native-safe-area-context'; | |
type BootNavigationProps = StackNavigationProp<RootStackParamList, 'Boot'>; | |
interface Props { |
// C++ bit . save it in an example.cpp file | |
#include "emscripten.h" | |
extern "C" { | |
inline const char* cstr(const std::string& message) { | |
char * cstr = new char [message.length()+1]; | |
std::strcpy (cstr, message.c_str()); | |
return cstr; | |
} | |
EMSCRIPTEN_KEEPALIVE | |
const char* getAMessage() { |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <string.h> | |
#include <gif_lib.h> | |
bool gif_write(const char* fileName) | |
{ | |
int error; |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 |
const reduxSwitchcase = (cases, key) => | |
key in cases ? cases[key] : state => state; | |
export default reduxSwitchcase; |