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
package ru.mastermmo.rhumester;
import android.graphics.Bitmap;
import android.nfc.Tag;
import android.support.annotation.Nullable;
import android.util.Log;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
@galek
galek / README.md
Created October 15, 2017 00:19 — forked from remarkablemark/README.md
Classes - ES5 vs ES6

JavaScript Classes - ES5 vs ES6

An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.

Reference

@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)
{
//--- 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 / 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
*/
@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 / 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;
/* 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 / .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;
@galek
galek / .ts
Created June 15, 2019 12:33
Category
/**
* Login page logic
* last edit 27.04.19 20:31
* Author: NickGalko [email protected]
*
* Changes:
* 1) Fix for logic, show error messeage received from server
*/
import { Component } from '@angular/core';
import { NavController, Platform, NavParams } from 'ionic-angular';