Private npm Packages. How to add github package token to npm. March 2, 2023
Posted by samoiloff in Flash.Tags: github, node.js, private package, token
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: github, npm, personal access token
add a comment
Generate Personal Access Token here.
Add Personal Access Token (PAT) to npm:
- run:
npm config ls -l - find line:
globalconfig = “C:\Users\{USER_NAME}\AppData\Roaming\npm\etc\npmrc” - 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} - 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: create crosswords online free tool
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: encoding, localization, mxmlc
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: Actionsc, Code, Experiment, Sample
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: Art, Design, Episode, Photo, Photoshop, Star, Wars
add a comment
Photoshop presents: Star Wars. Episode 7
Crete crosswords online! It’s easy! September 20, 2010
Posted by samoiloff in Actionscript, Debug, Examples, Gigya, LiveJournal, MySpace, Review.Tags: Crossword, Flash, Gigya, Share
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: example, Flash Builder, lib, TextFlow, util
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: Actionscript, Design, Drawing, example, Tool
add a comment
Nice drawing tool made by designer Ricardo Cabello.