jump to navigation

Private npm Packages. How to add github package token to npm. March 2, 2023

Posted by samoiloff in Flash.
Tags: , , ,
add a comment

1. run:
npm config ls -l

2. find line:
globalconfig = "C:\\Users\\{USER_NAME}\\AppData\\Roaming\\npm\\etc\\npmrc"

3. edit/create such a file “npmrc” in specified path with following 2 lines:
@{PACKAGE_SCOPE}:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken={PASTE YOUR TOKEN HERE}

4. replace:

{PACKAGE_SCOPE} with corresponding scope

{PASTE YOUR TOKEN HERE} with a valid token, generated at https://github.com/settings/tokens

Accessing private npm registry. Github tutorial. October 9, 2022

Posted by samoiloff in Javascipt, Javascript, npm.
Tags: , ,
add a comment

Generate Personal Access Token here.

Add Personal Access Token (PAT) to npm:

  1. run:
    npm config ls -l
  2. find line:
    globalconfig = “C:\Users\{USER_NAME}\AppData\Roaming\npm\etc\npmrc”
  3. edit/create such a file “npmrc” in specified path with text:
    @{PASTE NPM SCOPE HERE}:registry=https://npm.pkg.github.com/
    //npm.pkg.github.com/:_authToken={PASTE YOUR TOKEN HERE}
  4. replace {PASTE YOUR TOKEN HERE} with valid token

Alternative version:

1. npm config set “@{PASTE NPM SCOPE HERE}:registry” https://npm.pkg.github.com/

2. npm config set “//npm.pkg.github.com/:_authToken” {GITHUB_PERSONAL_ACCESS_TOKEN}

More info here.

Create, save, solve and share crosswords online March 11, 2013

Posted by samoiloff in Flash.
Tags:
add a comment

Create, save, solve and share crosswords online

Recently I’ve finished works on getcwords service. It’s a powerful online crossword creation tool. It’s free and easy to use.

It’s useful for students, kids, pupils. And for anyone who likes not only to solve but to create crosswords. It uses Google appspot hosting, thus the your data will never be lost.

So, enjoy and please “like” it!

 

MXMLC Localization August 17, 2012

Posted by samoiloff in Flash.
Tags: , ,
add a comment

Steps to make mxmlc output English:

1. open {sdk_path}/bin/jvm.config

2. Find line:

java.args=-Xmx384m -Dsun.io.useCanonCaches=false

3. Add -Duser.language=en -Duser.country=US to the end of the line.

 Result line:

java.args=-Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.country=US

Objects in AS3. Experiment. January 4, 2011

Posted by samoiloff in Actionscript, Code, Labs, Samples.
Tags: , , ,
add a comment

Today I’m playing around with Flash Object.
Sample code:

var obj:Object = {}
obj[4] = "test";
obj["6"] = "test1";
trace("obj[4] : " + obj[4]);
trace("\n String");
for (var prop:String in obj) {
trace(prop +":" + obj[prop]);
}
trace("\n *");
for (var prop1:* in obj) {
trace(prop1+":" + obj[prop1]);
}
obj["4"] = "test2";
trace("\n int to string : " + obj[4]);

and traces:


obj[4] : test
String
4:test
6:test1
*
4:test
6:test1
int to string : test2

Star Wars. Episode 7 October 16, 2010

Posted by samoiloff in Art, Episode, Photo, Star Wars.
Tags: , , , , , ,
add a comment

Photoshop presents: Star Wars. Episode 7
StarWars child

Events in October September 30, 2010

Posted by samoiloff in Alawar, Farm-Frenzy, Flash, Game, I-Jet, Meeting, Odnoklassniki, Social.
Tags: , , , ,
3 comments

In October I’m going to attend several meetings:
1. BAFPUG #10 meeting in Minsk (Belarus) 10.10.10 (lol). This is regular Belarussian Abobe Flash Platform Group Meeting where I’m going to report technical details of social game realization “Farm-Frenzy. Neighbours” . This is social port of well known Alawar game Farm-Frenzy. The portation was published by I-Jet, Alawar and Melesta. And it’is quite successful :).
2. SOCIALITY ROCKS meeting Kiev (Ukraine)18.10.10. This meeting is dedicated to social games and to social networks in general. The meeting is remarkable because it will be attended by representatives of odnoklassniki, one of the most largest and successful social networks in Russia and on the territory of Post-Soviet-Union-Countries.

Crete crosswords online! It’s easy! September 20, 2010

Posted by samoiloff in Actionscript, Debug, Examples, Gigya, LiveJournal, MySpace, Review.
Tags: , , ,
2 comments

Recently we’ve published on-line service that allows to create crosswords. A crossword can be shared as html code just click share and copy/paste the code to your site/blog. I conducted tests on livejournal blog Gigya didn’t work and I pasted code by myself but multilanguage is fine. Myspace publish via Gigya works fine. Unfortunaely I haven’t test other networks please let me know if you have difficulties with sharing your crosswords.

Search in TextFlow August 23, 2010

Posted by samoiloff in Builder, Examples, Flash, Flash CS5, Flex, Libraries, Samoiloff, Util.
Tags: , , , ,
add a comment

I played with Flash Builder, TLF and TextFlow. As a result the following class TLFUtil was created. It’s function “getElementsByType” enables recursive search for elements of concrete class.

TLFUtil.as

package com.samoiloff.util {
import flashx.textLayout.elements.FlowElement;
import flashx.textLayout.elements.FlowGroupElement;
public class TLFUtil {
public function TLFUtil()
{
}
public static function getElementsByType(flowGroupElement:FlowGroupElement, type:Class):Array {
var arr:Array = [];
for (var i:int = 0; i<flowGroupElement.numChildren; i++) {
var element:FlowElement = flowGroupElement.getChildAt(i);
if (element is type) {
arr.push(element);
}
var groupElement:FlowGroupElement = element as FlowGroupElement;
if ( groupElement) {
arr = arr.concat(getElementsByType(groupElement, type));
}
}
return arr;
}
}
}

Drawing tool. March 12, 2010

Posted by samoiloff in Actionscript, Bitmap, Design, Drawing, Examples, Flash.
Tags: , , , ,
add a comment

Nice drawing tool made by designer Ricardo Cabello.