Skip to content

Instantly share code, notes, and snippets.

💭
where the hell are my previous comments

Ayyash ayyash

💭
where the hell are my previous comments
Block or report user

Report or block ayyash

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ayyash on github.
  • I am ayyash (https://keybase.io/ayyash) on keybase.
  • I have a public key ASB222Q-DYxTyDYW6UKnD79RjNCMY8mvd4i3zjPju2tO8Ao

To claim this, I am signing this object:

@ayyash
ayyash / angular.json
Last active Mar 13, 2019
Angular Universal Internationalization
View angular.json
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"projweb": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "jr",
@ayyash
ayyash / gulpfilee.js
Created Jan 28, 2019
Extract material icons svg files from repo
View gulpfilee.js
// create a simple task to take out svg from production and save it elsewhere
const gulp = require('gulp');
var rename = require('gulp-rename');
var path = require('path');
exports.extract = function(){
// from **/svg/production to /
return gulp.src('./**/svg/production/*24px.svg', {base: '.'})
.pipe(rename(function(file) {
file.dirname = '../output/' + file.dirname.split(path.sep)[0];
@ayyash
ayyash / scroll.js
Created Sep 1, 2018
Scroll bookmarklet: bookmark that scrolls the current page slowly, helps in reading long articles without losing focus
View scroll.js
javascript:(function()%7Bif(!window.areScrolling)%7Bwindow.areScrolling%3Dwindow.setInterval(function()%7Bwindow.scrollBy(0%2C1)%3B%7D%2C100)%3B%7Delse%7Bwindow.clearInterval(window.areScrolling)%3Bwindow.areScrolling%3Dnull%3B%7D%7D)()
@ayyash
ayyash / transaction.component.html
Created Oct 13, 2017
Angular2 conditional subscription to route param
View transaction.component.html
<my-transaction-form [transaction]="pageTransaction$ | async"></my-transaction-form>
You can’t perform that action at this time.