Skip to content

Instantly share code, notes, and snippets.

View saeidzebardast's full-sized avatar
👨‍💻
🎧

Saeid saeidzebardast

👨‍💻
🎧
View GitHub Profile
@saeidzebardast
saeidzebardast / Statistics of Leading UI Frameworks for SPAs.csv
Created August 14, 2023 08:04
Statistics of Leading UI Frameworks for SPAs
Framework GitHub Stars (2021) Average Bundle Size Performance Learning Curve Popularity (npm weekly downloads in 2021)
React 160k+ 40KB High (Virtual DOM) Moderate 8M+
Vue.js 180k+ 20KB High (Reactive system) Gentle 1.5M+
Angular 70k+ 80KB High (AOT Compilation) Steep 500K+
Svelte 40k+ 10KB High (Compile-time) Moderate 200K+
Ember.js 22k+ 120KB Moderate Steep 50K+
@saeidzebardast
saeidzebardast / The Confluence of Scrum, CI-CD, and Repositories.csv
Created August 7, 2023 17:31
The Confluence of Scrum, CI/CD, and Repositories
Scrum Aspect Monorepo Synergy Multirepo Synergy
Sprint Planning Centralized planning due to a cohesive view. Coordination across repositories becomes pivotal.
Review & Retrospective Integrated feature review is more comprehensive. Possible need for multiple repository reviews.
CI/CD Integration One robust CI/CD pipeline for all modules. Distinct pipelines tailored to individual repositories.
@saeidzebardast
saeidzebardast / sort-object.js
Created January 4, 2017 07:28
Sort object by key
/**
* Sort object by key
*
* @param unordered object
* @returns {Object} ordered object by key
*/
function sortObject(unordered) {
var ordered = {};
Object.keys(unordered).sort().forEach(function (key) {
ordered[key] = unordered[key];
@saeidzebardast
saeidzebardast / .gitignore
Last active March 29, 2016 08:58
.gitignore for Unity3d projects
# Unity generated
Temp/
Library/
# Visual Studio / MonoDevelop generated
ExportedObj/
obj/
*.svd
*.userprefs
/*.csproj
@saeidzebardast
saeidzebardast / Enable CORS in Spark Java
Created March 8, 2016 10:30
Enable CORS in Spark Java to allow origins *
options("/*",
(request, response) -> {
String accessControlRequestHeaders = request
.headers("Access-Control-Request-Headers");
if (accessControlRequestHeaders != null) {
response.header("Access-Control-Allow-Headers",
accessControlRequestHeaders);
}
# Compiler Error
error /ERROR/
# Compiler Warning
warning /WARNING/
# Compiler Info
info /INFO/
# Start Build Step
var hyd = require('hydrolysis');
hyd.Analyzer.analyze('app/elements/elements.html')
.then(function(analyzer) {
// console.log(analyzer.elements); // A list of all elements the Analyzer has metadata for.
console.log('Total elements: ' + analyzer.elements.length);
});
@saeidzebardast
saeidzebardast / local-npm.md
Last active February 13, 2019 17:24 — forked from nolanlawson/local-npm.md
Setting up local-npm as a launch daemon on OS X and Ubuntu.

Setting up local-npm on OS X and Ubuntu

These instructions will set up local-npm so that it runs as a launch daemon, meaning that it will start up whenever you log in.

Install local-npm

First, install local-npm and pm2:

npm install -g local-npm
@saeidzebardast
saeidzebardast / redirect_post_location.php
Created December 21, 2015 08:24
WordPress: Redirect to add new post on publish or save
<?php
add_filter('redirect_post_location', 'redirect_to_add_new_post_on_publish_or_save');
function redirect_to_add_new_post_on_publish_or_save(){
if (isset($_POST['save']) || isset($_POST['publish'])) {
$pl = get_admin_url('', 'post-new.php');
if ($pl) {
wp_redirect($pl);
}
git log -1 --format="%H" | xclip -selection clipboard