Skip to content

Instantly share code, notes, and snippets.

View malbarmavi's full-sized avatar
[object Object]

Muhammed Albarmavi malbarmavi

[object Object]
View GitHub Profile
@malbarmavi
malbarmavi / git_newrepo
Created February 6, 2022 23:21 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
ionic cordova plugin add phonegap-plugin-barcodescanner
npm install @ionic-native/barcode-scanner
ionic cordova platform
ionic cordova platform add ios
ionic cordova platform rm ios
ionic cordova platform add android
function log(arg){
console.log(arg)
}
{
"html" :"<h1>Hello from 🌍</h1>"
}
@malbarmavi
malbarmavi / event-emitter.ts
Created November 6, 2018 08:51
Event Emitter with TypeScript
class EventEmitter<T> {
private _subscription: any[] = []
constructor() {
}
subscribe(habdler) {
this._subscription.push(habdler)
}
@malbarmavi
malbarmavi / bookmarks
Created February 27, 2018 09:05
bookmarks
https://github.com/dypsilon/frontend-dev-bookmarks
@malbarmavi
malbarmavi / bootstrap.txt
Last active February 14, 2018 14:34
General bootstrap snippet
modal option
data-backdrop="static" data-keyboard="false"
Build error
npm install --global --production windows-build-tools