Skip to content

Instantly share code, notes, and snippets.

View lupikovoleg's full-sized avatar

Oleg Lupikov lupikovoleg

View GitHub Profile
@lupikovoleg
lupikovoleg / app.tsx
Created October 1, 2023 08:17
React Native WebView Example
import React, { Component } from 'react';
import { SafeAreaView, StyleProp, ViewStyle } from "react-native";
import { WebView } from 'react-native-webview';
interface MyWebProps {}
interface MyWebState {}
class MyWeb extends Component<MyWebProps, MyWebState> {
render() {
{
header: {
basket: {
title: 'Корзина',
size: 'Размер',
color: 'Цвет',
quantity: 'Количество',
sum: 'Сумма',
withoutDel: 'Без учета доставки',
buttonText: 'Перейти в корзину',
{
"countries": [
{
"code": "+7 840",
"name": "Abkhazia"
},
{
"code": "+93",
"name": "Afghanistan"
},
@lupikovoleg
lupikovoleg / gist:e1e1352465d6aa71aa01
Created January 14, 2015 13:18
Delete all VK wall posts.
javascript:var h = document.getElementsByClassName("post_actions");var i = 0;function del_wall(){var fn_str = h[i].getElementsByTagName("div")[0].onclick.toString();var fn_arr_1 = fn_str.split("{");var fn_arr_2 = fn_arr_1[1].split(";");eval(fn_arr_2[0]);if(i == h.length){clearInterval(int_id)}else{i++}};var int_id=setInterval(del_wall,1000);