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 / media-query.css
Created October 26, 2020 05:25 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@galek
galek / swapper.js
Created February 13, 2020 10:25
swapper.js for cordova
/* Copyright (C) 2009-2020, Nick Galko. All rights reserved.
*
* This file is part of the Nick Galko source-code
* (https://galek.github.io/portfolio/).
*
* 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 Nick Galko License Agreement; and (ii) your inclusion of this notice
* in any version of this software that you use or redistribute.
@galek
galek / LoggerWrapper.ts
Last active February 12, 2020 06:45
LoggerWrapper.ts for ionic and angular applications
/* Copyright (C) 2009-2020, Nick Galko. All rights reserved.
*
* This file is part of the Nick Galko source-code
* (https://galek.github.io/portfolio/).
*
* 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 Nick Galko License Agreement; and (ii) your inclusion of this notice
* in any version of this software that you use or redistribute.
@galek
galek / clock.h
Created April 4, 2017 13:50
Clocks
static inline uint64_t cf_getms()
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ((uint64_t)ts.tv_nsec / 1000000) + ((uint64_t)ts.tv_sec * 1000);
}
static inline uint64_t cf_getus()
{
struct timespec ts;
@galek
galek / colors.xml
Created July 11, 2019 13:14
colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<color name="message_status_icon_colors" tools:override="true">#c1262b</color>
<color name="applozic_theme_color" tools:override="true">#c1262b</color>
<color name="applozic_theme_color_primary" tools:override="true">#c1262b</color>
<color name="applozic_theme_color_primary_dark" tools:override="true">#c1262b</color>
<color name="applozic_theme_color_accent" tools:override="true">#c1262b</color>
<color name="default_start_new_button_color" tools:override="true">#c1262b</color>
</resources>
@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