Skip to content

Instantly share code, notes, and snippets.

LICENSE SYSTEM [201734 6:41:23] No start/stop license dates set
LICENSE SYSTEM [201734 6:41:23] Next license update check is after 2017-02-04T20:02:00
Built from '5.5/release' branch; Version is '5.5.0f3 (38b4efef76f0) revision 3716335'; Using compiler version '160040219'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'ru' Physical Memory: 16331 MB
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
Initialize mono
Mono path[0] = 'C:/Soft/Unity/Editor/Data/Managed'
package ru.kvins;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
@KVinS
KVinS / Local.cs
Last active July 17, 2023 20:51
Unity3d localization script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using System.Xml;
using System.IO;
using System;
using System.Text;
using System.Collections.Generic;
@KVinS
KVinS / NONTOP_original.svg
Created January 10, 2016 21:02
Separately saved (not top) layer in svg is not displayed on the window phone (PhoneGap)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KVinS
KVinS / index.js
Last active November 26, 2015 04:18
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
<!DOCTYPE html>
<!-- CSP support mode (required for Windows Universal apps): https://docs.angularjs.org/api/ng/directive/ngCsp -->
<html lang="en" ng-app="app" ng-csp>
<head>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
public class ColorPickerView extends View implements View.OnTouchListener {
private OnColorChangeListener mListener;
private int mInitialColor, mInitialAlpha;
private String mKey;
// Константы, определяющие что именно мы устанавливаем в данный момент
protected static final int SET_NONE = -1;
protected static final int SET_COLOR = 0;
protected static final int SET_SATUR = 1;
protected static final int SET_ALPHA = 2;