Skip to content

Instantly share code, notes, and snippets.

@KashaTeplaya
KashaTeplaya / react-native-offline-bundling-android
Created September 29, 2021 05:19 — forked from erikyuntantyo/react-native-offline-bundling-android
Build react-native offline bundling into android
# create assets folder in the current project
$ mkdir android/app/src/main/assets
# create bundle script
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
# execute command to run android to create debug apk
$ react-native run-android
# Or change to android folder
@KashaTeplaya
KashaTeplaya / gist:f4a9466127473a4b7157021706adf66b
Created April 2, 2021 14:14
Left join LINQ of CityObject with different length
using System;
using System.Collections.Generic;
using System.Linq;
namespace CityObject
{
class Program
{
static void Main(string[] args)
{
@KashaTeplaya
KashaTeplaya / gist:cb0d6a5cb289ddb496f1f8e3a8283ac8
Created April 1, 2021 20:41
T-SQL script of creation table and select this table twice with different id
CREATE TABLE City
(
C_id INT,
C_Name NVARCHAR(20)
);
insert into City values(1, 'Москва');
insert into City values(2, 'Санкт-Петербург');
insert into City values(3, 'Самара');
using System;
using System.Collections.Generic;
using System.Linq;
namespace CityObject
{
class Program
{
static void Main(string[] args)
{