Skip to content

Instantly share code, notes, and snippets.

View vladimir-kotikov's full-sized avatar
😎
$> ping 192.168.0.1

Vladimir Kotikov vladimir-kotikov

😎
$> ping 192.168.0.1
View GitHub Profile
@ECHO OFF
SETLOCAL EnableDelayedExpansion
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: Node.js Portable ::
:: ::
:: A DOS Batch script to make Node.js portable on Windows systems. ::
:: ::
:: Copyright (C) 2013-2014 Cr@zy <webmaster@crazyws.fr> ::
@vladimir-kotikov
vladimir-kotikov / Standartized_splashscreen_support.md
Last active August 3, 2019 21:28
Standartized splash screen support for Cordova
@vladimir-kotikov
vladimir-kotikov / Contacts_API.md
Last active August 29, 2015 14:01
Contacts API

Calendar plugin for Cordova already exist. It support iOS and Android platforms and could be easily extended to support both WP8 and Windows 8

Plugin's API

  • listCalendars/createCalendar/deleteCalendar
  • getCalendarOptions/getCreateCalendarOptions
  • createEvent/createEventWithOptions/createEventInteractively/createEventInNamedCalendar
  • modifyEvent/modifyEventInNamedCalendar
  • deleteEvent/deleteEventFromNamedCalendar
  • findEvent/findAllEventsInNamedCalendar
@vladimir-kotikov
vladimir-kotikov / Target_platforms_versions.md
Last active August 29, 2015 14:01
Platform specific config.xml properties for Android and iOS

Platform specific config.xml properties for Android and iOS

PhoneGap Build has these features already implemented via <preference /> tag like

<!-- IOS -->
<preference name="target-device" value="universal" />
<preference name="deployment-target" value="7.0" />
<!-- Android -->
<preference name="android-minSdkVersion" value="10" />
@vladimir-kotikov
vladimir-kotikov / Code_signing.md
Last active August 29, 2015 14:01
Code signing across platform

Proposal

Introduce new package command to cordova-cli

Use existing <preference /> tag to specify code signing specific parameters (certificate path, certificate storage, etc.)

<!-- Windows 8 -->
<preference name="CodeSignCertificate" value="cert/windows/build-release.pfx" />
<!-- Android -->
@vladimir-kotikov
vladimir-kotikov / CordovaApp.Store80.jsproj
Created July 9, 2014 05:45
prebuild event command str for cordova-windows that fixes unicode paths handling by msbuild
Powershell -ExecutionPolicy RemoteSigned Unblock-File '..\..\..\..\cordova\lib\ApplyPlatformConfig.ps1'; Powershell -File '..\..\..\..\cordova\lib\ApplyPlatformConfig.ps1' '..\..\..\..\';
$wc = New-Object System.Net.WebClient
$destination = $("C:\Users\"+[Environment]::UserName+"\Downloads\node-v0.10.29-x86.msi")
$source = "http://nodejs.org/dist/v0.10.29/node-v0.10.29-x86.msi"
Write-Host "Downloading nodejs ..."
$wc.DownloadFile($source, $destination)
Write-Host "Installing nodejs ..."
msiexec /qn /norestart /l* $("C:\Users\"+[Environment]::UserName+"\Downloads\nodejs.log") /i $destination ALLUSERS=1

SQL exam questions

  • Relational Database Concepts

    • Relational database?
    • Normalization
    • Elements (Table, Index, Key, Constraint, View, Stored Procedure, Trigger)
    • SQL Language (DDL, DML, DCL, DCL, TCL)
    • Transactions (Atomicity, Consistency, Isolation, Durability)
@vladimir-kotikov
vladimir-kotikov / gist:e19c8642548f9f1cb4c5
Created August 11, 2014 19:13
How to get device manufacturer and model in windows store apps
var propertiesToRetrieve = ["System.Devices.ModelName", "System.Devices.Manufacturer"];
var pnp = Windows.Devices.Enumeration.Pnp;
var deviceContainer = pnp.PnpObjectType.deviceContainer;
var ROOT_DEVICE_ID = '{00000000-0000-0000-FFFF-FFFFFFFFFFFF}';
pnp.PnpObject.findAllAsync(deviceContainer, propertiesToRetrieve)
.then(function (devinfoCollection) {
for (var i = 0; i < devinfoCollection.length; i++) {
@vladimir-kotikov
vladimir-kotikov / gist:b9d9252eec431f874823
Last active June 22, 2016 09:30
Command definitions for Cortana
<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.1">
<!-- http://msdn.microsoft.com/en-us/library/windows/apps/dn722331.aspx -->
<CommandSet xml:lang="en-us" Name="examplevcd">
<CommandPrefix>Application</CommandPrefix>
<Example>Show search</Example>
<Command Name="search">
<Example>Search web for Cortana</Example>
<ListenFor>[search] {searchoptions} [for] {searchtext}</ListenFor>
<Feedback>Searching {searchoptions} for {searchtext}</Feedback>