Skip to content

Instantly share code, notes, and snippets.

View klagrida's full-sized avatar

Khalil LAGRIDA klagrida

  • Paris, France
  • 02:50 (UTC +02:00)
View GitHub Profile
@klagrida
klagrida / gist:663dbb8bb9e18affd211b983a7cfdd56
Created December 15, 2024 15:14 — forked from BjornDCode/gist:5cb836a6b23638d6d02f5cb6ed59a04a
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>
@klagrida
klagrida / dependency-report.gradle
Created May 21, 2023 14:52 — forked from nikialeksey/dependency-report.gradle
Gradle: multi-project dependency graph (supports depth > 2, supports gradle 4.4+)
// Inspired by https://gist.github.com/tzachz/419478fc8b009e953f5e5dc39f3f3a2a
// Task creates a .dot file with all inter-module dependencies
// Supports any depth of nested modules
task moduleDependencyReport {
doLast {
def file = new File("project-dependencies.dot")
file.delete()
file << "strict digraph {\n"
file << "splines=ortho\n"
@klagrida
klagrida / NOTES.md
Created May 10, 2023 00:28 — forked from deild/NOTES.md
Fedora on a LENOVO ThinkPad P14s with AMD processor

Fedora on a LENOVO ThinkPad P14s Gen 1 (MT_20Y1)

These are my installation-tricks and notes for running Linux on a Thinkpad P14s Gen1 with AMD Ryzen 7 4750U.

Specs

OS: Fedora release 35 (Thirty Four) x86_64

Model: 20Y1CTO1WW ThinkPad P14s Gen 1

CPU: AMD Ryzen 7 PRO 4750U with Radeon Graphics (16) @ 1.700GHz

@klagrida
klagrida / README.md
Created May 9, 2023 23:42 — forked from linderd/README.md
Linux on Thinkpad P14s Gen2 AMD / T14 Gen2 AMD

Linux (Fedora 35) on a Thinkpad P14s [T14] Gen2 AMD

These are my installation-tricks and notes for running Linux on a 2021 Thinkpad P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.

Detailed specs

Shipped:

/* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { LoginComponent } from './login.component';
import { UserService } from '../services/user.service';
import { Router, RouterOutlet } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { FormsModule } from '@angular/forms';
import { Observable } from 'RxJs';
import { HttpModule } from '@angular/http';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { UserService } from '../services/user.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.less']
})
export class LoginComponent implements OnInit {