Skip to content

Instantly share code, notes, and snippets.

View galek's full-sized avatar
🧭
I'm ready for new discoveries

Nikolay Galko galek

🧭
I'm ready for new discoveries
View GitHub Profile
@galek
galek / info.plist
Created June 20, 2019 22:39 — forked from mlynch/info.plist
Disable App Transport Security in iOS 9
<!--
This disables app transport security and allows non-HTTPS requests.
Note: it is not recommended to use non-HTTPS requests for sensitive data. A better
approach is to fix the non-secure resources. However, this patch will work in a pinch.
To apply the fix in your Ionic/Cordova app, edit the file located here:
platforms/ios/MyApp/MyApp-Info.plist
And add this XML right before the end of the file inside of the last </dict> entry:
@galek
galek / .ts
Created June 15, 2019 12:34
PageHelper
import { NavController } from 'ionic-angular';
import { AccountPageLogin } from '../pages/account-login/account-login';
import { AccountPagePasswordNew } from '../pages/account-password-new/account-password-new';
import { AccountPagePasswordReset } from '../pages/account-password-reset/account-password-reset';
import { AccountPageReg } from '../pages/account-reg/account-reg';
import { AccountPageShared } from '../pages/account-shared/account-shared';
import { InformationAndContactsShared } from "../pages/InformationAndContactsShared/InformationAndContactsShared"
import { InformationAndContacts } from "../pages/InformationAndContacts/InformationAndContacts"
import { MyProfilePage } from '../pages/MyProfilePage/MyProfilePage'
@galek
galek / .ts
Created June 15, 2019 12:33
Category
/**
* Login page logic
* last edit 27.04.19 20:31
* Author: NickGalko nikolay.galko@gmail.com
*
* Changes:
* 1) Fix for logic, show error messeage received from server
*/
import { Component } from '@angular/core';
import { NavController, Platform, NavParams } from 'ionic-angular';
@galek
galek / .ts
Created June 15, 2019 12:21
apiProvider.ts
import { Config } from './config';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable()
export class API {
public config: Config;
public http: HttpClient;
/* Copyright (C) 2009-2019, NG Games Ltd. All rights reserved.
*
* This file is part of the NGTech (http://nggames.com/).
*
* Your use and or redistribution of this software in source and / or
* binary form, with or without modification, is subject to: (i) your
* ongoing acceptance of and compliance with the terms and conditions of
* the NGTech License Agreement; and (ii) your inclusion of this notice
* in any version of this software that you use or redistribute.
* A copy of the NGTech License Agreement is available by contacting
@galek
galek / glslcommon.inc
Created August 4, 2018 00:06
glslcommon.inc file from NGTech Engine
#ifndef GLSLCOMMON_INC
#define GLSLCOMMON_INC 1
#include "gles.inc"
const float EPSILON = 0.000001;
const float ONE_OVER_PI = 0.318309;
const float PI = 3.1415926535897932;
const float TWOPI = 6.2831853071795864;
const int NUM_MIPS = 8;
@galek
galek / system\blankprint\index.php
Last active July 8, 2018 04:41
Fixed system\blankprint\index.php for "Opencart 2.x - Почта России - Печать Почтовых Бланков"
<?php
/*
Modificated by Nick
Data: 08.07.18
License: GPL
Modifications:
* Fixed incorrect output for 7p class - incorrect position. ( you can rewrite without "counter" varible, using: length-currentpos
*/
ini_set("memory_limit", "128M");
@galek
galek / blankprint.php
Last active July 8, 2018 02:19
Fixed blankprint.php for "Opencart 2.x - Почта России - Печать Почтовых Бланков"
<?php
/*
Modificated by Nick
Data: 08.07.18
License: GPL
Modifications:
* Fixed keys for array - for opencart 2.x they is different
*/
//--- Spawn Protection ---//
#define SAFETY_ZONES [["respawn_east", 400],["respawn_west", 400]]
#define MESSAGE "DO NOT SHOOT in the base"
SPAWN_Restriction=["APERSBoundingMine_Range_Ammo","ATMine_Range_Ammo","DemoCharge_Remote_Ammo","SatchelCharge_Remote_Ammo","SLAMDirectionalMine_Wire_Ammo","APERSTripMine_Wire_Ammo","APERSMine_Range_Ammo","GrenadeHand","smokeshell","F_20mm_Green","F_20mm_Red","F_20mm_White","F_20mm_Yellow","F_40mm_Green","F_40mm_Cir","F_40mm_Red","F_40mm_White","F_40mm_Yellow","NLAW_F","R_TBG32V_F","R_PG32V_F","M_Titan_AP","SmokeShellBlue","SmokeShellGreen","SmokeShellOrange","SmokeShellPurple","SmokeShellRed","SmokeShell","SmokeShellYellow","G_40mm_SmokeBlue","G_40mm_SmokeGreen","G_40mm_SmokeOrange","G_40mm_SmokePurple","G_40mm_SmokeRed","G_40mm_Smoke","G_40mm_SmokeYellow","ClaymoreDirectionalMine_Remote_Ammo","mini_Grenade","GrenadeHand_stone","G_40mm_HE","M_NLAW_AT_F","M_Titan_AT"];
if (isDedicated) exitWith {};
waitUntil {!isNull player};
waitUntil {time > 0};
player addEventHandler
@galek
galek / LR2.cs
Created December 28, 2017 08:52
LR2.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace LR2
{
class Program
{
static void Main(string[] args)
{