Skip to content

Instantly share code, notes, and snippets.

Avatar
📴
PM me if necessary

Elderov Ali WuglyakBolgoink

📴
PM me if necessary
View GitHub Profile
@WuglyakBolgoink
WuglyakBolgoink / .babelrc
Last active Jul 6, 2021
Add babel to "old" angularJS project
View .babelrc
{
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
],
"plugins": [
@WuglyakBolgoink
WuglyakBolgoink / index.html
Created May 14, 2021
Angularjs infiniteScroll directive
View index.html
<!-- displayLimit:number - how much element pro chunk should be show -->
<!-- displayMoreItems() - will be triggered if user scrollet until end of last chunk element-->
<ul infinite-scroll="$ctrl.displayMoreItems()">
<li data-ng-repeat="item in $ctrl.filteredItems | limitTo: $ctrl.displayLimit track by $index">
...
</li>
</ul>
View vscode-pluggins.txt
code --install-extension Angular.ng-template
code --install-extension Compulim.vscode-express
code --install-extension EditorConfig.EditorConfig
code --install-extension SimonTest.simontest
code --install-extension Zignd.html-css-class-completion
code --install-extension alefragnani.project-manager
code --install-extension andys8.jest-snippets
code --install-extension burkeholland.simple-react-snippets
code --install-extension capaj.vscode-exports-autocomplete
code --install-extension ChakrounAnas.turbo-console-log
@WuglyakBolgoink
WuglyakBolgoink / ngrx_store_setup.md
Last active Jul 31, 2020
ngrx@9.2.0 store setup
View ngrx_store_setup.md
  1. open https://ngrx.io/docs

  2. install packages

npm install @ngrx/store --save
npm install @ngrx/store-devtools --save
npm install @ngrx/effects --save
npm install @ngrx/entity --save
npm install @ngrx/schematics --save-dev
View app_list.json
[
"com.noshufou.android.su",
"com.noshufou.android.su.elite",
"eu.chainfire.supersu",
"com.koushikdutta.superuser",
"com.thirdparty.superuser",
"com.yellowes.su",
"com.topjohnwu.magisk",
"com.kingroot.kinguser",
"com.kingo.root",
View generate_android_signing_certificate.js
#!/usr/bin/env node
'use strict';
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
// Script to create android signing keys
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
// Dependencies:
// - pwgen (PWGen is a professional password generator capable of creating large amounts of cryptographically-secure passwords)
// - keytool (The keytool command stores the keys and certificates in a keystore)
@WuglyakBolgoink
WuglyakBolgoink / .bash_aliases
Created Oct 3, 2019
Cordova aliases to upgrade platform and plugins
View .bash_aliases
# -----------------------------------------
# Alias "coupplat" = cordova upgrade platfrom
# -----------------------------------------
# Usage: coupplat <platform_name> <version>
# $ coupplat android 8.1.1
# $ coupplat ios 4.0.0
#
# Todo's:
# - add check if this is cordova project/folder
alias coupplat='function _cordovaUpgradePlatform(){ echo "Platform: $1"; echo "Version: $2"; pwd; cordova platform rm "cordova-$1" --save; cordova platform add "cordova-$1@$2" --save;};_cordovaUpgradePlatform'
@WuglyakBolgoink
WuglyakBolgoink / cleanNodeModules.js
Created Apr 3, 2019
Clean node_modules to minimize CI Caching/Artifacts
View cleanNodeModules.js
/**
* TODO:
* 1) remove all ".idea" folders!
* 2) remove all "coverage" folders!
* 3) remove all empty folders!
* 4) remove all "examples" folders!
* 5) remove all "example" folders!
* 6) remove all "test" folders!
* 7) remove all "tests" folders!
* 8) remove all "*.md" files extly with names!
@WuglyakBolgoink
WuglyakBolgoink / git-clearHistory
Created Mar 27, 2019 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@WuglyakBolgoink
WuglyakBolgoink / app-exit.js
Created Jun 7, 2018 — forked from kuldipem/app-exit.js
Cordova/PhoneGap exit app after twice press back button with toast ( plugin required https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin )
View app-exit.js
var lastTimeBackPress=0;
var timePeriodToExit=2000;
function onBackKeyDown(e){
e.preventDefault();
e.stopPropagation();
if(new Date().getTime() - lastTimeBackPress < timePeriodToExit){
navigator.app.exitApp();
}else{
window.plugins.toast.showWithOptions(